From a9d17a80c84ca4cf3f4af2a7ec9cd74f9c5715bd Mon Sep 17 00:00:00 2001 From: Sylvain Bettinelli Date: Thu, 14 May 2026 14:18:58 +0000 Subject: [PATCH] fix(capacitor): backgroundColor noir partout (anti flash blanc) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tous les backgroundColor passent de #ffffff à #000000 : - ios.backgroundColor (WebView natif entre 2 navigations) - SplashScreen.backgroundColor (cohérence avec splash dark) - StatusBar.backgroundColor (cohérence avec app dark) StatusBar.style passe de DEFAULT à LIGHT (icônes/texte blanc sur fond noir, lisible sur app dark). À synchroniser au prochain rebuild : npx cap sync ios (régénère ios/App/App/capacitor.config.json) puis archive Xcode. Pendant ce temps, fix web déjà déployé (style inline html/body) atténue le flash sans rebuild requis. Co-Authored-By: Claude Opus 4.7 (1M context) --- capacitor.config.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/capacitor.config.ts b/capacitor.config.ts index 58e2696..8790349 100644 --- a/capacitor.config.ts +++ b/capacitor.config.ts @@ -15,20 +15,22 @@ const config: CapacitorConfig = { contentInset: 'always', scrollEnabled: true, limitsNavigationsToAppBoundDomains: false, - backgroundColor: '#ffffff', + // Fond noir natif : évite le flash blanc du WebView entre 2 pages + backgroundColor: '#000000', }, plugins: { SplashScreen: { launchShowDuration: 1500, launchAutoHide: true, - backgroundColor: '#ffffff', + backgroundColor: '#000000', showSpinner: false, splashImmersive: false, }, StatusBar: { - style: 'DEFAULT', - backgroundColor: '#ffffff', + // App dark : style LIGHT = icônes/texte status bar en blanc sur fond noir + style: 'LIGHT', + backgroundColor: '#000000', overlaysWebView: false, }, PushNotifications: {