diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-31 11:57:58 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-31 12:10:01 +0100 |
commit | 0b55b0bdb8790b4c84527ba74b55b3e6087b38b0 (patch) | |
tree | 29516a5a85b61f6d9803669a5782b06f9ea3a47c | |
parent | ddaa13577ec264dc08b6ef6446e5ab7cc01b3251 (diff) | |
download | serenity-0b55b0bdb8790b4c84527ba74b55b3e6087b38b0.zip |
Terminal: Use GUI::OpacitySlider in the settings window
-rw-r--r-- | Applications/Terminal/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index bf82c95795..9f11b960fe 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -38,8 +38,8 @@ #include <LibGUI/Icon.h> #include <LibGUI/Menu.h> #include <LibGUI/MenuBar.h> +#include <LibGUI/OpacitySlider.h> #include <LibGUI/RadioButton.h> -#include <LibGUI/Slider.h> #include <LibGUI/SpinBox.h> #include <LibGUI/TextBox.h> #include <LibGUI/Widget.h> @@ -224,7 +224,7 @@ static RefPtr<GUI::Window> create_settings_window(TerminalWidget& terminal) slider_container.set_layout<GUI::VerticalBoxLayout>(); slider_container.layout()->set_margins({ 6, 16, 6, 6 }); slider_container.set_fixed_height(50); - auto& slider = slider_container.add<GUI::HorizontalSlider>(); + auto& slider = slider_container.add<GUI::OpacitySlider>(); slider.on_change = [&terminal](int value) { terminal.set_opacity(value); |