Newer
Older
minerva / Userland / Applications / DisplaySettings / BackgroundSettings.gml
@minerva minerva on 13 Jul 1 KB Initial commit
@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::Label {
        shrink_to_fit: true
        fixed_height: 16
        text_alignment: "CenterLeft"
        text: "Select a background picture:"
    }

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

        @GUI::IconView {
            name: "wallpaper_view"
            preferred_width: "opportunistic_grow"
        }

        @GUI::Widget {
            preferred_width: "fit"
            layout: @GUI::VerticalBoxLayout {}

            @GUI::Button {
                name: "wallpaper_open_button"
                tooltip: "Select wallpaper from file system"
                text: "Browse..."
            }

            @GUI::Layout::Spacer {}

            @GUI::Label {
                text: "Mode:"
                text_alignment: "CenterLeft"
                fixed_height: 16
            }

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

            @GUI::Layout::Spacer {}

            @GUI::Label {
                text: "Color:"
                text_alignment: "CenterLeft"
                fixed_height: 16
            }

            @GUI::ColorInput {
                name: "color_input"
                fixed_width: 90
            }
        }
    }
}