mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:17:34 +00:00
WindowServer: Recompute occlusions and re-render shadows on theme change
Since theme changes may change geometrics, which are also affected by window shadows, we need to recompute occlusions as well as re-render window frames.
This commit is contained in:
parent
ace1b34798
commit
e1ee59ac9d
2 changed files with 9 additions and 2 deletions
|
@ -85,6 +85,13 @@ public:
|
|||
m_dirty = true;
|
||||
}
|
||||
|
||||
void theme_changed()
|
||||
{
|
||||
m_dirty = m_shadow_dirty = true;
|
||||
layout_buttons();
|
||||
set_button_icons();
|
||||
}
|
||||
|
||||
private:
|
||||
void paint_simple_rect_shadow(Gfx::Painter&, const Gfx::IntRect&, const Gfx::Bitmap&) const;
|
||||
void paint_notification_frame(Gfx::Painter&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue