refactor(client): license_copy 内联色 + 删除 app_theme.dart(AppTheme 退役)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-25 00:25:42 +08:00
parent 6570ac792c
commit 93cb5dae25
2 changed files with 4 additions and 293 deletions
+4 -5
View File
@@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
import '../../models/license.dart';
import '../theme/app_theme.dart';
/// 授权阶段文案 + 阈值的集中配置。
///
@@ -114,7 +113,7 @@ class LicenseCopy {
static Color bannerColor(String phase) {
switch (phase) {
case 'locked':
return AppTheme.danger;
return const Color(0xFFD14343);
case 'readonly':
return const Color(0xFFB71C1C); // 深红,强调即将彻底锁定
case 'grace':
@@ -128,12 +127,12 @@ class LicenseCopy {
static Color phaseColor(String phase) {
switch (phase) {
case 'grace':
return AppTheme.warning500;
return const Color(0xFFE08E00);
case 'readonly':
case 'locked':
return AppTheme.danger;
return const Color(0xFFD14343);
default:
return AppTheme.success;
return const Color(0xFF2E8B57);
}
}