Theme system (#2164)

* Themes instead of Styles
* Colors changed to theme colors
* Reworked style management
* Theme settings app
* warn, menu dual set
* Added Aqua style
This commit is contained in:
Totoo 2024-05-27 21:02:52 +02:00 committed by GitHub
parent a8203a6372
commit ced8012783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
143 changed files with 1566 additions and 1154 deletions

View file

@ -44,7 +44,7 @@ BtnGridView::BtnGridView(
add_child(&arrow_more);
arrow_more.set_focusable(false);
arrow_more.set_foreground(Color::black());
arrow_more.set_foreground(Theme::getInstance()->bg_darkest->background);
}
BtnGridView::~BtnGridView() {
@ -98,9 +98,9 @@ void BtnGridView::set_arrow_enabled(bool enabled) {
void BtnGridView::on_tick_second() {
if (more && blink)
arrow_more.set_foreground(Color::white());
arrow_more.set_foreground(Theme::getInstance()->bg_darkest->foreground);
else
arrow_more.set_foreground(Color::black());
arrow_more.set_foreground(Theme::getInstance()->bg_darkest->background);
blink = !blink;