mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-27 08:46:01 -04: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:
parent
a8203a6372
commit
ced8012783
143 changed files with 1566 additions and 1154 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue