LibGfx: Add window border/title theming options

This commit adds support the following properties to theming:
Flags:
  - IsTitleCenter: true if the title should be centered.
Metrics:
  - BorderThickness: The border width.
  - BorderRadius: The border corner radius.
This commit is contained in:
Filiph Sandström 2021-12-28 22:44:12 +01:00 committed by Andreas Kling
commit 8a1d77f65c
Notes: sideshowbarker 2024-07-17 21:51:02 +09:00
18 changed files with 74 additions and 13 deletions

View file

@ -91,9 +91,12 @@ namespace Gfx {
C(WindowText)
#define ENUMERATE_FLAG_ROLES(C) \
C(IsDark)
C(IsDark) \
C(IsTitleCenter)
#define ENUMERATE_METRIC_ROLES(C) \
C(BorderThickness) \
C(BorderRadius) \
C(TitleHeight) \
C(TitleButtonWidth) \
C(TitleButtonHeight)