LibGUI+PixelPaint: Port GUI::ValueSlider's suffix to the new String

This commit is contained in:
Karol Kosek 2023-02-12 18:06:01 +01:00 committed by Linus Groh
commit 67ffc687d8
Notes: sideshowbarker 2024-07-17 08:45:34 +09:00
18 changed files with 30 additions and 29 deletions

View file

@ -166,7 +166,7 @@ GUI::Widget* RectangleSelectTool::get_properties_widget()
feather_label.set_fixed_size(80, 20);
int const feather_slider_max = 100;
auto& feather_slider = feather_container.add<GUI::ValueSlider>(Orientation::Horizontal, "%");
auto& feather_slider = feather_container.add<GUI::ValueSlider>(Orientation::Horizontal, String::from_utf8_short_string("%"sv));
feather_slider.set_range(0, feather_slider_max);
feather_slider.set_value((int)floorf(m_edge_feathering * (float)feather_slider_max));