Browse Source

neon: Fix keep original accent color not applying to everything

pull/96/head
jld3103 2 years ago
parent
commit
35f89b31e1
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 4
      packages/neon/lib/src/utils/theme.dart

4
packages/neon/lib/src/utils/theme.dart

@ -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(

Loading…
Cancel
Save