mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17: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
|
@ -42,6 +42,13 @@ public:
|
|||
|
||||
void set_icon(RefPtr<MultiScaleBitmaps> const& icon) { m_icon = icon; }
|
||||
|
||||
enum class Style {
|
||||
Normal,
|
||||
IconOnly
|
||||
};
|
||||
|
||||
void set_style(Style style) { m_style = style; }
|
||||
|
||||
private:
|
||||
WindowFrame& m_frame;
|
||||
Gfx::IntRect m_relative_rect;
|
||||
|
@ -49,6 +56,7 @@ private:
|
|||
bool m_pressed { false };
|
||||
bool m_visible { true };
|
||||
bool m_hovered { false };
|
||||
Style m_style { Style::Normal };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue