aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/newlightbox/ButtonMenu/ButtonMenu.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-10-30 18:54:52 -0400
committerbobzel <zzzman@gmail.com>2024-10-30 18:54:52 -0400
commit4c768162e0436115a05b9c8b0e4d837d626d45ba (patch)
tree57290717f82430827c2657755ff074e6703162a9 /src/client/views/newlightbox/ButtonMenu/ButtonMenu.tsx
parent41575f2f6121c402fef5fa49deb314f3226dec01 (diff)
reworked how context menu buttons for ink and text work. added disableMixBlend for making transparent docs not use 'multiply'.
Diffstat (limited to 'src/client/views/newlightbox/ButtonMenu/ButtonMenu.tsx')
-rw-r--r--src/client/views/newlightbox/ButtonMenu/ButtonMenu.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/newlightbox/ButtonMenu/ButtonMenu.tsx b/src/client/views/newlightbox/ButtonMenu/ButtonMenu.tsx
index 3eb99f47a..8115bafbf 100644
--- a/src/client/views/newlightbox/ButtonMenu/ButtonMenu.tsx
+++ b/src/client/views/newlightbox/ButtonMenu/ButtonMenu.tsx
@@ -1,5 +1,3 @@
-/* eslint-disable jsx-a11y/no-static-element-interactions */
-/* eslint-disable jsx-a11y/click-events-have-key-events */
import { action } from 'mobx';
import * as React from 'react';
import { Doc } from '../../../../fields/Doc';
@@ -35,10 +33,10 @@ export function ButtonMenu() {
<div
className="newLightboxView-penBtn"
title="toggle pen annotation"
- style={{ background: Doc.ActiveTool === InkTool.Pen ? 'white' : undefined }}
+ style={{ background: Doc.ActiveTool === InkTool.Ink ? 'white' : undefined }}
onClick={e => {
e.stopPropagation();
- Doc.ActiveTool = Doc.ActiveTool === InkTool.Pen ? InkTool.None : InkTool.Pen;
+ Doc.ActiveTool = Doc.ActiveTool === InkTool.Ink ? InkTool.None : InkTool.Ink;
}}
/>
<div