Add new logo and splash screen

This commit is contained in:
Stephen Horvath
2025-09-17 16:26:21 +10:00
parent 8fcb2098cb
commit 55580535db
8 changed files with 682 additions and 72 deletions

View File

@@ -66,6 +66,11 @@ class YafiApplication(Adw.Application):
if not self.win:
self.win = YafiWindow(application=self)
# Update the splash screen
if getattr(sys, 'frozen', False):
import pyi_splash
pyi_splash.update_text("Detecting EC")
try:
self.cros_ec = get_cros_ec()
pass
@@ -81,9 +86,16 @@ class YafiApplication(Adw.Application):
+ "If you are using a Framework Laptop, there are additional troubleshooting steps in the README."
)
self.show_error("EC Initalisation Error", message)
if getattr(sys, 'frozen', False):
pyi_splash.close()
self.win.present()
return
if getattr(sys, 'frozen', False):
pyi_splash.update_text("Building Interface")
self.change_page(self.win.content, ThermalsPage())
pages = (
@@ -111,6 +123,9 @@ class YafiApplication(Adw.Application):
self.win.navbar.connect("row-activated", lambda box, row: switch_page(row.get_index()))
if getattr(sys, 'frozen', False):
pyi_splash.close()
self.win.present()
def on_about_action(self, *args):

Binary file not shown.