summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/PixelPaintWindow.gml
blob: 8fe3166c225eb13129305f9ae66dcda008d730b9 (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
@GUI::Widget {
    name: "main"
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout {
        spacing: 2
    }

    @GUI::ToolbarContainer {
        name: "toolbar_container"

        @GUI::Toolbar {
            name: "toolbar"
        }
    }

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

        @GUI::ToolbarContainer {
            name: "toolbar_container"

            @PixelPaint::ToolboxWidget {
                name: "toolbox"
            }
        }

        @GUI::Widget {
            layout: @GUI::VerticalBoxLayout {
                spacing: 0
            }

            @GUI::TabWidget {
                name: "tab_widget"
                container_margins: [4, 5, 5, 4]
                reorder_allowed: true
                show_close_buttons: true
            }

            @PixelPaint::PaletteWidget {
                name: "palette_widget"
            }
        }

        @GUI::Widget {
            fill_with_background_color: true
            fixed_width: 200
            layout: @GUI::VerticalBoxLayout {}

            @GUI::GroupBox {
                title: "Layers"
                layout: @GUI::VerticalBoxLayout {
                    margins: [6]
                }

                @PixelPaint::LayerListWidget {
                    name: "layer_list_widget"
                }
            }

            @PixelPaint::LayerPropertiesWidget {
                name: "layer_properties_widget"
                max_height: 94
            }

            @GUI::GroupBox {
                title: "Histogram"
                preferred_height: "shrink"
                visible: false
                layout: @GUI::VerticalBoxLayout {
                    margins: [6]
                }

                @PixelPaint::HistogramWidget {
                    name: "histogram_widget"
                    min_height: 65
                }
            }

            @GUI::GroupBox {
                title: "Vectorscope"
                min_height: 80
                visible: false
                layout: @GUI::VerticalBoxLayout {
                    margins: [6]
                }

                @PixelPaint::VectorscopeWidget {
                    name: "vectorscope_widget"
                    preferred_height: "fit"
                }
            }

            @PixelPaint::ToolPropertiesWidget {
                name: "tool_properties_widget"
                max_height: 144
            }
        }
    }

    @GUI::Statusbar {
        name: "statusbar"
    }
}