summaryrefslogtreecommitdiff
path: root/Userland/Applications/MouseSettings/Mouse.gml
diff options
context:
space:
mode:
authorMaciej Zygmanowski <sppmacd@pm.me>2021-08-02 12:14:52 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-23 01:41:53 +0200
commit42df4fb2df21da43412bb747d2cbc1c839275584 (patch)
tree5ac8571f0ba2bf16627d476622fd131d58288aab /Userland/Applications/MouseSettings/Mouse.gml
parent3597b6eb9d5a6d2197cbe1c42cf1ec073d9f891e (diff)
downloadserenity-42df4fb2df21da43412bb747d2cbc1c839275584.zip
MouseSettings: Add a tab to change cursor theme
Diffstat (limited to 'Userland/Applications/MouseSettings/Mouse.gml')
-rw-r--r--Userland/Applications/MouseSettings/Mouse.gml161
1 files changed, 161 insertions, 0 deletions
diff --git a/Userland/Applications/MouseSettings/Mouse.gml b/Userland/Applications/MouseSettings/Mouse.gml
new file mode 100644
index 0000000000..1ee8e37b93
--- /dev/null
+++ b/Userland/Applications/MouseSettings/Mouse.gml
@@ -0,0 +1,161 @@
+@GUI::Frame {
+ fill_with_background_color: true
+
+ layout: @GUI::VerticalBoxLayout {
+ margins: [10]
+ spacing: 5
+ }
+
+ @GUI::GroupBox {
+ title: "Cursor speed"
+ fixed_height: 110
+
+ layout: @GUI::VerticalBoxLayout {
+ margins: [16, 8, 8]
+ spacing: 2
+ }
+
+ @GUI::Widget {
+ layout: @GUI::HorizontalBoxLayout {
+ spacing: 16
+ }
+
+ @GUI::Label {
+ fixed_width: 32
+ fixed_height: 32
+ name: "cursor_speed_image_label"
+ }
+
+ @GUI::Label {
+ text: "The relative speed of the mouse cursor."
+ text_alignment: "CenterLeft"
+ }
+ }
+
+ @GUI::Widget {
+ layout: @GUI::HorizontalBoxLayout {
+ spacing: 16
+ }
+
+ @GUI::Widget {
+ fixed_width: 32
+ }
+
+ @GUI::HorizontalSlider {
+ name: "speed_slider"
+ min: 0
+ max: 100
+ value: 50
+ }
+
+ @GUI::Label {
+ fixed_width: 40
+ name: "speed_label"
+ }
+ }
+ }
+
+ @GUI::GroupBox {
+ title: "Scroll wheel step size"
+ fixed_height: 110
+
+ layout: @GUI::VerticalBoxLayout {
+ margins: [16, 8, 8]
+ spacing: 2
+ }
+
+ @GUI::Widget {
+ layout: @GUI::HorizontalBoxLayout {
+ spacing: 16
+ }
+
+ @GUI::Label {
+ fixed_width: 32
+ fixed_height: 32
+ name: "scroll_step_size_image_label"
+ }
+
+ @GUI::Label {
+ text: "The number of steps taken when the scroll wheel is\nmoved a single notch."
+ text_alignment: "CenterLeft"
+ }
+ }
+
+ @GUI::Widget {
+ layout: @GUI::HorizontalBoxLayout {
+ margins: [8]
+ spacing: 8
+ }
+
+ @GUI::Widget {
+ fixed_width: 32
+ }
+
+ @GUI::Label {
+ autosize: true
+ text: "Step size:"
+ }
+
+ @GUI::SpinBox {
+ name: "scroll_length_spinbox"
+ min: 0
+ max: 100
+ value: 50
+ fixed_width: 100
+ }
+
+ @GUI::Widget {
+ }
+ }
+ }
+
+ @GUI::GroupBox {
+ title: "Double-click speed"
+ fixed_height: 110
+
+ layout: @GUI::VerticalBoxLayout {
+ margins: [16, 8, 8]
+ spacing: 2
+ }
+
+ @GUI::Widget {
+ layout: @GUI::HorizontalBoxLayout {
+ spacing: 16
+ }
+
+ @MouseSettings::DoubleClickArrowWidget {
+ fixed_width: 32
+ fixed_height: 32
+ name: "double_click_arrow_widget"
+ }
+
+ @GUI::Label {
+ text: "The maximum time that may pass between two clicks\nin order for them to become a double-click."
+ text_alignment: "CenterLeft"
+ }
+ }
+
+ @GUI::Widget {
+ layout: @GUI::HorizontalBoxLayout {
+ margins: [8]
+ spacing: 8
+ }
+
+ @GUI::Widget {
+ fixed_width: 32
+ }
+
+ @GUI::HorizontalSlider {
+ name: "double_click_speed_slider"
+ min: 0
+ max: 100
+ value: 50
+ }
+
+ @GUI::Label {
+ fixed_width: 40
+ name: "double_click_speed_label"
+ }
+ }
+ }
+}