From 30903fbe047559e2050efb2be6386b95ab6bfa88 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Mon, 9 Mar 2020 16:01:29 -0400 Subject: [PATCH] =?UTF-8?q?Fill=20the=20resize=20handles=20with=20white=20?= =?UTF-8?q?so=20they=20are=20visible=20on=20dark=20b=E2=80=A6=20(#894)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fill the resize handles with white so they are visible on dark backgrounds * revert package-lock.json Co-authored-by: dwelle --- src/renderer/renderScene.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/renderScene.ts b/src/renderer/renderScene.ts index 80d13f28..1f13e061 100644 --- a/src/renderer/renderScene.ts +++ b/src/renderer/renderScene.ts @@ -162,10 +162,12 @@ export function renderScene( if (selectedElements.length === 1 && selectedElements[0].type !== "text") { applyZoom(context); context.translate(sceneState.scrollX, sceneState.scrollY); + context.fillStyle = "#fff"; const handlers = handlerRectangles(selectedElements[0], sceneState.zoom); Object.values(handlers) .filter(handler => handler !== undefined) .forEach(handler => { + context.fillRect(handler[0], handler[1], handler[2], handler[3]); context.strokeRect(handler[0], handler[1], handler[2], handler[3]); }); resetZoom(context);