mirror of
https://github.com/skoelle/wt32sc01-dashboard.git
synced 2026-09-17 17:30:25 +00:00
darkmode fix
This commit is contained in:
+4
-4
@@ -867,10 +867,10 @@
|
||||
/* Documentation for themes can be found here: https://docs.lvgl.io/master/common-widget-features/styles/styles.html#themes . */
|
||||
|
||||
/** A simple, impressive and very complete theme */
|
||||
#define LV_USE_THEME_DEFAULT 1
|
||||
#define LV_USE_THEME_DEFAULT 0
|
||||
#if LV_USE_THEME_DEFAULT
|
||||
/** 0: Light mode; 1: Dark mode */
|
||||
#define LV_THEME_DEFAULT_DARK 0
|
||||
#define LV_THEME_DEFAULT_DARK 1
|
||||
|
||||
/** 1: Enable grow on press */
|
||||
#define LV_THEME_DEFAULT_GROW 1
|
||||
@@ -880,10 +880,10 @@
|
||||
#endif /*LV_USE_THEME_DEFAULT*/
|
||||
|
||||
/** A very simple theme that is a good starting point for a custom theme */
|
||||
#define LV_USE_THEME_SIMPLE 1
|
||||
#define LV_USE_THEME_SIMPLE 0
|
||||
|
||||
/** A theme designed for monochrome displays */
|
||||
#define LV_USE_THEME_MONO 1
|
||||
#define LV_USE_THEME_MONO 0
|
||||
|
||||
/*==================
|
||||
* LAYOUTS
|
||||
|
||||
+5
-5
@@ -17,20 +17,20 @@ constexpr int SCREEN_H = 480;
|
||||
// TEXT 0xFFFF white
|
||||
// TEXT_DIM 0x8410 mid grey
|
||||
inline lv_color_t bg() { return lv_color_hex(0x000000); }
|
||||
inline lv_color_t bgCard() { return lv_color_hex(0x1C1C1E); }
|
||||
inline lv_color_t bgCard() { return lv_color_hex(0x808080); }
|
||||
inline lv_color_t text() { return lv_color_hex(0xFFFFFF); }
|
||||
inline lv_color_t textDim() { return lv_color_hex(0x9A9A9E); }
|
||||
|
||||
// Tile accent backgrounds (muted, iOS-dark-mode style).
|
||||
inline lv_color_t accentWeather() { return lv_color_hex(0x1B3A5C); } // muted blue
|
||||
inline lv_color_t accentCalendar() { return lv_color_hex(0x3A2A5C); } // muted purple
|
||||
inline lv_color_t accentMvg() { return lv_color_hex(0x2C5C3A); } // muted green
|
||||
inline lv_color_t accentCalendar() { return lv_color_hex(0x9A9A9E); } // grey subline
|
||||
inline lv_color_t accentMvg() { return lv_color_hex(0xC00000); } // red for delay
|
||||
|
||||
// Symbol / status colors.
|
||||
inline lv_color_t accentSun() { return lv_color_hex(0xFBC02D); }
|
||||
inline lv_color_t accentRain() { return lv_color_hex(0x4FC3F7); }
|
||||
inline lv_color_t accentUBahn() { return lv_color_hex(0xE62D2D); } // MVV U-Bahn red
|
||||
inline lv_color_t accentSBahn() { return lv_color_hex(0x1A7A3A); } // MVV S-Bahn green
|
||||
inline lv_color_t accentUBahn() { return lv_color_hex(0x0079F6); } // MVG U-Bahn blue
|
||||
inline lv_color_t accentSBahn() { return lv_color_hex(0x0CB87E); } // MVG S-Bahn green
|
||||
inline lv_color_t accentWarn() { return lv_color_hex(0xFFB300); }
|
||||
inline lv_color_t accentError() { return lv_color_hex(0xF44336); }
|
||||
inline lv_color_t accentStorm() { return lv_color_hex(0xFFD54F); }
|
||||
|
||||
Reference in New Issue
Block a user