mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +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
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