Files
ladybird/Userland/Libraries/LibGUI/FilePickerDialog.gml
Andreas Kling 25de655d43 LibGUI: Add shortcuts to common locations in GUI::FilePicker
This patch adds a handy set of buttons on the left hand side that can
take you to common locations such as:

- Your home directory
- Your desktop directory
- The root directory
2021-04-06 21:07:04 +02:00

108 lines
2.2 KiB
Plaintext

@GUI::Widget {
fill_with_background_color: true
layout: @GUI::HorizontalBoxLayout {
margins: [4, 4, 4, 4]
}
@GUI::Widget {
shrink_to_fit: true
layout: @GUI::VerticalBoxLayout {
margins: [4, 4, 4, 4]
}
@GUI::Label {
text: "Look in:"
text_alignment: "CenterRight"
fixed_height: 24
}
@GUI::Frame {
name: "common_locations_frame"
fixed_width: 80
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [2, 4, 2, 4]
spacing: 0
}
}
}
@GUI::Widget {
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
}
}
}
}
}