diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-20 16:52:39 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-20 19:32:12 +0200 |
commit | c59b053ad6197f94a14b0690654684170dc6d85d (patch) | |
tree | 99069beaa18965478398023050dc868d179ae64a /Applications/Terminal | |
parent | 8ab1923abe46d0aed62aa4918d7edc1a8d1f041e (diff) | |
download | serenity-c59b053ad6197f94a14b0690654684170dc6d85d.zip |
GSlider: Add support for vertical sliders.
You now have to pass an Orientation to the GSlider constructor. It's not
possible to change the orientation after construction.
Added some vertical GSliders to the WidgetGallery demo for testing. :^)
Diffstat (limited to 'Applications/Terminal')
-rw-r--r-- | Applications/Terminal/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index f487413d32..1fc3f749f4 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -114,7 +114,7 @@ GWindow* create_settings_window(Terminal& terminal, RefPtr<CConfigFile> config) slider_container->set_fill_with_background_color(true); slider_container->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); slider_container->set_preferred_size({ 100, 50 }); - auto* slider = new GSlider(slider_container); + auto* slider = new GSlider(Orientation::Horizontal, slider_container); slider->set_fill_with_background_color(true); slider->set_background_color(Color::WarmGray); |