Skip to content

Commit e824f5c

Browse files
committed
🐛 修复白色模式输入框文字看不见的问题
1 parent 7de6a07 commit e824f5c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src-tauri/Project Graph

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/core/controller/concrete/utilsControl.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { StageManager } from "../../stage/stageManager/StageManager";
88
import { Stage } from "../../stage/Stage";
99
import { EntityCreateLineEffect } from "../../effect/concrete/EntityCreateLineEffect";
1010
import { isDesktop } from "../../../utils/platform";
11+
import { StageStyleManager } from "../../stageStyle/StageStyleManager";
1112

1213
/**
1314
* 可能有多个控制器公用同一个代码,
@@ -34,7 +35,7 @@ export function editNode(clickedNode: TextNode) {
3435
{
3536
fontSize: Renderer.FONT_SIZE * Camera.currentScale + "px",
3637
backgroundColor: "transparent",
37-
color: "white",
38+
color: StageStyleManager.currentStyle.StageObjectBorderColor.toString(),
3839
outline: "none",
3940
marginTop: -8 * Camera.currentScale + "px",
4041
width: "100vw",

src/core/render/canvas2d/renderer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,7 @@ export namespace Renderer {
750750
inputElement.style.position = "fixed";
751751
inputElement.style.top = `${location.y}px`;
752752
inputElement.style.left = `${location.x}px`;
753+
inputElement.id = "input-element";
753754
Object.assign(inputElement.style, style);
754755
document.body.appendChild(inputElement);
755756
inputElement.focus();

0 commit comments

Comments
 (0)