Browse Source

Merge pull request #96 from jld3103/fix/keep-original-accent-color

neon: Fix keep original accent color not applying to everything
pull/101/head
jld3103 2 years ago committed by GitHub
parent
commit
eb7ddc9d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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 keepOriginalAccentColorOverride = keepOriginalAccentColor ? primaryColor : null;
final colorScheme = ColorScheme.fromSeed(
seedColor: primaryColor,
brightness: selectBrightness,
).copyWith(
background: oledBackgroundOverride,
surface: oledBackgroundOverride,
primary: keepOriginalAccentColor ? primaryColor : null,
primary: keepOriginalAccentColorOverride,
secondary: keepOriginalAccentColorOverride,
);
return ThemeData(

Loading…
Cancel
Save