mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:57:35 +00:00
GamesSettings: Add chess settings :^)
This adds a tab for configuring the appearance of Chess, along with a preview.
This commit is contained in:
parent
64c9c7a4da
commit
05913b853a
5 changed files with 416 additions and 6 deletions
58
Userland/Applications/GamesSettings/ChessSettingsWidget.gml
Normal file
58
Userland/Applications/GamesSettings/ChessSettingsWidget.gml
Normal file
|
@ -0,0 +1,58 @@
|
|||
@GUI::Frame {
|
||||
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"
|
||||
model_only: true
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 16
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Board Theme:"
|
||||
text_alignment: "CenterLeft"
|
||||
}
|
||||
|
||||
@GUI::ComboBox {
|
||||
name: "board_theme"
|
||||
model_only: true
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "show_coordinates"
|
||||
text: "Show coordinates"
|
||||
checkbox_position: "Right"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue