1
Fork 0
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:
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());
}
}