mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
LibGUI+LibGfx: Add Tray ColorRole helpers to Palette
This commit is contained in:
parent
bfc08bc84b
commit
08456be9dc
Notes:
sideshowbarker
2024-07-17 00:59:51 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/08456be9dc Pull-request: https://github.com/SerenityOS/serenity/pull/17242
2 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,7 @@ void Tray::paint_event(GUI::PaintEvent& event)
|
|||
}
|
||||
|
||||
auto const& font = is_checked ? this->font().bold_variant() : this->font();
|
||||
painter.draw_text(text_rect, item.text, font, Gfx::TextAlignment::CenterLeft, palette().color(Gfx::ColorRole::TrayText));
|
||||
painter.draw_text(text_rect, item.text, font, Gfx::TextAlignment::CenterLeft, palette().tray_text());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -117,6 +117,8 @@ public:
|
|||
Color ruler_inactive_text() const { return color(ColorRole::RulerInactiveText); }
|
||||
Color text_cursor() const { return color(ColorRole::TextCursor); }
|
||||
Color focus_outline() const { return color(ColorRole::FocusOutline); }
|
||||
Color tray() const { return color(ColorRole::Tray); }
|
||||
Color tray_text() const { return color(ColorRole::TrayText); }
|
||||
|
||||
Color link() const { return color(ColorRole::Link); }
|
||||
Color active_link() const { return color(ColorRole::ActiveLink); }
|
||||
|
|
Loading…
Reference in a new issue