summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/WindowSwitcher.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/Services/WindowServer/WindowSwitcher.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/Services/WindowServer/WindowSwitcher.cpp')
-rw-r--r--Userland/Services/WindowServer/WindowSwitcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/WindowSwitcher.cpp b/Userland/Services/WindowServer/WindowSwitcher.cpp
index 7cf11923b7..bbeeee594b 100644
--- a/Userland/Services/WindowServer/WindowSwitcher.cpp
+++ b/Userland/Services/WindowServer/WindowSwitcher.cpp
@@ -191,7 +191,7 @@ void WindowSwitcher::draw()
rect_text_color = palette.selection_text().with_alpha(0xcc);
} else {
if (static_cast<int>(index) == m_hovered_index)
- Gfx::StylePainter::paint_frame(painter, item_rect, palette, Gfx::FrameShape::Panel, Gfx::FrameShadow::Raised, 2);
+ Gfx::StylePainter::paint_frame(painter, item_rect, palette, Gfx::FrameStyle::RaisedPanel);
text_color = Color::White;
rect_text_color = Color(Color::White).with_alpha(0xcc);
}