keep polygon icon constant

This commit is contained in:
dwelle 2025-05-05 11:28:19 +02:00
parent 1fdf8967ed
commit eb619f8fde
2 changed files with 3 additions and 23 deletions

View File

@ -13,11 +13,7 @@ import type {
import { DEFAULT_CATEGORIES } from "../components/CommandPalette/CommandPalette"; import { DEFAULT_CATEGORIES } from "../components/CommandPalette/CommandPalette";
import { ToolButton } from "../components/ToolButton"; import { ToolButton } from "../components/ToolButton";
import { import { lineEditorIcon, polygonIcon } from "../components/icons";
lineEditorIcon,
LoopUnlockedIcon,
LoopLockedIcon,
} from "../components/icons";
import { t } from "../i18n"; import { t } from "../i18n";
import { CaptureUpdateAction } from "../store"; import { CaptureUpdateAction } from "../store";
@ -185,7 +181,7 @@ export const actionToggleLoopLock = register({
return ( return (
<ButtonIcon <ButtonIcon
icon={allLocked ? LoopLockedIcon : LoopUnlockedIcon} icon={polygonIcon}
title={label} title={label}
aria-label={label} aria-label={label}
active={allLocked} active={allLocked}

View File

@ -129,23 +129,7 @@ export const PinIcon = createIcon(
tablerIconProps, tablerIconProps,
); );
export const LoopLockedIcon = createIcon( export const polygonIcon = createIcon(
<g strokeWidth={1.25}>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
<path d="M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
<path d="M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
<path d="M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
<path d="M6.5 9.5l1.546 -1.311" />
<path d="M14 5.5l3 1.5" />
<path d="M18.5 10l-1.185 3.318m-1.062 2.972l-.253 .71" />
<path d="M13.5 17.5l-7 -5" />
<path d="M3 3l18 18" />
</g>,
tablerIconProps,
);
export const LoopUnlockedIcon = createIcon(
<g strokeWidth={1.25}> <g strokeWidth={1.25}>
<path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /> <path d="M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />