mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:07:45 +00:00
PixelPaint: Use ValueSlider for radial gradient hardness
This makes this input consistent with the hardness properties of other tools.
This commit is contained in:
parent
5c002c13c9
commit
bd0bf8250e
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
|||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/OpacitySlider.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/ValueSlider.h>
|
||||
#include <LibGfx/AntiAliasingPainter.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/Gradients.h>
|
||||
|
@ -274,7 +275,7 @@ ErrorOr<GUI::Widget*> 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<GUI::HorizontalOpacitySlider>());
|
||||
auto hardness_slider = TRY(hardness_container->try_add<GUI::ValueSlider>(Orientation::Horizontal, "%"_short_string));
|
||||
hardness_slider->set_range(1, 99);
|
||||
hardness_slider->set_value(m_hardness);
|
||||
hardness_slider->on_change = [this](int value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue