From d71820a382a5b7f36065ed611cbdd83fe5042a37 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 27 Mar 2019 20:47:48 +0100 Subject: [PATCH] LibGUI: Make the buttons in GInputBox and GMessageBox slightly taller. --- LibGUI/GInputBox.cpp | 6 +++--- LibGUI/GMessageBox.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LibGUI/GInputBox.cpp b/LibGUI/GInputBox.cpp index d401a66b62..eb38e5c81e 100644 --- a/LibGUI/GInputBox.cpp +++ b/LibGUI/GInputBox.cpp @@ -42,7 +42,7 @@ void GInputBox::build() auto* button_container_outer = new GWidget(widget); button_container_outer->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); - button_container_outer->set_preferred_size({ 0, 16 }); + button_container_outer->set_preferred_size({ 0, 20 }); button_container_outer->set_layout(make(Orientation::Vertical)); auto* button_container_inner = new GWidget(button_container_outer); @@ -51,7 +51,7 @@ void GInputBox::build() m_cancel_button = new GButton(button_container_inner); m_cancel_button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); - m_cancel_button->set_preferred_size({ 0, 16 }); + m_cancel_button->set_preferred_size({ 0, 20 }); m_cancel_button->set_caption("Cancel"); m_cancel_button->on_click = [this] (auto&) { dbgprintf("GInputBox: Cancel button clicked\n"); @@ -60,7 +60,7 @@ void GInputBox::build() m_ok_button = new GButton(button_container_inner); m_ok_button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); - m_ok_button->set_preferred_size({ 0, 16 }); + m_ok_button->set_preferred_size({ 0, 20 }); m_ok_button->set_caption("OK"); m_ok_button->on_click = [this] (auto&) { dbgprintf("GInputBox: OK button clicked\n"); diff --git a/LibGUI/GMessageBox.cpp b/LibGUI/GMessageBox.cpp index 057cd6a28a..74997d0980 100644 --- a/LibGUI/GMessageBox.cpp +++ b/LibGUI/GMessageBox.cpp @@ -36,7 +36,7 @@ void GMessageBox::build() auto* button = new GButton(widget); button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed); - button->set_preferred_size({ 100, 16 }); + button->set_preferred_size({ 100, 20 }); button->set_caption("OK"); button->on_click = [this] (auto&) { dbgprintf("GMessageBox: OK button clicked\n");