Skip to content

Commit

Permalink
🐛 修复白色模式输入框文字看不见的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlefean committed Jan 9, 2025
1 parent 7de6a07 commit e824f5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src-tauri/Project Graph

This file was deleted.

3 changes: 2 additions & 1 deletion src/core/controller/concrete/utilsControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { StageManager } from "../../stage/stageManager/StageManager";
import { Stage } from "../../stage/Stage";
import { EntityCreateLineEffect } from "../../effect/concrete/EntityCreateLineEffect";
import { isDesktop } from "../../../utils/platform";
import { StageStyleManager } from "../../stageStyle/StageStyleManager";

/**
* 可能有多个控制器公用同一个代码,
Expand All @@ -34,7 +35,7 @@ export function editNode(clickedNode: TextNode) {
{
fontSize: Renderer.FONT_SIZE * Camera.currentScale + "px",
backgroundColor: "transparent",
color: "white",
color: StageStyleManager.currentStyle.StageObjectBorderColor.toString(),
outline: "none",
marginTop: -8 * Camera.currentScale + "px",
width: "100vw",
Expand Down
1 change: 1 addition & 0 deletions src/core/render/canvas2d/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ export namespace Renderer {
inputElement.style.position = "fixed";
inputElement.style.top = `${location.y}px`;
inputElement.style.left = `${location.x}px`;
inputElement.id = "input-element";
Object.assign(inputElement.style, style);
document.body.appendChild(inputElement);
inputElement.focus();
Expand Down

0 comments on commit e824f5c

Please sign in to comment.