From 7cbe1927d8865a8c3a22ead62f79604505771373 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 30 Oct 2022 08:40:20 +0100 Subject: [PATCH] neon: Fix oled theme --- packages/neon/lib/src/pages/home.dart | 1 - packages/neon/lib/src/utils/theme.dart | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/neon/lib/src/pages/home.dart b/packages/neon/lib/src/pages/home.dart index 6fb99254..6e1fb595 100644 --- a/packages/neon/lib/src/pages/home.dart +++ b/packages/neon/lib/src/pages/home.dart @@ -201,7 +201,6 @@ class _HomePageState extends State { width: isQuickBar ? kQuickBarWidth : null, child: Container( padding: isQuickBar ? const EdgeInsets.all(5) : null, - color: isQuickBar ? Theme.of(context).appBarTheme.backgroundColor : null, child: Column( children: [ Expanded( diff --git a/packages/neon/lib/src/utils/theme.dart b/packages/neon/lib/src/utils/theme.dart index f79df05f..c989ffd1 100644 --- a/packages/neon/lib/src/utils/theme.dart +++ b/packages/neon/lib/src/utils/theme.dart @@ -31,7 +31,6 @@ ThemeData getThemeFromNextcloudTheme( brightness: selectBrightness, ).copyWith( background: oledBackgroundOverride, - surface: oledBackgroundOverride, primary: keepOriginalAccentColorOverride, secondary: keepOriginalAccentColorOverride, ); @@ -40,7 +39,7 @@ ThemeData getThemeFromNextcloudTheme( useMaterial3: true, colorScheme: colorScheme, scaffoldBackgroundColor: colorScheme.background, - canvasColor: colorScheme.background, // For Drawer + canvasColor: colorScheme.surface, // For Drawer cardColor: colorScheme.background, // For LicensePage snackBarTheme: const SnackBarThemeData( behavior: SnackBarBehavior.floating,