1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

LibGUI: Split OpacitySlider into vertical and horizontal helper classes

This commit is contained in:
FrHun 2022-12-07 23:40:36 +01:00 committed by Andreas Kling
parent 99624a8df4
commit 59028515c0
9 changed files with 56 additions and 11 deletions

View file

@ -51,7 +51,7 @@ LayerPropertiesWidget::LayerPropertiesWidget()
opacity_label.set_text_alignment(Gfx::TextAlignment::CenterLeft);
opacity_label.set_fixed_size(80, 20);
m_opacity_slider = opacity_container.add<GUI::OpacitySlider>();
m_opacity_slider = opacity_container.add<GUI::HorizontalOpacitySlider>();
m_opacity_slider->set_range(0, 100);
m_opacity_slider->on_change = [this](int value) {
if (m_layer)