Merge pull request #193 from toeverything/fix/board-selected-color

fix: change edgeless tool selected color
This commit is contained in:
zuomeng wang 2022-08-11 17:53:38 +08:00 committed by GitHub
commit 6060a81cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ import {
Tooltip,
PopoverContainer,
IconButton,
useTheme,
} from '@toeverything/components/ui';
import {
FrameIcon,
@ -71,6 +72,7 @@ export const ToolsPanel: FC<{ app: TldrawApp }> = ({ app }) => {
const activeTool = app.useStore(activeToolSelector);
const isToolLocked = app.useStore(toolLockedSelector);
const theme = useTheme();
return (
<PopoverContainer
@ -105,7 +107,8 @@ export const ToolsPanel: FC<{ app: TldrawApp }> = ({ app }) => {
style={{
color:
activeTool === type
? 'blue'
? theme.affine.palette
.primary
: '',
}}
onClick={() => {