1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:07:46 +00:00

WindowServer+LibGfx: Move normal window frame painting to a WindowTheme

This patch introduces the ClassicWindowTheme, which is our default
theme implemented as a Gfx::WindowTheme subclass.

In this initial cut, we move normal window frame painting and title
bar metrics helpers out of WindowServer and into LibGfx.

This will eventually allow us much greater flexibility with theming
windows, and also makes it easier to build applications that want to
render a window with a specific style for some reason. :^)
This commit is contained in:
Andreas Kling 2020-08-09 19:29:15 +02:00
parent a94be95e27
commit e7460b6fb4
5 changed files with 210 additions and 73 deletions

View file

@ -3,6 +3,7 @@ set(SOURCES
Bitmap.cpp
BMPLoader.cpp
CharacterBitmap.cpp
ClassicWindowTheme.cpp
Color.cpp
DisjointRectSet.cpp
Emoji.cpp