|
@@ -19,6 +19,8 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
static const _colorBDBDBD = Color(0xFFBDBDBD);
|
|
static const _colorBDBDBD = Color(0xFFBDBDBD);
|
|
static const _colorF2F2F2 = Color(0xFFF2F2F2);
|
|
static const _colorF2F2F2 = Color(0xFFF2F2F2);
|
|
static const _colorFE6C00 = Color(0xFFFE6C00);
|
|
static const _colorFE6C00 = Color(0xFFFE6C00);
|
|
|
|
+ static const _colorD3D3D3 = Color(0xFFD3D3D3);
|
|
|
|
+ static const _color333333 = Color(0xFF333333);
|
|
|
|
|
|
//暗色主题的一些自定义颜色值
|
|
//暗色主题的一些自定义颜色值
|
|
static const _darkBlackBg = Color(0xFF0F0F0F);
|
|
static const _darkBlackBg = Color(0xFF0F0F0F);
|
|
@@ -29,7 +31,7 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
|
|
|
|
// 页面中真正使用到的颜色名称
|
|
// 页面中真正使用到的颜色名称
|
|
final Color backgroundDefault; //页面背景颜色
|
|
final Color backgroundDefault; //页面背景颜色
|
|
- final Color btnBgDefault; //按钮背景颜色
|
|
|
|
|
|
+ final Color btnBgDefault; //按钮背景颜色
|
|
final Color searchFiledBorder; //搜索框的边框颜色
|
|
final Color searchFiledBorder; //搜索框的边框颜色
|
|
final Color authFiledHint; //输入框默认的提示文本颜色
|
|
final Color authFiledHint; //输入框默认的提示文本颜色
|
|
final Color authFiledText; //输入框默认的文本颜色
|
|
final Color authFiledText; //输入框默认的文本颜色
|
|
@@ -38,6 +40,10 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
final Color textBlack; //黑色文本
|
|
final Color textBlack; //黑色文本
|
|
final Color textDarkGray; //深灰色 666 文本
|
|
final Color textDarkGray; //深灰色 666 文本
|
|
final Color orangeBG; //按钮的橙色背景
|
|
final Color orangeBG; //按钮的橙色背景
|
|
|
|
+ final Color tabBgSelectedPrimary; //Tab的选中主题色背景
|
|
|
|
+ final Color tabBgUnSelectedPrimary; //Tab的未选中主题色背景
|
|
|
|
+ final Color tabTextSelectedPrimary; //Tab的未选中主题色文本
|
|
|
|
+ final Color tabTextUnSelectedPrimary; //Tab的未选中主题色文本
|
|
|
|
|
|
// 私有的构造函数
|
|
// 私有的构造函数
|
|
const AppColorsTheme._internal({
|
|
const AppColorsTheme._internal({
|
|
@@ -51,6 +57,10 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
required this.textBlack,
|
|
required this.textBlack,
|
|
required this.textDarkGray,
|
|
required this.textDarkGray,
|
|
required this.orangeBG,
|
|
required this.orangeBG,
|
|
|
|
+ required this.tabBgSelectedPrimary,
|
|
|
|
+ required this.tabBgUnSelectedPrimary,
|
|
|
|
+ required this.tabTextSelectedPrimary,
|
|
|
|
+ required this.tabTextUnSelectedPrimary,
|
|
});
|
|
});
|
|
|
|
|
|
// 浅色主题工厂方法
|
|
// 浅色主题工厂方法
|
|
@@ -66,6 +76,10 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
textBlack: Colors.black,
|
|
textBlack: Colors.black,
|
|
textDarkGray: _color666666,
|
|
textDarkGray: _color666666,
|
|
orangeBG: _colorFE6C00,
|
|
orangeBG: _colorFE6C00,
|
|
|
|
+ tabBgSelectedPrimary: _colorPrimary,
|
|
|
|
+ tabBgUnSelectedPrimary: _colorD3D3D3,
|
|
|
|
+ tabTextSelectedPrimary: Colors.white,
|
|
|
|
+ tabTextUnSelectedPrimary: _color333333,
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -82,6 +96,10 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
textBlack: Colors.white,
|
|
textBlack: Colors.white,
|
|
textDarkGray: Colors.white,
|
|
textDarkGray: Colors.white,
|
|
orangeBG: _darkBlackItem,
|
|
orangeBG: _darkBlackItem,
|
|
|
|
+ tabBgSelectedPrimary: Colors.white,
|
|
|
|
+ tabBgUnSelectedPrimary: _darkBlackItem,
|
|
|
|
+ tabTextSelectedPrimary: Colors.black,
|
|
|
|
+ tabTextUnSelectedPrimary: Colors.white,
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -107,6 +125,10 @@ class AppColorsTheme extends ThemeExtension<AppColorsTheme> {
|
|
textBlack: Color.lerp(textBlack, other.textBlack, t)!,
|
|
textBlack: Color.lerp(textBlack, other.textBlack, t)!,
|
|
textDarkGray: Color.lerp(textDarkGray, other.textDarkGray, t)!,
|
|
textDarkGray: Color.lerp(textDarkGray, other.textDarkGray, t)!,
|
|
orangeBG: Color.lerp(orangeBG, other.orangeBG, t)!,
|
|
orangeBG: Color.lerp(orangeBG, other.orangeBG, t)!,
|
|
|
|
+ tabBgSelectedPrimary: Color.lerp(tabBgSelectedPrimary, other.tabBgSelectedPrimary, t)!,
|
|
|
|
+ tabBgUnSelectedPrimary: Color.lerp(tabBgUnSelectedPrimary, other.tabBgUnSelectedPrimary, t)!,
|
|
|
|
+ tabTextSelectedPrimary: Color.lerp(tabTextSelectedPrimary, other.tabTextSelectedPrimary, t)!,
|
|
|
|
+ tabTextUnSelectedPrimary: Color.lerp(tabTextUnSelectedPrimary, other.tabTextUnSelectedPrimary, t)!,
|
|
);
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|