Browse Source

neon: Fix oled theme

pull/113/head
jld3103 2 years ago
parent
commit
7cbe1927d8
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 1
      packages/neon/lib/src/pages/home.dart
  2. 3
      packages/neon/lib/src/utils/theme.dart

1
packages/neon/lib/src/pages/home.dart

@ -201,7 +201,6 @@ class _HomePageState extends State<HomePage> {
width: isQuickBar ? kQuickBarWidth : null, width: isQuickBar ? kQuickBarWidth : null,
child: Container( child: Container(
padding: isQuickBar ? const EdgeInsets.all(5) : null, padding: isQuickBar ? const EdgeInsets.all(5) : null,
color: isQuickBar ? Theme.of(context).appBarTheme.backgroundColor : null,
child: Column( child: Column(
children: [ children: [
Expanded( Expanded(

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

@ -31,7 +31,6 @@ ThemeData getThemeFromNextcloudTheme(
brightness: selectBrightness, brightness: selectBrightness,
).copyWith( ).copyWith(
background: oledBackgroundOverride, background: oledBackgroundOverride,
surface: oledBackgroundOverride,
primary: keepOriginalAccentColorOverride, primary: keepOriginalAccentColorOverride,
secondary: keepOriginalAccentColorOverride, secondary: keepOriginalAccentColorOverride,
); );
@ -40,7 +39,7 @@ ThemeData getThemeFromNextcloudTheme(
useMaterial3: true, useMaterial3: true,
colorScheme: colorScheme, colorScheme: colorScheme,
scaffoldBackgroundColor: colorScheme.background, scaffoldBackgroundColor: colorScheme.background,
canvasColor: colorScheme.background, // For Drawer canvasColor: colorScheme.surface, // For Drawer
cardColor: colorScheme.background, // For LicensePage cardColor: colorScheme.background, // For LicensePage
snackBarTheme: const SnackBarThemeData( snackBarTheme: const SnackBarThemeData(
behavior: SnackBarBehavior.floating, behavior: SnackBarBehavior.floating,

Loading…
Cancel
Save