From ed48e1f139e2ac219abe0851e4c029fd23444dfe Mon Sep 17 00:00:00 2001 From: Kayshen-X Date: Sun, 10 May 2026 18:05:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(shell-core):=20=E5=88=9B=E5=BB=BA=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=20icon=20Diamond=20=E2=86=92=20Component=20to=20match?= =?UTF-8?q?=20TS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TS imports both Diamond (instance indicator) and Component (cluster of 4 small diamonds, used for the 创建组件 button). I picked the single-diamond Diamond by mistake; the button uses Component. --- .../src/widgets/property_panel_sections.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/openpencil-shell-core/src/widgets/property_panel_sections.rs b/crates/openpencil-shell-core/src/widgets/property_panel_sections.rs index d360b966f..59f74e6e8 100644 --- a/crates/openpencil-shell-core/src/widgets/property_panel_sections.rs +++ b/crates/openpencil-shell-core/src/widgets/property_panel_sections.rs @@ -108,12 +108,12 @@ pub fn paint_create_component( cx.backend.fill_round_rect(btn_rect, 8.0, theme.muted); cx.backend .stroke_round_rect(btn_rect, 8.0, theme.border, 1.0); - // TS uses Diamond icon for the "create component" affordance - // (apps/web/src/components/panels/property-panel.tsx imports - // Diamond from lucide-react). Sparkles was a stand-in. + // TS uses Component icon (cluster of 4 small diamonds) for + // the "create component" affordance. Diamond is imported in + // the same file but used elsewhere (instance indicator). draw_icon( cx.backend, - Icon::Diamond, + Icon::Component, Point2D::new(btn_rect.origin.x + 12.0, btn_rect.origin.y + 9.0), 18.0, theme.foreground,