|
|
@ -312,19 +312,24 @@ class _NeonAppState extends State<NeonApp> with WidgetsBindingObserver, tray.Tra |
|
|
|
option: widget.globalOptions.themeOLEDAsDark, |
|
|
|
option: widget.globalOptions.themeOLEDAsDark, |
|
|
|
builder: (final context, final themeOLEDAsDark) => OptionBuilder( |
|
|
|
builder: (final context, final themeOLEDAsDark) => OptionBuilder( |
|
|
|
option: widget.globalOptions.themeKeepOriginalAccentColor, |
|
|
|
option: widget.globalOptions.themeKeepOriginalAccentColor, |
|
|
|
builder: (final context, final themeKeepOriginalAccentColor) => MaterialApp( |
|
|
|
builder: (final context, final themeKeepOriginalAccentColor) { |
|
|
|
localizationsDelegates: AppLocalizations.localizationsDelegates, |
|
|
|
if (themeMode == null || !platformBrightnessSnapshot.hasData || themeOLEDAsDark == null) { |
|
|
|
supportedLocales: AppLocalizations.supportedLocales, |
|
|
|
return Container(); |
|
|
|
navigatorKey: _navigatorKey, |
|
|
|
} |
|
|
|
theme: getThemeFromNextcloudTheme( |
|
|
|
return MaterialApp( |
|
|
|
_nextcloudTheme, |
|
|
|
localizationsDelegates: AppLocalizations.localizationsDelegates, |
|
|
|
themeMode ?? ThemeMode.system, |
|
|
|
supportedLocales: AppLocalizations.supportedLocales, |
|
|
|
platformBrightnessSnapshot.data ?? Brightness.light, |
|
|
|
navigatorKey: _navigatorKey, |
|
|
|
oledAsDark: themeOLEDAsDark ?? false, |
|
|
|
theme: getThemeFromNextcloudTheme( |
|
|
|
keepOriginalAccentColor: _nextcloudTheme == null || (themeKeepOriginalAccentColor ?? false), |
|
|
|
_nextcloudTheme, |
|
|
|
), |
|
|
|
themeMode, |
|
|
|
home: Container(), |
|
|
|
platformBrightnessSnapshot.data!, |
|
|
|
), |
|
|
|
oledAsDark: themeOLEDAsDark, |
|
|
|
|
|
|
|
keepOriginalAccentColor: _nextcloudTheme == null || (themeKeepOriginalAccentColor ?? false), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
home: Container(), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|