Skip to content

Commit 73af508

Browse files
committed
Fix SmartMonitor HID fallback theme structure
1 parent 77b31a9 commit 73af508

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

library/config.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import os
2424
import queue
2525
import sys
26+
import copy
2627
from pathlib import Path
2728
import yaml
2829

@@ -65,7 +66,16 @@ def load_theme():
6566
"Classic YAML theme '%s' is not available in this package; using default fallback for SmartMonitor HID mode",
6667
CONFIG_DATA['config']['THEME'],
6768
)
68-
THEME_DATA = dict(THEME_DEFAULT)
69+
THEME_DATA = {
70+
"display": {
71+
"DISPLAY_ORIENTATION": "portrait",
72+
"DISPLAY_SIZE": '3.5"',
73+
"DISPLAY_RGB_LED": (255, 255, 255),
74+
},
75+
"static_images": {},
76+
"static_text": {},
77+
}
78+
copy_default(copy.deepcopy(THEME_DEFAULT), THEME_DATA)
6979
THEME_DATA['PATH'] = str(MAIN_DIRECTORY / "res/themes") + "/"
7080
return
7181
logger.error("Theme not found or contains errors!")

0 commit comments

Comments
 (0)