1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +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:
Tom 2021-02-09 22:12:32 -07:00 committed by Andreas Kling
parent 5d4c4bd372
commit a807d92a32
4 changed files with 25 additions and 11 deletions

View file

@ -1526,7 +1526,6 @@ void WindowManager::reload_icon_bitmaps_after_scale_change(bool allow_hidpi_icon
{
m_allow_hidpi_icons = allow_hidpi_icons;
reload_config();
WindowFrame::reload_config();
for_each_window([&](Window& window) {
auto& window_frame = window.frame();
window_frame.theme_changed();