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:
parent
99624a8df4
commit
59028515c0
9 changed files with 56 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue