|
|
@ -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) { |
|
|
|
|
|
|
|
if (themeMode == null || !platformBrightnessSnapshot.hasData || themeOLEDAsDark == null) { |
|
|
|
|
|
|
|
return Container(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return MaterialApp( |
|
|
|
localizationsDelegates: AppLocalizations.localizationsDelegates, |
|
|
|
localizationsDelegates: AppLocalizations.localizationsDelegates, |
|
|
|
supportedLocales: AppLocalizations.supportedLocales, |
|
|
|
supportedLocales: AppLocalizations.supportedLocales, |
|
|
|
navigatorKey: _navigatorKey, |
|
|
|
navigatorKey: _navigatorKey, |
|
|
|
theme: getThemeFromNextcloudTheme( |
|
|
|
theme: getThemeFromNextcloudTheme( |
|
|
|
_nextcloudTheme, |
|
|
|
_nextcloudTheme, |
|
|
|
themeMode ?? ThemeMode.system, |
|
|
|
themeMode, |
|
|
|
platformBrightnessSnapshot.data ?? Brightness.light, |
|
|
|
platformBrightnessSnapshot.data!, |
|
|
|
oledAsDark: themeOLEDAsDark ?? false, |
|
|
|
oledAsDark: themeOLEDAsDark, |
|
|
|
keepOriginalAccentColor: _nextcloudTheme == null || (themeKeepOriginalAccentColor ?? false), |
|
|
|
keepOriginalAccentColor: _nextcloudTheme == null || (themeKeepOriginalAccentColor ?? false), |
|
|
|
), |
|
|
|
), |
|
|
|
home: Container(), |
|
|
|
home: Container(), |
|
|
|
), |
|
|
|
); |
|
|
|
|
|
|
|
}, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|