mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
add setting
This commit is contained in:
@@ -42,9 +42,15 @@ class ThemeViewModel extends ChangeNotifier {
|
||||
}
|
||||
|
||||
ThemeData darkTheme = ThemeData.dark().copyWith(
|
||||
brightness: Brightness.dark,
|
||||
primaryColor: const Color(0xffffffff),
|
||||
scaffoldBackgroundColor: Colors.black,
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: Colors.black,
|
||||
titleTextStyle: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 18,
|
||||
),
|
||||
),
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
labelStyle: TextStyle(color: _primaryColor),
|
||||
@@ -70,6 +76,7 @@ ThemeData darkTheme = ThemeData.dark().copyWith(
|
||||
),
|
||||
);
|
||||
ThemeData lightTheme = ThemeData.light().copyWith(
|
||||
brightness: Brightness.light,
|
||||
primaryColor: _primaryColor,
|
||||
colorScheme: const ColorScheme.light(
|
||||
secondary: _primaryColor,
|
||||
@@ -86,6 +93,10 @@ ThemeData lightTheme = ThemeData.light().copyWith(
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: _primaryColor,
|
||||
titleTextStyle: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 18,
|
||||
),
|
||||
),
|
||||
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
|
||||
selectedItemColor: _primaryColor,
|
||||
@@ -120,13 +131,15 @@ abstract class ThemeColors {
|
||||
|
||||
Color pinColor();
|
||||
|
||||
Color buttonBgColor();
|
||||
|
||||
Map<String, TextStyle> codeEditorTheme();
|
||||
}
|
||||
|
||||
class LightThemeColors extends ThemeColors {
|
||||
@override
|
||||
Color taskTitleColor() {
|
||||
return Color(0xff333333);
|
||||
return const Color(0xff333333);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -141,13 +154,18 @@ class LightThemeColors extends ThemeColors {
|
||||
|
||||
@override
|
||||
Color descColor() {
|
||||
return Color(0xff999999);
|
||||
return const Color(0xff999999);
|
||||
}
|
||||
|
||||
@override
|
||||
Color settingBgColor() {
|
||||
return Colors.white;
|
||||
}
|
||||
|
||||
@override
|
||||
Color buttonBgColor() {
|
||||
return _primaryColor;
|
||||
}
|
||||
}
|
||||
|
||||
class DartThemeColors extends ThemeColors {
|
||||
@@ -168,11 +186,16 @@ class DartThemeColors extends ThemeColors {
|
||||
|
||||
@override
|
||||
Color descColor() {
|
||||
return Color(0xff999999);
|
||||
return const Color(0xff999999);
|
||||
}
|
||||
|
||||
@override
|
||||
Color settingBgColor() {
|
||||
return Colors.black;
|
||||
}
|
||||
|
||||
@override
|
||||
Color buttonBgColor() {
|
||||
return const Color(0xff333333);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user