mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:27:35 +00:00
LibGfx+WindowServer: Add theme flag TitleButtonsIconOnly
With this flag set to true only the icon of the title button is painted. This is useful for themes with a more non-serenity look such as Coffee and Cupertino (that currently try to hide the button).
This commit is contained in:
parent
5998e7f8a2
commit
9b30fe9864
5 changed files with 27 additions and 5 deletions
|
@ -143,6 +143,7 @@ public:
|
|||
Gfx::TextAlignment title_alignment() const { return alignment(AlignmentRole::TitleAlignment); }
|
||||
|
||||
bool is_dark() const { return flag(FlagRole::IsDark); }
|
||||
bool title_buttons_icon_only() const { return flag(FlagRole::TitleButtonsIconOnly); }
|
||||
|
||||
int window_border_thickness() const { return metric(MetricRole::BorderThickness); }
|
||||
int window_border_radius() const { return metric(MetricRole::BorderRadius); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue