mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 00:56:39 +00:00
WindowServer: Fix switching between shadows and no shadows with themes
We weren't properly handling switching between having a shadow and not having a shadow when switching themes. This allows an empty string in the theme configuration for a shadow path, meaning no shadow should be rendered.
This commit is contained in:
parent
5d4c4bd372
commit
a807d92a32
Notes:
sideshowbarker
2024-07-18 22:27:32 +09:00
Author: https://github.com/tomuta
Commit: a807d92a32
Pull-request: https://github.com/SerenityOS/serenity/pull/5285
Issue: https://github.com/SerenityOS/serenity/issues/5283
4 changed files with 25 additions and 11 deletions
|
@ -90,6 +90,10 @@ public:
|
|||
void theme_changed()
|
||||
{
|
||||
m_dirty = m_shadow_dirty = true;
|
||||
m_top_bottom = nullptr;
|
||||
m_left_right = nullptr;
|
||||
m_bottom_y = m_right_x = 0;
|
||||
|
||||
layout_buttons();
|
||||
set_button_icons();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue