summaryrefslogtreecommitdiff
path: root/Userland/Applications/CalendarSettings/CalendarSettingsWidget.gml
blob: 085ac9f188648b3d34b835e9421f6cfbb439579f (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
@GUI::Frame {
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout {
        margins: [8]
        spacing: 5
    }

    @GUI::GroupBox {
        title: "Preferred First Day of Week"
        fixed_height: 72
        layout: @GUI::VerticalBoxLayout {
            margins: [6]
            spacing: 2
        }

        @GUI::Label {
            text: "Determines which day a week starts with in the calendar view."
            word_wrap: true
            text_alignment: "CenterLeft"
        }

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

            @GUI::Label {
                text: "First day:"
                text_alignment: "CenterLeft"
                fixed_width: 70
            }

            @GUI::ComboBox {
                name: "first_day_of_week"
            }
        }
    }

    @GUI::GroupBox {
        title: "Preferred Weekend Configuration"
        fixed_height: 72
        layout: @GUI::VerticalBoxLayout {
            margins: [6]
            spacing: 2
        }

        @GUI::Label {
            text: "Determines the start and length of the weekend."
            word_wrap: true
            text_alignment: "CenterLeft"
        }

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

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

                @GUI::Label {
                    text: "First day:"
                    text_alignment: "CenterLeft"
                    fixed_width: 84
                }

                @GUI::ComboBox {
                    name: "first_day_of_weekend"
                }
            }

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

                @GUI::Label {
                    text: "Length:"
                    text_alignment: "CenterLeft"
                }

                @GUI::SpinBox {
                    name: "weekend_length"
                    min: 0
                    max: 7
                }

                @GUI::Label {
                    text: "Days"
                    text_alignment: "CenterLeft"
                }
            }
        }
    }

    @GUI::GroupBox {
        title: "Default View"
        fixed_height: 72
        layout: @GUI::VerticalBoxLayout {
            margins: [6]
            spacing: 2
        }

        @GUI::Label {
            text: "Show the month or the year view when Calendar is started."
            word_wrap: true
            text_alignment: "CenterLeft"
        }

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

            @GUI::Label {
                text: "Default view:"
                text_alignment: "CenterLeft"
                fixed_width: 70
            }

            @GUI::ComboBox {
                name: "default_view"
            }
        }
    }
}