mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:27:45 +00:00
DisplaySettings: Add an Effects tab
Effects tab provides the UI for setting SystemEffects. DisplaySettings is getting a bit crowded and might need a re-org at some point, but this seems like a good home for effects while the settings mature.
This commit is contained in:
parent
8b5280b5dd
commit
1d445356b6
5 changed files with 322 additions and 1 deletions
151
Userland/Applications/DisplaySettings/EffectsSettings.gml
Normal file
151
Userland/Applications/DisplaySettings/EffectsSettings.gml
Normal file
|
@ -0,0 +1,151 @@
|
|||
@GUI::Widget {
|
||||
fill_with_background_color: true
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8]
|
||||
spacing: 8
|
||||
}
|
||||
|
||||
@GUI::GroupBox {
|
||||
preferred_height: "shrink"
|
||||
title: "Animations"
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8]
|
||||
spacing: 2
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 16
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_width: 32
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
|
||||
@GUI::ImageWidget {
|
||||
bitmap: "/res/icons/32x32/animation-effects.png"
|
||||
}
|
||||
|
||||
@GUI::Layout::Spacer {}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [4, 0, 0, 0]
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "animate_menus_checkbox"
|
||||
text: "Fade menus on activation"
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "flash_menus_checkbox"
|
||||
text: "Flash menus activated by keyboard shortcuts"
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "animate_windows_checkbox"
|
||||
text: "Animate windows when minimizing and maximizing"
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "smooth_scrolling_checkbox"
|
||||
text: "Use smooth scrolling"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::GroupBox {
|
||||
preferred_height: "shrink"
|
||||
title: "Appearance"
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8]
|
||||
spacing: 2
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 16
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_width: 32
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
|
||||
@GUI::ImageWidget {
|
||||
bitmap: "/res/icons/32x32/theming-effects.png"
|
||||
}
|
||||
|
||||
@GUI::Layout::Spacer {}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [4, 0, 0, 0]
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "tab_accents_checkbox"
|
||||
text: "Show accents on tabs"
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "splitter_knurls_checkbox"
|
||||
text: "Show knurls on splitters"
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_height: 4
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Show window geometry:"
|
||||
autosize: true
|
||||
}
|
||||
|
||||
@GUI::Layout::Spacer {}
|
||||
|
||||
@GUI::ComboBox {
|
||||
name: "geometry_combobox"
|
||||
fixed_width: 130
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_height: 4
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Shadows"
|
||||
autosize: true
|
||||
}
|
||||
|
||||
@GUI::HorizontalSeparator {}
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "menu_shadow_checkbox"
|
||||
text: "Show menu shadow"
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "window_shadow_checkbox"
|
||||
text: "Show window shadow"
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "tooltip_shadow_checkbox"
|
||||
text: "Show tooltip shadow"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue