PixelPaint: Make gradient tool hardness slider width match other inputs

This commit is contained in:
MacDue 2023-05-04 20:19:02 +01:00 committed by Jelle Raaijmakers
parent 3a60ddc5a8
commit 95c571ca53
Notes: sideshowbarker 2024-07-17 18:38:54 +09:00

View File

@ -272,6 +272,7 @@ ErrorOr<GUI::Widget*> GradientTool::get_properties_widget()
auto hardness_label = TRY(hardness_container->try_add<GUI::Label>(TRY("Hardness:"_string)));
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>());
hardness_slider->set_range(1, 99);