mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
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:
parent
14b2656107
commit
8a1d77f65c
18 changed files with 74 additions and 13 deletions
|
@ -126,7 +126,10 @@ public:
|
|||
Color syntax_preprocessor_value() const { return color(ColorRole::SyntaxPreprocessorValue); }
|
||||
|
||||
bool is_dark() const { return flag(FlagRole::IsDark); }
|
||||
bool is_title_center() const { return flag(FlagRole::IsTitleCenter); }
|
||||
|
||||
int window_border_thickness() const { return metric(MetricRole::BorderThickness); }
|
||||
int window_border_radius() const { return metric(MetricRole::BorderRadius); }
|
||||
int window_title_height() const { return metric(MetricRole::TitleHeight); }
|
||||
int window_title_button_width() const { return metric(MetricRole::TitleButtonWidth); }
|
||||
int window_title_button_height() const { return metric(MetricRole::TitleButtonHeight); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue