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

@ -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() {