1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:17:35 +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

@ -104,7 +104,7 @@ TerminalSettingsViewWidget::TerminalSettingsViewWidget()
{
load_from_gml(terminal_settings_view_gml);
auto& slider = *find_descendant_of_type_named<GUI::OpacitySlider>("background_opacity_slider");
auto& slider = *find_descendant_of_type_named<GUI::HorizontalOpacitySlider>("background_opacity_slider");
m_opacity = Config::read_i32("Terminal"sv, "Window"sv, "Opacity"sv);
m_original_opacity = m_opacity;
slider.set_value(m_opacity);