summaryrefslogtreecommitdiff
path: root/Userland/Applications/ClockSettings/ClockSettingsWidget.gml
blob: e4b272383870b39a34c8caa192974290199e4386 (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
@GUI::Frame {
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout {
        margins: [10]
        spacing: 5
    }

    @GUI::GroupBox {
        title: "Time Format"
        shrink_to_fit: false
        fixed_height: 240
        layout: @GUI::VerticalBoxLayout {
            margins: [16, 8, 8]
        }

        @GUI::Label {
            text: "Set the date/time format used by the taskbar clock."
            text_alignment: "TopLeft"
        }

        @GUI::Widget {
            preferred_height: "fit"
            layout: @GUI::VerticalBoxLayout {
                spacing: 4
            }

            @GUI::RadioButton {
                name: "24hour_radio"
                text: "24-hour"
            }

            @GUI::RadioButton {
                name: "12hour_radio"
                text: "12-hour"
            }

            @GUI::CheckBox {
                name: "seconds_checkbox"
                text: "Show seconds"
            }

            @GUI::HorizontalSeparator {}

            @GUI::RadioButton {
                name: "custom_radio"
                text: "Custom:"
            }

            @GUI::TextBox {
                name: "custom_format_input"
            }
        }

        @GUI::Widget {
            layout: @GUI::HorizontalBoxLayout {
                spacing: 4
            }

            @GUI::Label {
                text: "Preview:"
                text_alignment: "CenterLeft"
                preferred_width: 120
            }

            @GUI::Label {
                shape: "Container"
                thickness: 2
                shadow: "Sunken"
                name: "clock_preview"
                text: "12:34:56"
            }
        }
    }
}