From 5f8964e03fd50bb6054c8d382568b7b6a2803c87 Mon Sep 17 00:00:00 2001 From: MingNian <1281442923@qq.com> Date: Mon, 8 Jun 2026 18:08:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=BF=E8=89=B2=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=9B=9E=E6=BB=9A=E4=B8=BA=E6=B7=A1=E7=B4=AB=E6=B8=85=E6=96=B0?= =?UTF-8?q?=E9=A3=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 朝露绿翻车,换回柔和紫(#7C6FF7) + 淡紫白底(#FAF9FF) --- health_app/lib/core/app_theme.dart | 45 +++++++++++++++--------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/health_app/lib/core/app_theme.dart b/health_app/lib/core/app_theme.dart index 50022fd..2aaf7c2 100644 --- a/health_app/lib/core/app_theme.dart +++ b/health_app/lib/core/app_theme.dart @@ -1,32 +1,31 @@ import 'package:flutter/material.dart'; import 'package:shadcn_ui/shadcn_ui.dart'; -/// 健康管家 —「朝露」Morning Dew -/// 深青绿 + 薄荷白,植物系清新风格 +/// 健康管家 — 淡紫清新风 class AppTheme { AppTheme._(); - // ── 主色调:深青绿 ── - static const Color primary = Color(0xFF2D6A4F); // 深青绿 - static const Color primaryLight = Color(0xFFD8F3DC); // 浅薄荷 - static const Color primaryDark = Color(0xFF1B4332); // 深森林 - static const Color primaryGlow = Color(0xFFB7E4C7); // 发光薄荷 + // ── 主色调:柔和紫 ── + static const Color primary = Color(0xFF7C6FF7); // 柔紫 + static const Color primaryLight = Color(0xFFEDEAFF); // 浅薰衣草 + static const Color primaryDark = Color(0xFF4A3FBE); // 深紫 + 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 text = Color(0xFF1B281F); // 深绿黑 - static const Color textSub = Color(0xFF6B7B6F); // 灰绿 - static const Color textHint = Color(0xFFB7BFB9); // 浅灰绿 - static const Color border = Color(0xFFE0E8E2); - static const Color divider = Color(0xFFF0F4F1); + static const Color text = Color(0xFF1E1B2E); // 紫黑 + static const Color textSub = Color(0xFF6E6B82); // 灰紫 + static const Color textHint = Color(0xFFB5B2C8); // 浅灰紫 + static const Color border = Color(0xFFE8E6F0); + static const Color divider = Color(0xFFF4F2FA); // ── 语义色 ── - static const Color success = Color(0xFF40916C); // 翠绿 - static const Color error = Color(0xFFE07A5F); // 陶土红 - static const Color warning = Color(0xFFF2CC8F); // 蜂蜜黄 - static const Color accent = Color(0xFF81B29A); // 中青绿 - static const Color info = Color(0xFF52B788); // 亮绿 + static const Color success = Color(0xFF52B788); // 翠绿 + static const Color error = Color(0xFFE85D75); // 柔红 + static const Color warning = Color(0xFFF5B041); // 暖琥珀 + static const Color accent = Color(0xFFA78BFA); // 中紫 + static const Color info = Color(0xFF7C6FF7); // 柔紫 // ── 圆角 ── static const double rXs = 6; @@ -54,7 +53,7 @@ class AppTheme { // ── 智能体配色 ── static const Map agentColors = { - 'default': Color(0xFFD8F3DC), // 薄荷 + 'default': Color(0xFFEDEAFF), // 淡紫 'consultation': Color(0xFFE0F0FF), // 淡天蓝 'health': Color(0xFFE8FFE8), // 淡翠绿 'diet': Color(0xFFFFF0E0), // 淡杏 @@ -75,7 +74,7 @@ class AppTheme { brightness: Brightness.light, ), scaffoldBackgroundColor: bg, - fontFamily: null, // 使用系统默认字体 + fontFamily: null, appBarTheme: const AppBarTheme( backgroundColor: surface, @@ -142,9 +141,9 @@ class AppTheme { popoverForeground: text, primary: primary, primaryForeground: Colors.white, - secondary: Color(0xFFF0F4F1), + secondary: Color(0xFFF4F2FA), secondaryForeground: text, - muted: Color(0xFFF0F4F1), + muted: Color(0xFFF4F2FA), mutedForeground: textSub, accent: accent, accentForeground: Colors.white, @@ -153,7 +152,7 @@ class AppTheme { border: border, input: border, ring: primary, - selection: Color(0xFFB7E4C7), + selection: Color(0xFFD9D4FF), ), radius: BorderRadius.circular(rMd), );