LibGUI+LibGfx: Add Tray ColorRole helpers to Palette

This commit is contained in:
thankyouverycool 2023-01-29 09:05:27 -05:00 committed by Linus Groh
parent bfc08bc84b
commit 08456be9dc
2 changed files with 3 additions and 1 deletions

View file

@ -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());
}
}

View file

@ -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); }