mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
Chess+GameSettings: Optionally highlight the king when in check
When either king is in check, its square is now highlighted with a red background. This behavior can be toggled in GameSettings.
This commit is contained in:
parent
0c26717ba3
commit
cf4a43e4c0
6 changed files with 37 additions and 2 deletions
|
@ -87,6 +87,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
widget->set_board_theme(Config::read_string("Games"sv, "Chess"sv, "BoardTheme"sv, "Beige"sv));
|
||||
widget->set_coordinates(Config::read_bool("Games"sv, "Chess"sv, "ShowCoordinates"sv, true));
|
||||
widget->set_show_available_moves(Config::read_bool("Games"sv, "Chess"sv, "ShowAvailableMoves"sv, true));
|
||||
widget->set_highlight_checks(Config::read_bool("Games"sv, "Chess"sv, "HighlightChecks"sv, true));
|
||||
|
||||
auto game_menu = TRY(window->try_add_menu("&Game"_short_string));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue