From 35f89b31e1c008c7c7a9727a710302142c9db8f0 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 18 Oct 2022 08:45:20 +0200 Subject: [PATCH] neon: Fix keep original accent color not applying to everything --- packages/neon/lib/src/utils/theme.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/neon/lib/src/utils/theme.dart b/packages/neon/lib/src/utils/theme.dart index 6fb4390f..f79df05f 100644 --- a/packages/neon/lib/src/utils/theme.dart +++ b/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(