mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 03:33:06 +08:00
feat: update editor mode switch icons (#3526)
This commit is contained in:
+804
-554
File diff suppressed because it is too large
Load Diff
+1958
-411
File diff suppressed because it is too large
Load Diff
@@ -54,7 +54,7 @@ export const StyledSwitchItem = styled('button')<{
|
|||||||
zIndex: 2,
|
zIndex: 2,
|
||||||
fontSize: '20px',
|
fontSize: '20px',
|
||||||
path: {
|
path: {
|
||||||
fill: 'currentColor',
|
stroke: 'currentColor',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
+3
-3
@@ -35,7 +35,7 @@ const HoverAnimateController = ({
|
|||||||
>
|
>
|
||||||
{cloneElement(children, {
|
{cloneElement(children, {
|
||||||
isStopped: !startAnimate,
|
isStopped: !startAnimate,
|
||||||
speed: 5,
|
speed: 1,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
})}
|
})}
|
||||||
@@ -50,7 +50,7 @@ export const PageSwitchItem = (
|
|||||||
<HoverAnimateController {...props}>
|
<HoverAnimateController {...props}>
|
||||||
<InternalLottie
|
<InternalLottie
|
||||||
options={{
|
options={{
|
||||||
loop: false,
|
loop: true,
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
animationData: require('./animation-data/page-hover.json'),
|
animationData: require('./animation-data/page-hover.json'),
|
||||||
rendererSettings: {
|
rendererSettings: {
|
||||||
@@ -69,7 +69,7 @@ export const EdgelessSwitchItem = (
|
|||||||
<HoverAnimateController {...props}>
|
<HoverAnimateController {...props}>
|
||||||
<InternalLottie
|
<InternalLottie
|
||||||
options={{
|
options={{
|
||||||
loop: false,
|
loop: true,
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
animationData: require('./animation-data/edgeless-hover.json'),
|
animationData: require('./animation-data/edgeless-hover.json'),
|
||||||
rendererSettings: {
|
rendererSettings: {
|
||||||
|
|||||||
Reference in New Issue
Block a user