mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-07-30 14:20:45 -07:00
Launcher: Loading Screen (#6115)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user