Apply theme changes (dark mode, color) immediately after saving

Also:

- API: change "display" to mpos.ui.main_display
- API: change mpos.ui.th to mpos.ui.task_handler
This commit is contained in:
Thomas Farstrike
2025-11-15 16:25:10 +01:00
parent 6f86f57a70
commit 168f1ec374
14 changed files with 78 additions and 65 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class TestStartApp(unittest.TestCase):
init_rootscreen()
mpos.ui.topmenu.create_notification_bar()
mpos.ui.topmenu.create_drawer(display)
mpos.ui.th = task_handler.TaskHandler(duration=5) # 5ms is recommended for MicroPython+LVGL on desktop (less results in lower framerate)
mpos.ui.task_handler = task_handler.TaskHandler(duration=5) # 5ms is recommended for MicroPython+LVGL on desktop (less results in lower framerate)
def test_normal(self):