fix(shell-core): 创建组件 icon Diamond → Component to match TS
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.
This commit is contained in:
parent
0c0131653e
commit
ed48e1f139
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue