summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-09 15:05:31 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-09 15:05:31 +0100
commitcf750b5d3f4a4c0d8685875c27454ef04a5f3897 (patch)
treee250625e8bc4fc7c67431123bc7660d444f27bd0
parent0a3b834346156c5b259ed79484206b3a2abde7b4 (diff)
downloadserenity-cf750b5d3f4a4c0d8685875c27454ef04a5f3897.zip
Chess: Fix button size in the piece promotion dialog
Fixes #4865.
-rw-r--r--Games/Chess/PromotionDialog.cpp1
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;