mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: show active tool when using "more tools"
This commit is contained in:
parent
05084ed52b
commit
ded26bea97
2 changed files with 16 additions and 3 deletions
|
@ -368,7 +368,15 @@ export const ShapesSwitcher = ({
|
||||||
onToggle={() => setIsExtraToolsMenuOpen(!isExtraToolsMenuOpen)}
|
onToggle={() => setIsExtraToolsMenuOpen(!isExtraToolsMenuOpen)}
|
||||||
title={t("toolBar.extraTools")}
|
title={t("toolBar.extraTools")}
|
||||||
>
|
>
|
||||||
{extraToolsIcon}
|
{frameToolSelected
|
||||||
|
? frameToolIcon
|
||||||
|
: embeddableToolSelected
|
||||||
|
? EmbedIcon
|
||||||
|
: laserToolSelected && !app.props.isCollaborating
|
||||||
|
? laserPointerToolIcon
|
||||||
|
: lassoToolSelected
|
||||||
|
? LassoIcon
|
||||||
|
: extraToolsIcon}
|
||||||
</DropdownMenu.Trigger>
|
</DropdownMenu.Trigger>
|
||||||
<DropdownMenu.Content
|
<DropdownMenu.Content
|
||||||
onClickOutside={() => setIsExtraToolsMenuOpen(false)}
|
onClickOutside={() => setIsExtraToolsMenuOpen(false)}
|
||||||
|
|
|
@ -275,7 +275,12 @@ export const SelectionIcon = createIcon(
|
||||||
);
|
);
|
||||||
|
|
||||||
export const LassoIcon = createIcon(
|
export const LassoIcon = createIcon(
|
||||||
<g stroke="currentColor" strokeLinecap="round" strokeLinejoin="round">
|
<g
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
strokeWidth={1.5}
|
||||||
|
>
|
||||||
<path d="M4.028 13.252c-.657 -.972 -1.028 -2.078 -1.028 -3.252c0 -3.866 4.03 -7 9 -7s9 3.134 9 7s-4.03 7 -9 7c-1.913 0 -3.686 -.464 -5.144 -1.255" />
|
<path d="M4.028 13.252c-.657 -.972 -1.028 -2.078 -1.028 -3.252c0 -3.866 4.03 -7 9 -7s9 3.134 9 7s-4.03 7 -9 7c-1.913 0 -3.686 -.464 -5.144 -1.255" />
|
||||||
<path d="M5 15m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
|
<path d="M5 15m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
|
||||||
<path d="M5 17c0 1.42 .316 2.805 1 4" />
|
<path d="M5 17c0 1.42 .316 2.805 1 4" />
|
||||||
|
@ -416,7 +421,7 @@ export const TrashIcon = createIcon(
|
||||||
);
|
);
|
||||||
|
|
||||||
export const EmbedIcon = createIcon(
|
export const EmbedIcon = createIcon(
|
||||||
<g strokeWidth="1.25">
|
<g strokeWidth="1.5">
|
||||||
<polyline points="12 16 18 10 12 4" />
|
<polyline points="12 16 18 10 12 4" />
|
||||||
<polyline points="8 4 2 10 8 16" />
|
<polyline points="8 4 2 10 8 16" />
|
||||||
</g>,
|
</g>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue