fix: 绿色主题回滚为淡紫清新风
朝露绿翻车,换回柔和紫(#7C6FF7) + 淡紫白底(#FAF9FF)
This commit is contained in:
@@ -1,32 +1,31 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:shadcn_ui/shadcn_ui.dart';
|
import 'package:shadcn_ui/shadcn_ui.dart';
|
||||||
|
|
||||||
/// 健康管家 —「朝露」Morning Dew
|
/// 健康管家 — 淡紫清新风
|
||||||
/// 深青绿 + 薄荷白,植物系清新风格
|
|
||||||
class AppTheme {
|
class AppTheme {
|
||||||
AppTheme._();
|
AppTheme._();
|
||||||
|
|
||||||
// ── 主色调:深青绿 ──
|
// ── 主色调:柔和紫 ──
|
||||||
static const Color primary = Color(0xFF2D6A4F); // 深青绿
|
static const Color primary = Color(0xFF7C6FF7); // 柔紫
|
||||||
static const Color primaryLight = Color(0xFFD8F3DC); // 浅薄荷
|
static const Color primaryLight = Color(0xFFEDEAFF); // 浅薰衣草
|
||||||
static const Color primaryDark = Color(0xFF1B4332); // 深森林
|
static const Color primaryDark = Color(0xFF4A3FBE); // 深紫
|
||||||
static const Color primaryGlow = Color(0xFFB7E4C7); // 发光薄荷
|
static const Color primaryGlow = Color(0xFFD9D4FF); // 发光紫
|
||||||
|
|
||||||
// ── 中性色 ──
|
// ── 中性色 ──
|
||||||
static const Color bg = Color(0xFFF7FAF8); // 暖白底
|
static const Color bg = Color(0xFFFAF9FF); // 淡紫白
|
||||||
static const Color surface = Color(0xFFFFFFFF);
|
static const Color surface = Color(0xFFFFFFFF);
|
||||||
static const Color text = Color(0xFF1B281F); // 深绿黑
|
static const Color text = Color(0xFF1E1B2E); // 紫黑
|
||||||
static const Color textSub = Color(0xFF6B7B6F); // 灰绿
|
static const Color textSub = Color(0xFF6E6B82); // 灰紫
|
||||||
static const Color textHint = Color(0xFFB7BFB9); // 浅灰绿
|
static const Color textHint = Color(0xFFB5B2C8); // 浅灰紫
|
||||||
static const Color border = Color(0xFFE0E8E2);
|
static const Color border = Color(0xFFE8E6F0);
|
||||||
static const Color divider = Color(0xFFF0F4F1);
|
static const Color divider = Color(0xFFF4F2FA);
|
||||||
|
|
||||||
// ── 语义色 ──
|
// ── 语义色 ──
|
||||||
static const Color success = Color(0xFF40916C); // 翠绿
|
static const Color success = Color(0xFF52B788); // 翠绿
|
||||||
static const Color error = Color(0xFFE07A5F); // 陶土红
|
static const Color error = Color(0xFFE85D75); // 柔红
|
||||||
static const Color warning = Color(0xFFF2CC8F); // 蜂蜜黄
|
static const Color warning = Color(0xFFF5B041); // 暖琥珀
|
||||||
static const Color accent = Color(0xFF81B29A); // 中青绿
|
static const Color accent = Color(0xFFA78BFA); // 中紫
|
||||||
static const Color info = Color(0xFF52B788); // 亮绿
|
static const Color info = Color(0xFF7C6FF7); // 柔紫
|
||||||
|
|
||||||
// ── 圆角 ──
|
// ── 圆角 ──
|
||||||
static const double rXs = 6;
|
static const double rXs = 6;
|
||||||
@@ -54,7 +53,7 @@ class AppTheme {
|
|||||||
|
|
||||||
// ── 智能体配色 ──
|
// ── 智能体配色 ──
|
||||||
static const Map<String, Color> agentColors = {
|
static const Map<String, Color> agentColors = {
|
||||||
'default': Color(0xFFD8F3DC), // 薄荷
|
'default': Color(0xFFEDEAFF), // 淡紫
|
||||||
'consultation': Color(0xFFE0F0FF), // 淡天蓝
|
'consultation': Color(0xFFE0F0FF), // 淡天蓝
|
||||||
'health': Color(0xFFE8FFE8), // 淡翠绿
|
'health': Color(0xFFE8FFE8), // 淡翠绿
|
||||||
'diet': Color(0xFFFFF0E0), // 淡杏
|
'diet': Color(0xFFFFF0E0), // 淡杏
|
||||||
@@ -75,7 +74,7 @@ class AppTheme {
|
|||||||
brightness: Brightness.light,
|
brightness: Brightness.light,
|
||||||
),
|
),
|
||||||
scaffoldBackgroundColor: bg,
|
scaffoldBackgroundColor: bg,
|
||||||
fontFamily: null, // 使用系统默认字体
|
fontFamily: null,
|
||||||
|
|
||||||
appBarTheme: const AppBarTheme(
|
appBarTheme: const AppBarTheme(
|
||||||
backgroundColor: surface,
|
backgroundColor: surface,
|
||||||
@@ -142,9 +141,9 @@ class AppTheme {
|
|||||||
popoverForeground: text,
|
popoverForeground: text,
|
||||||
primary: primary,
|
primary: primary,
|
||||||
primaryForeground: Colors.white,
|
primaryForeground: Colors.white,
|
||||||
secondary: Color(0xFFF0F4F1),
|
secondary: Color(0xFFF4F2FA),
|
||||||
secondaryForeground: text,
|
secondaryForeground: text,
|
||||||
muted: Color(0xFFF0F4F1),
|
muted: Color(0xFFF4F2FA),
|
||||||
mutedForeground: textSub,
|
mutedForeground: textSub,
|
||||||
accent: accent,
|
accent: accent,
|
||||||
accentForeground: Colors.white,
|
accentForeground: Colors.white,
|
||||||
@@ -153,7 +152,7 @@ class AppTheme {
|
|||||||
border: border,
|
border: border,
|
||||||
input: border,
|
input: border,
|
||||||
ring: primary,
|
ring: primary,
|
||||||
selection: Color(0xFFB7E4C7),
|
selection: Color(0xFFD9D4FF),
|
||||||
),
|
),
|
||||||
radius: BorderRadius.circular(rMd),
|
radius: BorderRadius.circular(rMd),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user