Skip to content

Desktop app: Fix theme switching glitch and improve startup time #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mauskin
Copy link
Contributor

@mauskin mauskin commented Apr 9, 2025

Overview:

  • Adds fallback on system theme before the app has loaded
  • Makes app respond to system theme change
  • Improves start up time to increase iteration speed during development

When the app loads it displays a blank HTML page, which has white background by default. Also when theme setting in the app is set to “System” changing OS theme doesn’t affect theme in the app.

before.mov

The fix adds a splash screen with Golem logo. The screen respects the system theme. When the app loads it listens to changes to the system theme and–if the app’s theme setting is set to “System”–adapts its theme accordingly.

after.mov

Initial load time is reduced from ~6 seconds to <1 second by removing optimisation of icons (each icon was loaded individually, which multiplied overhead).

@mauskin mauskin force-pushed the desktop-app-startup-fix branch from f2fdf24 to ddc6145 Compare April 14, 2025 13:46
@mauskin mauskin changed the title Desktop app startup fixes Desktop app: Fix theme switching glitch and improve startup time Apr 15, 2025
@jdegoes
Copy link
Contributor

jdegoes commented Apr 25, 2025

@mauskin Thanks for submitting this! We are pleased to announce you will proceed to the next phase. Please clean up this PR (merging in latest changes from main, re-testing manually, etc.) in preparation for merging.

@mauskin mauskin force-pushed the desktop-app-startup-fix branch from 9372a0b to 4a06dba Compare April 25, 2025 15:35
@mauskin
Copy link
Contributor Author

mauskin commented Apr 25, 2025

@jdegoes It’s ready.

@mauskin mauskin force-pushed the desktop-app-startup-fix branch 2 times, most recently from 30a996e to f3a705a Compare April 29, 2025 21:10
@mauskin mauskin force-pushed the desktop-app-startup-fix branch from f3a705a to bb4b40c Compare April 30, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants