summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/EditGuideDialog.gml
blob: 222ef1a51b0a6d9165c6fb077f70ae029a6b4691 (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
@GUI::Frame {
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout

    @GUI::Widget {
        layout: @GUI::VerticalBoxLayout {
            margins: [4]
        }

        @GUI::GroupBox {
            title: "Orientation"
            shrink_to_fit: true
            layout: @GUI::HorizontalBoxLayout {
                margins: [10, 8, 8]
            }

            @GUI::RadioButton {
                name: "orientation_horizontal_radio"
                text: "Horizontal"
            }

            @GUI::RadioButton {
                name: "orientation_vertical_radio"
                text: "Vertical"
            }
        }
    }

    @GUI::Widget {
        layout: @GUI::HorizontalBoxLayout {
            margins: [4]
        }

        shrink_to_fit: true
        @GUI::Label {
            text: "Offset"
            text_alignment: "CenterLeft"
        }

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

    @GUI::Widget {
        max_height: 24
        layout: @GUI::HorizontalBoxLayout {
            margins: [4]
        }

        @GUI::Widget

        @GUI::Button {
            name: "ok_button"
            text: "OK"
            max_width: 75
        }

        @GUI::Button {
            name: "cancel_button"
            text: "Cancel"
            max_width: 75
        }
    }
}