summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings/MonitorSettings.gml
blob: 19f0e6df8c9fd637bd3e38b36a34f2a193bb91ce (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
@GUI::Widget {
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout {
        margins: [8]
    }

    @DisplaySettings::MonitorWidget {
        name: "monitor_widget"
        fixed_width: 304
        fixed_height: 201
    }

    @GUI::Widget {
        fixed_height: 20
    }

    @GUI::Widget {
        preferred_height: "fit"
        layout: @GUI::HorizontalBoxLayout {
            margins: [8, 8, 6, 16]
        }

        @GUI::Label {
            text: "Screen:"
            text_alignment: "CenterLeft"
            fixed_width: 55
        }

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

    @GUI::GroupBox {
        layout: @GUI::VerticalBoxLayout {
            margins: [14, 14, 4]
        }
        title: "Screen Settings"

        @GUI::Widget {
            preferred_height: "fit"
            layout: @GUI::HorizontalBoxLayout {}

            @GUI::Label {
                text: "Resolution:"
                text_alignment: "CenterLeft"
                fixed_width: 95
            }

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

            @GUI::Label {
                name: "display_dpi"
                text: "96 dpi"
                text_alignment: "CenterMiddle"
                fixed_width: 50
            }
        }

        @GUI::Widget {
            fixed_height: 8
        }

        @GUI::Widget {
            preferred_height: "fit"
            layout: @GUI::HorizontalBoxLayout {}

            @GUI::Label {
                text: "Display scale:"
                text_alignment: "CenterLeft"
                fixed_width: 95
            }

            @GUI::RadioButton {
                name: "scale_1x"
                text: "1x"
                fixed_width: 50
            }

            @GUI::RadioButton {
                name: "scale_2x"
                text: "2x"
                fixed_width: 50
            }

            @GUI::Layout::Spacer {}
        }
    }
}