summaryrefslogtreecommitdiff
path: root/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-10 01:37:08 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-10 01:37:08 +0200
commit4abffa4dbe067847335a1fcdcc5d18200e322830 (patch)
tree0ba8c957dd6393e3480066f6442fb1919b2ee44c /LibGUI
parenta00a2a9db512a499a196e1b7992e1c64eebe9382 (diff)
downloadserenity-4abffa4dbe067847335a1fcdcc5d18200e322830.zip
GSpinBox: Put nice little arrow glyphs on the buttons.
Diffstat (limited to 'LibGUI')
-rw-r--r--LibGUI/GSpinBox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/LibGUI/GSpinBox.cpp b/LibGUI/GSpinBox.cpp
index 1f00d1bbe9..67ef6daf03 100644
--- a/LibGUI/GSpinBox.cpp
+++ b/LibGUI/GSpinBox.cpp
@@ -15,10 +15,10 @@ GSpinBox::GSpinBox(GWidget* parent)
m_editor->set_text(String::format("%d", m_value));
};
m_increment_button = new GButton(this);
- m_increment_button->set_caption("+");
+ m_increment_button->set_caption("\xf6");
m_increment_button->on_click = [this] (GButton&) { set_value(m_value + 1); };
m_decrement_button = new GButton(this);
- m_decrement_button->set_caption("-");
+ m_decrement_button->set_caption("\xf7");
m_decrement_button->on_click = [this] (GButton&) { set_value(m_value - 1); };
}
@@ -64,7 +64,7 @@ void GSpinBox::set_range(int min, int max)
void GSpinBox::resize_event(GResizeEvent& event)
{
int button_height = event.size().height() / 2;
- int button_width = 16;
+ int button_width = 15;
m_increment_button->set_relative_rect(width() - button_width, 0, button_width, button_height);
m_decrement_button->set_relative_rect(width() - button_width, button_height, button_width, button_height);
m_editor->set_relative_rect(0, 0, width() - button_width, height());