We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77b31a9 commit 73af508Copy full SHA for 73af508
1 file changed
library/config.py
@@ -23,6 +23,7 @@
23
import os
24
import queue
25
import sys
26
+import copy
27
from pathlib import Path
28
import yaml
29
@@ -65,7 +66,16 @@ def load_theme():
65
66
"Classic YAML theme '%s' is not available in this package; using default fallback for SmartMonitor HID mode",
67
CONFIG_DATA['config']['THEME'],
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)
79
THEME_DATA['PATH'] = str(MAIN_DIRECTORY / "res/themes") + "/"
80
return
81
logger.error("Theme not found or contains errors!")
0 commit comments