WindowServer+LibGfx: Move window frame rect calculation to WindowTheme

This commit is contained in:
Andreas Kling 2020-08-10 13:03:44 +02:00
commit de1a54c378
Notes: sideshowbarker 2024-07-19 04:04:20 +09:00
4 changed files with 41 additions and 22 deletions

View file

@ -43,6 +43,8 @@ public:
virtual IntRect title_bar_icon_rect(WindowType, const IntRect& window_rect, const Palette&) const override;
virtual IntRect title_bar_text_rect(WindowType, const IntRect& window_rect, const Palette&) const override;
virtual IntRect frame_rect_for_window(WindowType, const IntRect& window_rect, const Palette&) const override;
private:
struct FrameColors {
Color title_color;