mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
LibGUI+LibGfx: Add Tray ColorRole helpers to Palette
This commit is contained in:
parent
bfc08bc84b
commit
08456be9dc
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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue