diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-09 15:05:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-09 15:05:31 +0100 |
commit | cf750b5d3f4a4c0d8685875c27454ef04a5f3897 (patch) | |
tree | e250625e8bc4fc7c67431123bc7660d444f27bd0 | |
parent | 0a3b834346156c5b259ed79484206b3a2abde7b4 (diff) | |
download | serenity-cf750b5d3f4a4c0d8685875c27454ef04a5f3897.zip |
Chess: Fix button size in the piece promotion dialog
Fixes #4865.
-rw-r--r-- | Games/Chess/PromotionDialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Games/Chess/PromotionDialog.cpp b/Games/Chess/PromotionDialog.cpp index e106b88ca0..17e1e7a004 100644 --- a/Games/Chess/PromotionDialog.cpp +++ b/Games/Chess/PromotionDialog.cpp @@ -44,6 +44,7 @@ PromotionDialog::PromotionDialog(ChessWidget& chess_widget) for (auto& type : Vector({ Chess::Type::Queen, Chess::Type::Knight, Chess::Type::Rook, Chess::Type::Bishop })) { auto& button = main_widget.add<GUI::Button>(""); + button.set_fixed_height(70); button.set_icon(chess_widget.get_piece_graphic({ chess_widget.board().turn(), type })); button.on_click = [this, type](auto) { m_selected_piece = type; |