From 7bfa7f7d731888d50b706b3a6eac77b8593a613c Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 13 May 2023 15:39:03 +0200 Subject: [PATCH] neon: Cleanup manual theming now done by M3 --- packages/neon/neon/lib/src/utils/theme.dart | 24 --------------------- 1 file changed, 24 deletions(-) diff --git a/packages/neon/neon/lib/src/utils/theme.dart b/packages/neon/neon/lib/src/utils/theme.dart index 0b0f174f..4e929848 100644 --- a/packages/neon/neon/lib/src/utils/theme.dart +++ b/packages/neon/neon/lib/src/utils/theme.dart @@ -27,41 +27,17 @@ ThemeData getThemeFromNextcloudTheme( secondary: keepOriginalAccentColorOverride, ); - final fillColor = MaterialStateProperty.resolveWith((final states) { - if (states.contains(MaterialState.disabled)) { - return brightness == Brightness.dark ? Colors.white38 : Colors.black38; - } - - return colorScheme.primary; - }); - return ThemeData( useMaterial3: true, colorScheme: colorScheme, scaffoldBackgroundColor: colorScheme.background, - canvasColor: colorScheme.surface, // For Drawer cardColor: colorScheme.background, // For LicensePage snackBarTheme: const SnackBarThemeData( behavior: SnackBarBehavior.floating, ), - checkboxTheme: CheckboxThemeData( - fillColor: fillColor, - checkColor: MaterialStateProperty.resolveWith((final states) => colorScheme.onPrimary), - ), dividerTheme: const DividerThemeData( thickness: 1.5, space: 30, ), - popupMenuTheme: PopupMenuThemeData( - // TODO: Only needed until M3 popup menus are implemented - color: brightness == Brightness.dark - ? oledAsDark - ? const Color(0xFF202020) - : const Color(0xFF404040) - : const Color(0xFFEAEAEA), - ), - radioTheme: RadioThemeData( - fillColor: fillColor, - ), ); }