mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
WindowServer: Use the system theme for the fallback window background
When filling in some missing part of a window (typically happens during interactive window resize) we now use the ColorRole::Background from the system theme palette instead of expecting the clients to send us the same information when creating windows.
This commit is contained in:
parent
fd06164fa0
commit
159289af03
5 changed files with 2 additions and 9 deletions
|
@ -147,7 +147,7 @@ void WSCompositor::compose()
|
|||
PainterStateSaver saver(*m_back_painter);
|
||||
m_back_painter->add_clip_rect(dirty_rect);
|
||||
if (!backing_store)
|
||||
m_back_painter->fill_rect(dirty_rect, window.background_color());
|
||||
m_back_painter->fill_rect(dirty_rect, wm.palette().window());
|
||||
if (!window.is_fullscreen())
|
||||
window.frame().paint(*m_back_painter);
|
||||
if (!backing_store)
|
||||
|
@ -197,7 +197,7 @@ void WSCompositor::compose()
|
|||
|
||||
m_back_painter->blit(dst, *backing_store, dirty_rect_in_backing_coordinates, window.opacity());
|
||||
for (auto background_rect : window.rect().shatter(backing_rect))
|
||||
m_back_painter->fill_rect(background_rect, window.background_color());
|
||||
m_back_painter->fill_rect(background_rect, wm.palette().window());
|
||||
}
|
||||
return IterationDecision::Continue;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue