summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/OpacitySlider.cpp
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2023-04-29 16:47:52 -0400
committerAndreas Kling <kling@serenityos.org>2023-04-30 05:49:46 +0200
commitf7e034d4b257a22b898252d62652587601fa7f99 (patch)
treea69511f055f54e0215a63d6082637d38293e97f6 /Userland/Libraries/LibGUI/OpacitySlider.cpp
parent4c9933bfb701c43a2f9aeadf8d06398fd6327749 (diff)
downloadserenity-f7e034d4b257a22b898252d62652587601fa7f99.zip
LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle
Previously, Frames could set both these properties along with a thickness to confusing effect: Most shapes of the same shadowing only differentiated at a thickness >= 2, and some not at all. This led to a lot of creative but ultimately superfluous choices in the code. Instead let's streamline our options, automate thickness, and get the right look without so much guesswork. Plain shadowing has been consolidated into a single Plain style, and 0 thickness can be had by setting style to NoFrame.
Diffstat (limited to 'Userland/Libraries/LibGUI/OpacitySlider.cpp')
-rw-r--r--Userland/Libraries/LibGUI/OpacitySlider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/OpacitySlider.cpp b/Userland/Libraries/LibGUI/OpacitySlider.cpp
index 5b005d1cc7..a554017ffd 100644
--- a/Userland/Libraries/LibGUI/OpacitySlider.cpp
+++ b/Userland/Libraries/LibGUI/OpacitySlider.cpp
@@ -132,7 +132,7 @@ void OpacitySlider::paint_event(PaintEvent& event)
painter.draw_text(inner_rect, percent_text, Gfx::TextAlignment::Center, Color::White);
// Frame
- Gfx::StylePainter::paint_frame(painter, rect(), palette(), Gfx::FrameShape::Container, Gfx::FrameShadow::Sunken, 2);
+ Gfx::StylePainter::paint_frame(painter, rect(), palette(), Gfx::FrameStyle::SunkenContainer);
}
int OpacitySlider::value_at(Gfx::IntPoint position) const