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,
child: Container(
padding: isQuickBar ? const EdgeInsets.all(5) : null,
color: isQuickBar ? Theme.of(context).appBarTheme.backgroundColor : null,
child: Column(
children: [
Expanded(

3
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,

Loading…
Cancel
Save