summaryrefslogtreecommitdiff
path: root/Userland/Applications/MouseSettings/Highlight.gml
blob: e8e70002fc9274579a155af4afa21e7ec8892de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
@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"
            }
        }
    }
}