File tree 3 files changed +12
-1
lines changed
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ config ZMK_DISPLAY_BLANK_ON_IDLE
15
15
bool "Blank display on idle"
16
16
default y if SSD1306
17
17
18
+ if LV_USE_THEME_MONO
19
+
20
+ config ZMK_DISPLAY_INVERT
21
+ bool "Invert display colors"
22
+
23
+ endif
24
+
18
25
choice LV_TXT_ENC
19
26
default LV_TXT_ENC_UTF8
20
27
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ int zmk_display_is_initialized() { return initialized; }
91
91
static void initialize_theme () {
92
92
#if IS_ENABLED (CONFIG_LV_USE_THEME_MONO )
93
93
lv_disp_t * disp = lv_disp_get_default ();
94
- lv_theme_t * theme = lv_theme_mono_init (disp , false, CONFIG_LV_FONT_DEFAULT );
94
+ lv_theme_t * theme =
95
+ lv_theme_mono_init (disp , IS_ENABLED (CONFIG_ZMK_DISPLAY_INVERT ), CONFIG_LV_FONT_DEFAULT );
95
96
theme -> font_small = CONFIG_ZMK_LV_FONT_DEFAULT_SMALL ;
96
97
97
98
disp -> theme = theme ;
Original file line number Diff line number Diff line change @@ -17,12 +17,15 @@ Definition files:
17
17
| Config | Type | Description | Default |
18
18
| -------------------------------------------------- | ---- | -------------------------------------------------------------- | ------- |
19
19
| ` CONFIG_ZMK_DISPLAY ` | bool | Enable support for displays | n |
20
+ | ` CONFIG_ZMK_DISPLAY_INVERT ` | bool | Invert display colors from black-on-white to white-on-black | n |
20
21
| ` CONFIG_ZMK_WIDGET_LAYER_STATUS ` | bool | Enable a widget to show the highest, active layer | y |
21
22
| ` CONFIG_ZMK_WIDGET_BATTERY_STATUS ` | bool | Enable a widget to show battery charge information | y |
22
23
| ` CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE ` | bool | If battery widget is enabled, show percentage instead of icons | n |
23
24
| ` CONFIG_ZMK_WIDGET_OUTPUT_STATUS ` | bool | Enable a widget to show the current output (USB/BLE) | y |
24
25
| ` CONFIG_ZMK_WIDGET_WPM_STATUS ` | bool | Enable a widget to show words per minute | n |
25
26
27
+ Note that ` CONFIG_ZMK_DISPLAY_INVERT ` setting might not work as expected with custom status screens that utilize images.
28
+
26
29
If ` CONFIG_ZMK_DISPLAY ` is enabled, exactly zero or one of the following options must be set to ` y ` . The first option is used if none are set.
27
30
28
31
| Config | Description |
You can’t perform that action at this time.
0 commit comments