Newer
Older
minerva / Userland / Applications / GamesSettings / ChessSettingsWidget.gml
@minerva minerva on 13 Jul 1 KB Initial commit
@GamesSettings::ChessSettingsWidget {
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout {
        margins: [8]
    }

    @GamesSettings::ChessGamePreview {
        name: "chess_preview"
        fill_with_background_color: true
        fixed_height: 160
    }

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

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

            @GUI::Label {
                text: "Piece set:"
                text_alignment: "CenterLeft"
            }

            @GUI::ComboBox {
                name: "piece_set"
                only_allow_values_from_model: true
            }
        }

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

            @GUI::Label {
                text: "Board theme:"
                text_alignment: "CenterLeft"
            }

            @GUI::ComboBox {
                name: "board_theme"
                only_allow_values_from_model: true
            }
        }

        @GUI::CheckBox {
            name: "show_coordinates"
            text: "Show coordinates"
            checkbox_position: "Right"
        }

        @GUI::CheckBox {
            name: "highlight_checks"
            text: "Highlight checks"
            checkbox_position: "Right"
        }
    }
}