|
|
@ -25,13 +25,15 @@ ThemeData getThemeFromNextcloudTheme( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
final oledBackgroundOverride = selectBrightness == Brightness.dark && oledAsDark ? Colors.black : null; |
|
|
|
final oledBackgroundOverride = selectBrightness == Brightness.dark && oledAsDark ? Colors.black : null; |
|
|
|
|
|
|
|
final keepOriginalAccentColorOverride = keepOriginalAccentColor ? primaryColor : null; |
|
|
|
final colorScheme = ColorScheme.fromSeed( |
|
|
|
final colorScheme = ColorScheme.fromSeed( |
|
|
|
seedColor: primaryColor, |
|
|
|
seedColor: primaryColor, |
|
|
|
brightness: selectBrightness, |
|
|
|
brightness: selectBrightness, |
|
|
|
).copyWith( |
|
|
|
).copyWith( |
|
|
|
background: oledBackgroundOverride, |
|
|
|
background: oledBackgroundOverride, |
|
|
|
surface: oledBackgroundOverride, |
|
|
|
surface: oledBackgroundOverride, |
|
|
|
primary: keepOriginalAccentColor ? primaryColor : null, |
|
|
|
primary: keepOriginalAccentColorOverride, |
|
|
|
|
|
|
|
secondary: keepOriginalAccentColorOverride, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
return ThemeData( |
|
|
|
return ThemeData( |
|
|
|