feat: 实现导航页基础功能
- 添加导航条目和分类数据模型 - 实现导航卡片网格展示 - 支持点击卡片打开链接 - 添加主题样式(渐变色、卡片阴影) - 区分系统默认和自定义条目 - 添加分类统计信息"
This commit is contained in:
@@ -44,6 +44,16 @@ abstract final class AppColors {
|
||||
/// 搜索框聚焦时的外发光(`0 0 0 3px rgba(59,130,246,.15)`)。
|
||||
static const Color focusRing = Color(0x263B82F6);
|
||||
|
||||
/// 错误色。
|
||||
///
|
||||
/// `index3.html` 的调色板里没有红色,但表单的字段错误、失败提示需要一个
|
||||
/// 明确区别于正文的颜色,所以新增这一个语义令牌——只用在错误提示上,
|
||||
/// 不参与任何现有视觉。
|
||||
static const Color danger = Color(0xFFE5484D);
|
||||
|
||||
/// 错误色 8% 叠加,用作错误提示条 / 错误输入框的底色。
|
||||
static const Color dangerFaint = Color(0x14E5484D);
|
||||
|
||||
// ---- 阴影 ----
|
||||
|
||||
/// 卡片默认阴影(`--shadow`)。
|
||||
|
||||
Reference in New Issue
Block a user