docs: clarify developer tool filtering and module contracts

This commit is contained in:
2026-11-12 21:02:02 +08:00
parent 91801dc417
commit fe8ffa1a78
5 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ pub(super) fn build(p: &mut Painter, state: &mut DeveloperToolsState, viewport:
MUTED,
false,
);
// 色块动作携带调色板索引,绘制仅比较当前 accent 标记选中;实际修改由统一动作处理器执行。
// 色块动作携带调色板索引,绘制按完整 Color 相等标记选中;实际修改由统一动作处理器执行。
// Theme 动作同步本槽 custom 文本;切换工具只传播 accent,不保证各槽旧 custom 文本始终等于当前主题。
for (i, color) in PALETTE.iter().enumerate() {
// 每个调色板项固定宽度和间距,索引 i 作为 Action::Theme 的参数与 PALETTE 一一对应。
let r = Rect::new(x + 24.0 + i as f32 * 44.0, 122.0, 32.0, 32.0);