fix(capacitor): backgroundColor noir partout (anti flash blanc)
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) <noreply@anthropic.com>
This commit is contained in:
@@ -15,20 +15,22 @@ const config: CapacitorConfig = {
|
|||||||
contentInset: 'always',
|
contentInset: 'always',
|
||||||
scrollEnabled: true,
|
scrollEnabled: true,
|
||||||
limitsNavigationsToAppBoundDomains: false,
|
limitsNavigationsToAppBoundDomains: false,
|
||||||
backgroundColor: '#ffffff',
|
// Fond noir natif : évite le flash blanc du WebView entre 2 pages
|
||||||
|
backgroundColor: '#000000',
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: {
|
plugins: {
|
||||||
SplashScreen: {
|
SplashScreen: {
|
||||||
launchShowDuration: 1500,
|
launchShowDuration: 1500,
|
||||||
launchAutoHide: true,
|
launchAutoHide: true,
|
||||||
backgroundColor: '#ffffff',
|
backgroundColor: '#000000',
|
||||||
showSpinner: false,
|
showSpinner: false,
|
||||||
splashImmersive: false,
|
splashImmersive: false,
|
||||||
},
|
},
|
||||||
StatusBar: {
|
StatusBar: {
|
||||||
style: 'DEFAULT',
|
// App dark : style LIGHT = icônes/texte status bar en blanc sur fond noir
|
||||||
backgroundColor: '#ffffff',
|
style: 'LIGHT',
|
||||||
|
backgroundColor: '#000000',
|
||||||
overlaysWebView: false,
|
overlaysWebView: false,
|
||||||
},
|
},
|
||||||
PushNotifications: {
|
PushNotifications: {
|
||||||
|
|||||||
Reference in New Issue
Block a user