style: 完成前端专业金融风格优化
- 主题配色: 黑金传奇(暗) + 白金殿堂(亮) - 底部导航: 去掉毛玻璃,简洁专业 - 交易页面: 明亮模式颜色优化,实心按钮 - 按钮圆角: xxl(24px) → lg(12px)/md(8px) - 字体系统: Inter(币安同款) - 整体风格: 专业金融科技
This commit is contained in:
@@ -129,7 +129,7 @@ class AppColorScheme {
|
||||
static const Color lightTertiaryContainer = Color(0xFFd4f5e9);
|
||||
|
||||
/// 文本色
|
||||
static const Color lightOnSurface = Color(0xFF2c2f31);
|
||||
static const Color lightOnSurface = Color(0xFF1A1A1A);
|
||||
static const Color lightOnSurfaceVariant = Color(0xFF5a5d60);
|
||||
static const Color lightOnSurfaceMuted = Color(0xFF8a8d90);
|
||||
|
||||
@@ -195,6 +195,22 @@ class AppColorScheme {
|
||||
: lightTertiary.withValues(alpha: opacity);
|
||||
}
|
||||
|
||||
/// 获取跌/卖出颜色(主题感知)
|
||||
static Color getDownColor(bool isDark) => isDark ? darkError : lightError;
|
||||
|
||||
/// 获取跌/卖出背景色(主题感知)
|
||||
static Color getDownBackgroundColor(bool isDark, {double opacity = 0.15}) {
|
||||
return isDark
|
||||
? darkError.withValues(alpha: opacity)
|
||||
: lightError.withValues(alpha: opacity);
|
||||
}
|
||||
|
||||
/// 交易按钮买入色 - 深绿色填充,确保白色文字可读
|
||||
static const Color buyButtonFill = Color(0xFF059669);
|
||||
|
||||
/// 交易按钮卖出色 - 深红色填充,确保白色文字可读
|
||||
static const Color sellButtonFill = Color(0xFFDC2626);
|
||||
|
||||
/// 获取买入按钮渐变(主题感知)
|
||||
static LinearGradient getBuyGradient(bool isDark) => LinearGradient(
|
||||
colors: isDark
|
||||
|
||||
Reference in New Issue
Block a user