style: 全项目紫色→薄荷绿 Fresh Air 清新风

- 主色 #635BFF→#14B8A6 (薄荷绿)
- 浅紫 #EDEBFF→#E6FAF6 (极浅薄荷)
- 深紫 #4B44D6→#0F9D8E (深薄荷)
- 渐变紫→薄荷渐变
- 全局13种紫色映射替换
This commit is contained in:
MingNian
2026-06-03 20:30:28 +08:00
parent f484c6b66a
commit 8dcf99cac5
18 changed files with 221 additions and 249 deletions

View File

@@ -99,7 +99,7 @@ class _MedicationEditPageState extends ConsumerState<MedicationEditPage> {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('已添加 ${_items.length} 种药品'),
backgroundColor: const Color(0xFF635BFF),
backgroundColor: const Color(0xFF14B8A6),
),
);
ref.invalidate(medicationListProvider);
@@ -136,7 +136,7 @@ class _MedicationEditPageState extends ConsumerState<MedicationEditPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xFFF8F7FF),
backgroundColor: const Color(0xFFF6F9FB),
appBar: AppBar(
backgroundColor: Colors.white,
elevation: 0,
@@ -158,7 +158,7 @@ class _MedicationEditPageState extends ConsumerState<MedicationEditPage> {
child: const Text(
'保存',
style: TextStyle(
color: Color(0xFF635BFF),
color: Color(0xFF14B8A6),
fontWeight: FontWeight.w600,
),
),
@@ -204,7 +204,7 @@ class _MedicationEditPageState extends ConsumerState<MedicationEditPage> {
style: const TextStyle(
fontSize: 13,
fontWeight: FontWeight.w600,
color: Color(0xFF635BFF),
color: Color(0xFF14B8A6),
),
),
if (_items.length > 1)
@@ -390,7 +390,7 @@ class _MedicationEditPageState extends ConsumerState<MedicationEditPage> {
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const Icon(Icons.access_time, size: 16, color: Color(0xFF635BFF)),
const Icon(Icons.access_time, size: 16, color: Color(0xFF14B8A6)),
const SizedBox(width: 6),
Text(
time.format(context),
@@ -410,11 +410,11 @@ class _MedicationEditPageState extends ConsumerState<MedicationEditPage> {
icon: const Icon(Icons.add, size: 18),
label: const Text('添加', style: TextStyle(fontSize: 14)),
style: OutlinedButton.styleFrom(
foregroundColor: const Color(0xFF635BFF),
side: const BorderSide(color: Color(0xFFD5D1FF)),
foregroundColor: const Color(0xFF14B8A6),
side: const BorderSide(color: Color(0xFFC0E8E2)),
padding: const EdgeInsets.symmetric(vertical: 12),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
backgroundColor: const Color(0xFFF5F3FF),
backgroundColor: const Color(0xFFF2FAF9),
),
),
);
@@ -438,7 +438,7 @@ class _MedicationEditPageState extends ConsumerState<MedicationEditPage> {
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(8),
borderSide: const BorderSide(color: Color(0xFF635BFF)),
borderSide: const BorderSide(color: Color(0xFF14B8A6)),
),
);
}