Browse Source

Merge pull request #113 from jld3103/fix/oled-theme

neon: Fix oled theme
pull/115/head
jld3103 2 years ago committed by GitHub
parent
commit
586ea9647f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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