Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Fix flickering on app load due to theme being loaded later
Open rudolfs opened 1 year ago

We read the theme before any of the svelte code is loaded. The benefit is that it is executed first and there’s no flickering if the stored theme differs from the initial theme that is set in the design system.

The drawback is that this code isn’t type-checked and will need to be updated manually if we change the theme switching code in Svelte.

check

👉 Workflow runs 👉 Branch on GitHub

rudolfs opened with revision 99f619f8 on base 560891d1 +6 -0 1 year ago

We read the theme before any of the svelte code is loaded. The benefit is that it is executed first and there’s no flickering if the stored theme differs from the initial theme that is set in the design system.

The drawback is that this code isn’t type-checked and will need to be updated manually if we change the theme switching code in Svelte.

check

👉 Workflow runs 👉 Branch on GitHub