summaryrefslogtreecommitdiff
path: root/Userland/Applications/GamesSettings/CardSettingsWidget.gml
blob: e4a8788472c6ec1d94f87e3649133e783e39a0cf (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
@GUI::Frame {
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout {
        margins: [8]
    }

    @GUI::Frame {
        name: "cards_preview"
        max_height: "shrink"
        background_color: "green"
        fill_with_background_color: true
        layout: @GUI::HorizontalBoxLayout {
            margins: [8]
            spacing: 8
        }

        @GUI::Layout::Spacer {}

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

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

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

        @GUI::Layout::Spacer {}
    }

    @GUI::GroupBox {
        title: "Background Color"
        max_height: "shrink"
        layout: @GUI::VerticalBoxLayout {
            margins: [8]
        }

        @GUI::ColorInput {
            name: "cards_background_color"
            has_alpha_channel: false
        }
    }

    @GUI::GroupBox {
        title: "Card Back"
        layout: @GUI::VerticalBoxLayout {
            margins: [8]
        }

        @GUI::IconView {
            name: "cards_back_image"
        }
    }
}