diff options
Diffstat (limited to 'Userland/Applications/PixelPaint/EllipseTool.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/EllipseTool.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/EllipseTool.cpp b/Userland/Applications/PixelPaint/EllipseTool.cpp index d70d3f3c23..b996d497d4 100644 --- a/Userland/Applications/PixelPaint/EllipseTool.cpp +++ b/Userland/Applications/PixelPaint/EllipseTool.cpp @@ -113,8 +113,11 @@ GUI::Widget* EllipseTool::get_properties_widget() thickness_slider.set_fixed_height(20); thickness_slider.set_range(1, 10); thickness_slider.set_value(m_thickness); + thickness_slider.set_tooltip(String::formatted("{}px", m_thickness)); + thickness_slider.on_change = [&](int value) { m_thickness = value; + thickness_slider.set_tooltip(String::formatted("{}px", value)); }; auto& mode_container = m_properties_widget->add<GUI::Widget>(); |