Highlight mask icon when on mask layer

This commit is contained in:
blessedcoolant 2022-11-22 15:54:57 +13:00
parent 00da042dab
commit 93de78b6e8

View File

@ -98,6 +98,11 @@ const IAICanvasMaskOptions = () => {
aria-label="Masking Options" aria-label="Masking Options"
tooltip="Masking Options" tooltip="Masking Options"
icon={<FaMask />} icon={<FaMask />}
style={
layer === 'mask'
? { backgroundColor: 'var(--accent-color)' }
: { backgroundColor: 'var(--btn-base-color)' }
}
/> />
</ButtonGroup> </ButtonGroup>
} }