LibGUI: Make the buttons in GInputBox and GMessageBox slightly taller.

This commit is contained in:
Andreas Kling 2019-03-27 20:47:48 +01:00
parent d63528197b
commit d71820a382
2 changed files with 4 additions and 4 deletions

View file

@ -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<GBoxLayout>(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");

View file

@ -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");