1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

FileManager: Convert properties window UI to GML (#8705)

This commit is contained in:
luk1337 2021-07-13 12:57:10 +02:00 committed by GitHub
parent 72e661b542
commit 0b48e12dd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 333 additions and 80 deletions

View file

@ -0,0 +1,279 @@
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {
margins: [12, 8, 12, 8]
spacing: 10
}
@GUI::Widget {
fixed_height: 34
layout: @GUI::HorizontalBoxLayout {
spacing: 20
}
@GUI::ImageWidget {
fixed_width: 32
fixed_height: 32
name: "icon"
}
@GUI::TextBox {
text: "file"
name: "name"
}
}
@GUI::HorizontalSeparator {
}
@GUI::Widget {
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Type:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::Label {
name: "type"
text: "File"
text_alignment: "CenterLeft"
}
}
@GUI::Widget {
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Location:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::LinkLabel {
name: "location"
text: "/home/anon/file"
text_alignment: "CenterLeft"
}
}
@GUI::Widget {
name: "link_location_widget"
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Link location:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::LinkLabel {
name: "link_location"
text: "/home/anon/file"
text_alignment: "CenterLeft"
}
}
@GUI::Widget {
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Size:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::Label {
name: "size"
text: "5.9 KiB (6097 bytes)"
text_alignment: "CenterLeft"
}
}
@GUI::Widget {
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Owner:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::Label {
name: "owner"
text: "anon (100)"
text_alignment: "CenterLeft"
}
}
@GUI::Widget {
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Group:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::Label {
name: "group"
text: "anon (100)"
text_alignment: "CenterLeft"
}
}
@GUI::Widget {
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Created at:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::Label {
name: "created_at"
text: "2021-07-12 20:33:24"
text_alignment: "CenterLeft"
}
}
@GUI::Widget {
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Last Modified:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::Label {
name: "last_modified"
text: "2021-07-12 20:33:24"
text_alignment: "CenterLeft"
}
}
@GUI::HorizontalSeparator {
}
@GUI::Widget {
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Owner:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::CheckBox {
name: "owner_read"
text: "Read"
}
@GUI::CheckBox {
name: "owner_write"
text: "Write"
}
@GUI::CheckBox {
name: "owner_execute"
text: "Execute"
}
}
@GUI::Widget {
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Group:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::CheckBox {
name: "group_read"
text: "Read"
}
@GUI::CheckBox {
name: "group_write"
text: "Write"
}
@GUI::CheckBox {
name: "group_execute"
text: "Execute"
}
}
@GUI::Widget {
fixed_height: 14
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Others:"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::CheckBox {
name: "others_read"
text: "Read"
}
@GUI::CheckBox {
name: "others_write"
text: "Write"
}
@GUI::CheckBox {
name: "others_execute"
text: "Execute"
}
}
}