Launcher: Loading Screen (#6115)

This commit is contained in:
Fabian Dill
2026-07-18 02:38:34 +02:00
committed by GitHub
parent feab54daec
commit c8cf2c4112
5 changed files with 290 additions and 116 deletions
+16
View File
@@ -122,6 +122,22 @@ class ThemedApp(MDApp):
self.theme_cls.dynamic_scheme_contrast = text_colors.dynamic_scheme_contrast
class LogtoLoadingScreen(logging.Handler):
def __init__(self, on_log):
super().__init__()
self.on_log = on_log
def handle(self, record: logging.LogRecord):
self.on_log(record.getMessage())
class LoadingScreen(MDScreen):
label = ObjectProperty(None)
def update_text(self, text):
self.label.text = text
class ImageIcon(MDButtonIcon, AsyncImage):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)