mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-11-13 19:19:01 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user