mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-11 23:12:28 +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:
@@ -54,9 +54,9 @@ const Bitmap& bitmap_sd_card(const sd_card::Status status) {
|
||||
}
|
||||
}
|
||||
|
||||
static constexpr Color color_sd_card_error = Color::red();
|
||||
static constexpr Color color_sd_card_unknown = Color::yellow();
|
||||
static constexpr Color color_sd_card_ok = Color::green();
|
||||
static Color color_sd_card_error = Theme::getInstance()->error_dark->foreground;
|
||||
static Color color_sd_card_unknown = Theme::getInstance()->warning_dark->foreground;
|
||||
static Color color_sd_card_ok = Theme::getInstance()->ok_dark->foreground;
|
||||
|
||||
const Color color_sd_card(const sd_card::Status status) {
|
||||
switch (status) {
|
||||
@@ -83,7 +83,7 @@ const Color color_sd_card(const sd_card::Status status) {
|
||||
|
||||
SDCardStatusView::SDCardStatusView(
|
||||
const Rect parent_rect)
|
||||
: Image{parent_rect, &bitmap_sd_card_unknown, detail::color_sd_card_unknown, Color::dark_grey()} {
|
||||
: Image{parent_rect, &bitmap_sd_card_unknown, detail::color_sd_card_unknown, Theme::getInstance()->bg_dark->background} {
|
||||
}
|
||||
|
||||
void SDCardStatusView::on_show() {
|
||||
|
||||
Reference in New Issue
Block a user