diff options
Diffstat (limited to 'Userland/Applications/PixelPaint/PenTool.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/PenTool.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/PenTool.cpp b/Userland/Applications/PixelPaint/PenTool.cpp index 6df320d5f8..1a8fb9bfe8 100644 --- a/Userland/Applications/PixelPaint/PenTool.cpp +++ b/Userland/Applications/PixelPaint/PenTool.cpp @@ -81,8 +81,11 @@ GUI::Widget* PenTool::get_properties_widget() thickness_slider.set_fixed_height(20); thickness_slider.set_range(1, 20); thickness_slider.set_value(m_thickness); - thickness_slider.on_change = [this](int value) { + 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)); }; } |