summaryrefslogtreecommitdiff
path: root/Userland/Applications/Run/Run.gml
blob: 5f2fd0ca20f1b50f01f971c200413cf755f6996d (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::Widget {
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout {
        margins: [4]
    }

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

        @GUI::ImageWidget {
            name: "icon"
        }

        @GUI::Label {
            name: "info"
            text: "Type the name of a program, folder, document,\nor website, and SerenityOS will open it for you."
            text_alignment: "CenterLeft"
        }
    }

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

        @GUI::Label {
            text: "Open:"
            fixed_width: 50
            text_alignment: "CenterLeft"
        }

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

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

        // HACK: using an empty widget as a spacer
        @GUI::Widget {}

        @GUI::Button {
            name: "ok_button"
            text: "OK"
            fixed_width: 80
        }

        @GUI::Button {
            name: "cancel_button"
            text: "Cancel"
            fixed_width: 80
        }

        @GUI::Button {
            name: "browse_button"
            text: "Browse..."
            fixed_width: 80
        }
    }
}