chore: disable material3 (#4124)

This commit is contained in:
Lucas.Xu 2023-12-11 09:23:48 +07:00 committed by GitHub
parent e9a4efb67d
commit 7586930ef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class DesktopAppearance extends BaseAppearance {
// Due to Desktop version has multiple themes, it relies on the current theme to build the ThemeData // Due to Desktop version has multiple themes, it relies on the current theme to build the ThemeData
return ThemeData( return ThemeData(
useMaterial3: false,
brightness: brightness, brightness: brightness,
dialogBackgroundColor: theme.surface, dialogBackgroundColor: theme.surface,
textTheme: getTextTheme( textTheme: getTextTheme(

View File

@ -84,6 +84,7 @@ class MobileAppearance extends BaseAppearance {
return ThemeData( return ThemeData(
// color // color
useMaterial3: false,
primaryColor: colorTheme.primary, //primary 100 primaryColor: colorTheme.primary, //primary 100
primaryColorLight: const Color(0xFF57B5F8), //primary 80 primaryColorLight: const Color(0xFF57B5F8), //primary 80
dividerColor: colorTheme.outline, //caption dividerColor: colorTheme.outline, //caption