diff --git a/frontend/public/cursors/pen-tool.png b/frontend/public/cursors/pen-tool.png new file mode 100644 index 0000000..bb67e36 Binary files /dev/null and b/frontend/public/cursors/pen-tool.png differ diff --git a/frontend/src/ui/styles.css b/frontend/src/ui/styles.css index 1f8449f..395a0e1 100644 --- a/frontend/src/ui/styles.css +++ b/frontend/src/ui/styles.css @@ -1616,13 +1616,13 @@ button:disabled { } .canvas-stage.is-path-pen-tool, +.canvas-stage.is-path-pen-tool .leafer-canvas-layer, +.canvas-stage.is-path-pen-tool .leafer-canvas-layer > canvas, .canvas-stage.is-path-pen-tool .canvas-world, -.canvas-stage.is-path-pen-tool .canvas-node, -.canvas-stage.is-path-pen-tool .artboard-image, -.canvas-stage.is-path-pen-tool .artboard-preview, +.canvas-stage.is-path-pen-tool .canvas-world *, .canvas-stage.is-path-pen-tool .canvas-path-editor-overlay, -.canvas-stage.is-path-pen-tool .canvas-path-editor-overlay > canvas { - cursor: url("/cursors/pen-tool.svg?v=3") 4 4, default !important; +.canvas-stage.is-path-pen-tool .canvas-path-editor-overlay * { + cursor: url("/cursors/pen-tool.png?v=4") 4 4, default !important; } .canvas-stage.is-text-tool, diff --git a/frontend/tests/editablePath.test.mjs b/frontend/tests/editablePath.test.mjs index bed21e6..1a771b3 100644 --- a/frontend/tests/editablePath.test.mjs +++ b/frontend/tests/editablePath.test.mjs @@ -97,5 +97,7 @@ test("keeps the Pen tool immediately after Shape in the workspace toolbar", asyn assert.doesNotMatch(workspaceSource, /startPenDrawing\(event, true\)/); assert.match(workspaceSource, /key === "p"\) return void run\(\(\) => chooseCanvasTool\("path"\)\)/); assert.match(workspaceSource, /key === "b"\) return void run\(\(\) => chooseCanvasTool\("pen"\)\)/); - assert.match(styles, /cursor:\s*url\("\/cursors\/pen-tool\.svg\?v=3"\) 4 4, default !important;/); + assert.match(styles, /\.canvas-stage\.is-path-pen-tool \.canvas-world \*/); + assert.match(styles, /\.canvas-stage\.is-path-pen-tool \.canvas-path-editor-overlay \*/); + assert.match(styles, /cursor:\s*url\("\/cursors\/pen-tool\.png\?v=4"\) 4 4, default !important;/); });