mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-18 22:11:55 +03:00
Merge pull request #193 from toeverything/fix/board-selected-color
fix: change edgeless tool selected color
This commit is contained in:
commit
6060a81cc3
@ -6,6 +6,7 @@ import {
|
|||||||
Tooltip,
|
Tooltip,
|
||||||
PopoverContainer,
|
PopoverContainer,
|
||||||
IconButton,
|
IconButton,
|
||||||
|
useTheme,
|
||||||
} from '@toeverything/components/ui';
|
} from '@toeverything/components/ui';
|
||||||
import {
|
import {
|
||||||
FrameIcon,
|
FrameIcon,
|
||||||
@ -71,6 +72,7 @@ export const ToolsPanel: FC<{ app: TldrawApp }> = ({ app }) => {
|
|||||||
const activeTool = app.useStore(activeToolSelector);
|
const activeTool = app.useStore(activeToolSelector);
|
||||||
|
|
||||||
const isToolLocked = app.useStore(toolLockedSelector);
|
const isToolLocked = app.useStore(toolLockedSelector);
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PopoverContainer
|
<PopoverContainer
|
||||||
@ -105,7 +107,8 @@ export const ToolsPanel: FC<{ app: TldrawApp }> = ({ app }) => {
|
|||||||
style={{
|
style={{
|
||||||
color:
|
color:
|
||||||
activeTool === type
|
activeTool === type
|
||||||
? 'blue'
|
? theme.affine.palette
|
||||||
|
.primary
|
||||||
: '',
|
: '',
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user