diff options
| author | bobzel <zzzman@gmail.com> | 2021-09-29 12:06:32 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-09-29 12:06:32 -0400 |
| commit | e6451eda7c7a5be73922b302627c53db5e22d474 (patch) | |
| tree | ffa45966cc953b8e32b00ca3aafebb71ed3b126d /src/client/views/nodes/button/FontIconBox.tsx | |
| parent | e5905220a84a62fff36965a3bf74a55b793ae31b (diff) | |
support drawing of closed ink shapes. fixed highlight state of pen button on startup
Diffstat (limited to 'src/client/views/nodes/button/FontIconBox.tsx')
| -rw-r--r-- | src/client/views/nodes/button/FontIconBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx index f975b063a..33fa23805 100644 --- a/src/client/views/nodes/button/FontIconBox.tsx +++ b/src/client/views/nodes/button/FontIconBox.tsx @@ -755,7 +755,7 @@ Scripting.addGlobal(function toggleItalic(checkResult?: boolean) { Scripting.addGlobal(function setActiveInkTool(tool: string, checkResult?: boolean) { if (checkResult) { - return (Doc.UserDoc().activeInkTool === tool && GestureOverlay.Instance?.InkShape === "" || GestureOverlay.Instance?.InkShape === tool) ? + return ((Doc.UserDoc().activeInkTool === tool && !GestureOverlay.Instance?.InkShape) || GestureOverlay.Instance?.InkShape === tool) ? Colors.MEDIUM_BLUE : "transparent"; } if (["circle", "square", "line"].includes(tool)) { |
