mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:37: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
|
@ -35,9 +35,6 @@ public:
|
|||
unsigned wm_event_mask() const { return m_wm_event_mask; }
|
||||
void set_wm_event_mask(unsigned mask) { m_wm_event_mask = mask; }
|
||||
|
||||
Color background_color() const { return m_background_color; }
|
||||
void set_background_color(Color color) { m_background_color = color; }
|
||||
|
||||
bool is_minimized() const { return m_minimized; }
|
||||
void set_minimized(bool);
|
||||
|
||||
|
@ -207,7 +204,6 @@ private:
|
|||
NonnullRefPtr<GraphicsBitmap> m_icon;
|
||||
RefPtr<WSCursor> m_override_cursor;
|
||||
WSWindowFrame m_frame;
|
||||
Color m_background_color { Color::WarmGray };
|
||||
unsigned m_wm_event_mask { 0 };
|
||||
DisjointRectSet m_pending_paint_rects;
|
||||
Rect m_unmaximized_rect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue