docs: clarify source viewing and host interaction boundaries
This commit is contained in:
@@ -7,9 +7,13 @@ pub const BG: Color = Color::rgb(255, 255, 255);
|
||||
pub const BAR: Color = Color::rgb(230, 233, 237);
|
||||
// 控件边框与未悬停分隔线共用,强调状态由 Theme.accent 覆盖而不是改写这个常量。
|
||||
pub const BORDER: Color = Color::rgb(226, 226, 226);
|
||||
// 宿主正文/按钮的默认前景,widgets 和各开发工具画文字时共用。
|
||||
pub const TEXT: Color = Color::rgb(35, 42, 53);
|
||||
// 次要说明、图标与禁用样式的基础灰色,具体状态仍可由控件混色。
|
||||
pub const MUTED: Color = Color::rgb(103, 114, 130);
|
||||
// 开发工具错误文本与失败状态使用的红色,不参与运行时错误判定。
|
||||
pub const ERROR: Color = Color::rgb(175, 42, 49);
|
||||
// 开发工具成功状态使用的绿色;是否成功由数据层决定,不由颜色反推。
|
||||
pub const OK: Color = Color::rgb(31, 121, 80);
|
||||
// 供设置页选择的六个强调色候选;Theme::new 还会按可读性规则调整传入颜色。
|
||||
pub const PALETTE: [Color; 6] = [
|
||||
|
||||
Reference in New Issue
Block a user