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

LibGUI: Port GUI::FilePicker to GML and improve the layout

Also remove the image preview feature as it was rather ugly.
If we bring it back we should it should look good.
This commit is contained in:
Andreas Kling 2021-02-19 23:00:33 +01:00
parent cda3c5df59
commit a8e0671344
4 changed files with 94 additions and 115 deletions

View file

@ -0,0 +1,74 @@
@GUI::Widget {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [4, 4, 4, 4]
}
@GUI::Widget {
shrink_to_fit: true
layout: @GUI::HorizontalBoxLayout {
}
@GUI::TextBox {
name: "location_textbox"
}
@GUI::ToolBar {
name: "toolbar"
}
}
@GUI::MultiView {
name: "view"
}
@GUI::Widget {
shrink_to_fit: true
layout: @GUI::VerticalBoxLayout {
}
@GUI::Widget {
fixed_height: 24
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Label {
text: "File name:"
text_alignment: "CenterLeft"
fixed_width:80
}
@GUI::TextBox {
name: "filename_textbox"
}
@GUI::Widget {
fixed_width: 20
}
@GUI::Button {
name: "ok_button"
text: "OK"
fixed_width: 75
}
}
@GUI::Widget {
fixed_height: 24
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Widget {
}
@GUI::Button {
name: "cancel_button"
text: "Cancel"
fixed_width: 75
}
}
}
}