mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:47:45 +00:00
LibGUI+Applications: Use the new layout system in the settings screens
This commit is contained in:
parent
3978960481
commit
a6ec2b9d0a
8 changed files with 35 additions and 38 deletions
|
@ -28,22 +28,20 @@
|
|||
|
||||
@GUI::IconView {
|
||||
name: "wallpaper_view"
|
||||
preferred_width: "opportunistic_grow"
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
preferred_width: "fit"
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
|
||||
@GUI::Button {
|
||||
name: "wallpaper_open_button"
|
||||
tooltip: "Select wallpaper from file system"
|
||||
text: "Browse..."
|
||||
shrink_to_fit: true
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_height: 12
|
||||
}
|
||||
@GUI::Layout::Spacer {}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Mode:"
|
||||
|
@ -55,9 +53,7 @@
|
|||
name: "mode_combo"
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_height: 12
|
||||
}
|
||||
@GUI::Layout::Spacer {}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Color:"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
}
|
||||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
preferred_height: "fit"
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 6
|
||||
}
|
||||
|
@ -17,14 +17,13 @@
|
|||
text_alignment: "CenterLeft"
|
||||
}
|
||||
|
||||
@GUI::Frame {
|
||||
@GUI::Label {
|
||||
background_role: "Base"
|
||||
shadow: "Sunken"
|
||||
shape: "Container"
|
||||
thickness: 2
|
||||
fill_with_background_color: true
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
name: "default_font_label"
|
||||
}
|
||||
name: "default_font_label"
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
|
@ -35,7 +34,7 @@
|
|||
}
|
||||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
preferred_height: "fit"
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 6
|
||||
}
|
||||
|
@ -46,14 +45,13 @@
|
|||
text_alignment: "CenterLeft"
|
||||
}
|
||||
|
||||
@GUI::Frame {
|
||||
@GUI::Label {
|
||||
background_role: "Base"
|
||||
shadow: "Sunken"
|
||||
shape: "Container"
|
||||
thickness: 2
|
||||
fill_with_background_color: true
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
name: "fixed_width_font_label"
|
||||
}
|
||||
name: "fixed_width_font_label"
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
|
@ -63,5 +61,5 @@
|
|||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {}
|
||||
@GUI::Layout::Spacer {}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
}
|
||||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
preferred_height: "fit"
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
margins: [8, 8, 6, 16]
|
||||
}
|
||||
|
@ -38,7 +38,7 @@
|
|||
title: "Screen settings"
|
||||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
preferred_height: "fit"
|
||||
layout: @GUI::HorizontalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
|
@ -64,7 +64,7 @@
|
|||
}
|
||||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
preferred_height: "fit"
|
||||
layout: @GUI::HorizontalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
|
@ -84,6 +84,8 @@
|
|||
text: "2x"
|
||||
fixed_width: 50
|
||||
}
|
||||
|
||||
@GUI::Layout::Spacer {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
}
|
||||
|
||||
@GUI::Widget {
|
||||
shrink_to_fit: true
|
||||
preferred_height: "fit"
|
||||
layout: @GUI::HorizontalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Theme:"
|
||||
text_alignment: "CenterLeft"
|
||||
fixed_width: 95
|
||||
preferred_width: 95
|
||||
}
|
||||
|
||||
@GUI::ComboBox {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue