From 93de78b6e86c17a06821581bb2c867c15a96e062 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Tue, 22 Nov 2022 15:54:57 +1300 Subject: [PATCH] Highlight mask icon when on mask layer --- .../components/IAICanvasToolbar/IAICanvasMaskOptions.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/features/canvas/components/IAICanvasToolbar/IAICanvasMaskOptions.tsx b/frontend/src/features/canvas/components/IAICanvasToolbar/IAICanvasMaskOptions.tsx index 197aee78b7..f573bb3725 100644 --- a/frontend/src/features/canvas/components/IAICanvasToolbar/IAICanvasMaskOptions.tsx +++ b/frontend/src/features/canvas/components/IAICanvasToolbar/IAICanvasMaskOptions.tsx @@ -98,6 +98,11 @@ const IAICanvasMaskOptions = () => { aria-label="Masking Options" tooltip="Masking Options" icon={} + style={ + layer === 'mask' + ? { backgroundColor: 'var(--accent-color)' } + : { backgroundColor: 'var(--btn-base-color)' } + } /> }