style: swap ripple icon
This commit is contained in:
parent
77a14b1023
commit
5cc6abc3a4
|
|
@ -37,6 +37,7 @@ import {
|
||||||
Chart03Icon,
|
Chart03Icon,
|
||||||
} from "@hugeicons/core-free-icons";
|
} from "@hugeicons/core-free-icons";
|
||||||
import { HugeiconsIcon } from "@hugeicons/react";
|
import { HugeiconsIcon } from "@hugeicons/react";
|
||||||
|
import { OcRippleIcon } from "@/components/icons";
|
||||||
|
|
||||||
export function TimelineToolbar({
|
export function TimelineToolbar({
|
||||||
zoomLevel,
|
zoomLevel,
|
||||||
|
|
@ -216,7 +217,7 @@ function ToolbarRightSection({
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ToolbarButton
|
<ToolbarButton
|
||||||
icon={<HugeiconsIcon icon={Link04Icon} className="scale-110" />}
|
icon={<OcRippleIcon size={24} className="scale-110" />}
|
||||||
isActive={rippleEditingEnabled}
|
isActive={rippleEditingEnabled}
|
||||||
tooltip="Ripple editing"
|
tooltip="Ripple editing"
|
||||||
onClick={() => toggleRippleEditing()}
|
onClick={() => toggleRippleEditing()}
|
||||||
|
|
|
||||||
|
|
@ -354,3 +354,51 @@ export function OcSquarePlusIcon({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function OcRippleIcon({
|
||||||
|
className = "",
|
||||||
|
size = 24,
|
||||||
|
strokeWidth = 1.5,
|
||||||
|
}: IconProps) {
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
width={size}
|
||||||
|
height={size}
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
aria-hidden
|
||||||
|
className={className}
|
||||||
|
>
|
||||||
|
<title>Ripple</title>
|
||||||
|
<path
|
||||||
|
d="M5 9C4.39316 9.58984 2 11.1597 2 12C2 12.8403 4.39316 14.4102 5 15"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeWidth={strokeWidth}
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M19 9C19.6068 9.58984 22 11.1597 22 12C22 12.8403 19.6068 14.4102 19 15"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeWidth={strokeWidth}
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M2.42285 11.9795H21.868"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeWidth={strokeWidth}
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M12.1454 21.7021L12.1454 2.25692"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeWidth={strokeWidth}
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue