浏览代码

MouseSettings: Show highlight toggle shortcut and new layout tweaks

This now shows the shortcut to enable mouse pointer highlighting below
the preview. The GML has also been updated to take advantage of the new
layout features rather than using fixed heights.
MacDue 3 年之前
父节点
当前提交
42a7dc9fe2
共有 1 个文件被更改,包括 11 次插入5 次删除
  1. 11 5
      Userland/Applications/MouseSettings/Highlight.gml

+ 11 - 5
Userland/Applications/MouseSettings/Highlight.gml

@@ -11,27 +11,33 @@
         fixed_height: 136
         fixed_height: 136
     }
     }
 
 
+    @GUI::Label {
+        autosize: true
+        text: "Shortcut: Super+H"
+        preferred_height: "shrink"
+    }
+
     @GUI::GroupBox {
     @GUI::GroupBox {
         title: "Highlight color"
         title: "Highlight color"
-        fixed_height: 80
+        preferred_height: "opportunistic_grow"
         layout: @GUI::VerticalBoxLayout {
         layout: @GUI::VerticalBoxLayout {
             margins: [6]
             margins: [6]
             spacing: 2
             spacing: 2
         }
         }
 
 
-        @GUI::Widget {}
+        @GUI::Layout::Spacer {}
 
 
         @GUI::ColorInput {
         @GUI::ColorInput {
             name: "highlight_color_input"
             name: "highlight_color_input"
             has_alpha_channel: false
             has_alpha_channel: false
         }
         }
 
 
-        @GUI::Widget {}
+        @GUI::Layout::Spacer {}
     }
     }
 
 
     @GUI::GroupBox {
     @GUI::GroupBox {
         title: "Highlight opacity"
         title: "Highlight opacity"
-        fixed_height: 80
+        preferred_height: "opportunistic_grow"
         layout: @GUI::VerticalBoxLayout {
         layout: @GUI::VerticalBoxLayout {
             margins: [6]
             margins: [6]
             spacing: 2
             spacing: 2
@@ -65,7 +71,7 @@
 
 
     @GUI::GroupBox {
     @GUI::GroupBox {
         title: "Highlight size"
         title: "Highlight size"
-        fixed_height: 80
+        preferred_height: "opportunistic_grow"
         layout: @GUI::VerticalBoxLayout {
         layout: @GUI::VerticalBoxLayout {
             margins: [6]
             margins: [6]
             spacing: 2
             spacing: 2