From bd0bf8250ecd76d607f03b32821501a15767a1bf Mon Sep 17 00:00:00 2001 From: MacDue Date: Thu, 4 May 2023 23:00:06 +0100 Subject: [PATCH] PixelPaint: Use ValueSlider for radial gradient hardness This makes this input consistent with the hardness properties of other tools. --- Userland/Applications/PixelPaint/Tools/GradientTool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Applications/PixelPaint/Tools/GradientTool.cpp b/Userland/Applications/PixelPaint/Tools/GradientTool.cpp index d4a368eeba..4cf6f535e9 100644 --- a/Userland/Applications/PixelPaint/Tools/GradientTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/GradientTool.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -274,7 +275,7 @@ ErrorOr GradientTool::get_properties_widget() hardness_label->set_text_alignment(Gfx::TextAlignment::CenterLeft); hardness_label->set_fixed_size(80, 20); - auto hardness_slider = TRY(hardness_container->try_add()); + auto hardness_slider = TRY(hardness_container->try_add(Orientation::Horizontal, "%"_short_string)); hardness_slider->set_range(1, 99); hardness_slider->set_value(m_hardness); hardness_slider->on_change = [this](int value) {