diff options
author | Tom <tomut@yahoo.com> | 2021-06-30 11:28:16 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-03 12:27:23 +0200 |
commit | 5acee4b4d0213a9bcd67fc024615a7356e1e7082 (patch) | |
tree | d7f72fa27ed3df18e344eaf40e96179603ae88dd /Userland/Applications/DisplaySettings/DesktopSettings.gml | |
parent | 6472ee0effe162ffd0c93ecbd2f7d4282f2cd5f5 (diff) | |
download | serenity-5acee4b4d0213a9bcd67fc024615a7356e1e7082.zip |
DisplaySettings: Add new Desktop tab with virtual desktop settings
This allows the user to configure the virtual desktop setup as desired.
Diffstat (limited to 'Userland/Applications/DisplaySettings/DesktopSettings.gml')
-rw-r--r-- | Userland/Applications/DisplaySettings/DesktopSettings.gml | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/Userland/Applications/DisplaySettings/DesktopSettings.gml b/Userland/Applications/DisplaySettings/DesktopSettings.gml new file mode 100644 index 0000000000..c35c47b7aa --- /dev/null +++ b/Userland/Applications/DisplaySettings/DesktopSettings.gml @@ -0,0 +1,75 @@ +@GUI::Widget { + fill_with_background_color: true + + layout: @GUI::VerticalBoxLayout { + margins: [8, 8, 8, 8] + } + + @GUI::GroupBox { + layout: @GUI::VerticalBoxLayout { + margins: [16, 24, 16, 6] + } + + title: "Virtual Desktops" + shrink_to_fit: true + + @GUI::Widget { + fixed_height: 32 + + layout: @GUI::HorizontalBoxLayout { + margins: [6, 6, 6, 6] + } + + @GUI::Label { + text: "Rows:" + text_alignment: "CenterRight" + } + + @GUI::SpinBox { + name: "virtual_desktop_rows_spinbox" + min: 1 + max: 16 + orientation: "Horizontal" + } + + @GUI::Label { + text: "Columns:" + text_alignment: "CenterRight" + } + + @GUI::SpinBox { + name: "virtual_desktop_columns_spinbox" + min: 1 + max: 16 + orientation: "Horizontal" + } + } + + @GUI::Widget { + fixed_height: 76 + + layout: @GUI::HorizontalBoxLayout { + } + @GUI::Label { + name: "light_bulb_label" + fixed_height: 32 + fixed_width: 32 + } + @GUI::Widget { + layout: @GUI::VerticalBoxLayout { + margins: [6, 6, 6, 6] + } + @GUI::Label { + text: "Use the Ctrl+Alt+Arrow hotkeys to move between virtual desktops." + text_alignment: "TopLeft" + word_wrap: true + } + @GUI::Label { + text: "Use the Ctrl+Shift+Alt+Arrow hotkeys to move between virtual desktops and move the active window." + text_alignment: "TopLeft" + word_wrap: true + } + } + } + } +} |