1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +00:00

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
parent c4507bb56e
commit 67ffc687d8
18 changed files with 30 additions and 29 deletions

View file

@ -191,7 +191,7 @@ GUI::Widget* GuideTool::get_properties_widget()
snapping_label.set_fixed_size(80, 20);
snapping_label.set_tooltip("Press Shift to snap");
auto& snapping_slider = snapping_container.add<GUI::ValueSlider>(Orientation::Horizontal, "px");
auto& snapping_slider = snapping_container.add<GUI::ValueSlider>(Orientation::Horizontal, String::from_utf8_short_string("px"sv));
snapping_slider.set_range(0, 50);
snapping_slider.set_value(m_snap_size);