1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-13 17:30:59 +00:00
serenity/Userland/Applications/MouseSettings/Highlight.gml
MacDue 42a7dc9fe2 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.
2022-07-24 15:10:01 +01:00

105 lines
2.3 KiB
Text

@GUI::Frame {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [8]
}
@GUI::Frame {
layout: @GUI::HorizontalBoxLayout {}
name: "preview_frame"
fixed_width: 136
fixed_height: 136
}
@GUI::Label {
autosize: true
text: "Shortcut: Super+H"
preferred_height: "shrink"
}
@GUI::GroupBox {
title: "Highlight color"
preferred_height: "opportunistic_grow"
layout: @GUI::VerticalBoxLayout {
margins: [6]
spacing: 2
}
@GUI::Layout::Spacer {}
@GUI::ColorInput {
name: "highlight_color_input"
has_alpha_channel: false
}
@GUI::Layout::Spacer {}
}
@GUI::GroupBox {
title: "Highlight opacity"
preferred_height: "opportunistic_grow"
layout: @GUI::VerticalBoxLayout {
margins: [6]
spacing: 2
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
margins: [8]
spacing: 8
}
@GUI::Label {
autosize: true
text: "Low"
}
@GUI::Slider {
name: "highlight_opacity_slider"
orientation: "Horizontal"
max: 230
min: 30
value: 110
}
@GUI::Label {
autosize: true
text: "High"
}
}
}
@GUI::GroupBox {
title: "Highlight size"
preferred_height: "opportunistic_grow"
layout: @GUI::VerticalBoxLayout {
margins: [6]
spacing: 2
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
margins: [8]
spacing: 8
}
@GUI::Label {
autosize: true
text: "Small"
}
@GUI::Slider {
name: "highlight_radius_slider"
orientation: "Horizontal"
max: 60
min: 20
value: 25
}
@GUI::Label {
autosize: true
text: "Large"
}
}
}
}