From 92caf4096628e97a73c51560377e95d334456fe0 Mon Sep 17 00:00:00 2001 From: npub13fn4ahfnvaa2qwylvegdgeajqs0mph6v4qsw4jcqnw4mjh3hzh2quuucm5 <8a675edd33677aa0389f6650d467b2041fb0df4ca820eacb009babb95e3715d4@sprout-oss.stage.blox.sqprod.co> Date: Thu, 9 Jul 2026 09:22:36 +0100 Subject: [PATCH] fix(desktop): seed full cached theme vars in boot script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cold-boot inline script in index.html applied only the cached --background and the light/dark class before React mounts. The restored setup loading gate's grainient reads other theme vars too (--chart-5, --chart-3, --chart-2, --primary, --foreground), so a cached non-Latte theme (houston/buzz/custom) painted the splash grainient from the static Catppuccin :root values until ThemeProvider.applyCachedVars() ran on mount — a brief wrong-colored splash. Seed the full cached vars map on documentElement synchronously, mirroring ThemeProvider.applyCachedVars(), so the pre-React paint matches the themed gate for any cached theme. Follow-up to #1631 review. --- desktop/index.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/desktop/index.html b/desktop/index.html index c219f214dc..afa76b2a4b 100644 --- a/desktop/index.html +++ b/desktop/index.html @@ -27,7 +27,7 @@