Skip to content

Commit 6bafbe5

Browse files
committed
✨ Reset node color
1 parent 77a6935 commit 6bafbe5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/src/components/context-menu-content.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import {
4040
Package,
4141
Palette,
4242
Scissors,
43+
Slash,
4344
SquareRoundCorner,
4445
TextSelect,
4546
Trash,
@@ -304,6 +305,10 @@ export default function MyContextMenuContent() {
304305
{t("changeColor")}
305306
</SubTrigger>
306307
<SubContent>
308+
<Item onClick={() => p.stageObjectColorManager.setSelectedStageObjectColor(Color.Transparent)}>
309+
<Slash />
310+
{t("resetColor")}
311+
</Item>
307312
<Item className="bg-transparent! grid grid-cols-11 flex-col gap-1">
308313
{Object.values(tailwindColors)
309314
.filter((it) => typeof it !== "string")

app/src/locales/zh_CN.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ contextMenu:
7474
convertToSection: 转换为框
7575
toggleSectionCollapse: 切换折叠状态
7676
changeColor: 更改颜色
77+
resetColor: 重置
7778

7879
settings:
7980
title: 设置

0 commit comments

Comments
 (0)