Не подтверждена Коммит 238d1ad4 создал по автору Peng Xiao's avatar Peng Xiao
Просмотр файлов

fix(component): add back lottie color hack for dark mode (#5576)

Not sure why but it seems the changes in https://github.com/toeverything/AFFiNE/pull/4953 are lost
владелец baeb5cc7
...@@ -2,8 +2,8 @@ import clsx from 'clsx'; ...@@ -2,8 +2,8 @@ import clsx from 'clsx';
import Lottie, { type LottieRef } from 'lottie-react'; import Lottie, { type LottieRef } from 'lottie-react';
import { useEffect, useRef } from 'react'; import { useEffect, useRef } from 'react';
import * as styles from './collections-icon.css';
import animationData from './collections-icon.json'; import animationData from './collections-icon.json';
import * as styles from './styles.css';
export interface CollectionsIconProps { export interface CollectionsIconProps {
closed: boolean; // eg, when collections icon is a "dragged over" state closed: boolean; // eg, when collections icon is a "dragged over" state
......
import { style } from '@vanilla-extract/css';
export const root = style({
width: '1em',
height: '1em',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
});
...@@ -2,8 +2,8 @@ import clsx from 'clsx'; ...@@ -2,8 +2,8 @@ import clsx from 'clsx';
import Lottie, { type LottieRef } from 'lottie-react'; import Lottie, { type LottieRef } from 'lottie-react';
import { useEffect, useRef } from 'react'; import { useEffect, useRef } from 'react';
import * as styles from './delete-icon.css';
import animationData from './delete-icon.json'; import animationData from './delete-icon.json';
import * as styles from './styles.css';
export interface DeleteIconProps { export interface DeleteIconProps {
closed: boolean; // eg, when delete icon is a "dragged over" state closed: boolean; // eg, when delete icon is a "dragged over" state
......
import { style } from '@vanilla-extract/css'; import { globalStyle, style } from '@vanilla-extract/css';
export const root = style({ export const root = style({
width: '1em', width: '1em',
...@@ -7,3 +7,13 @@ export const root = style({ ...@@ -7,3 +7,13 @@ export const root = style({
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
}); });
const magicColor = `rgb(119,117,125)`;
globalStyle(`${root} path[stroke="${magicColor}"]`, {
stroke: 'currentColor',
});
globalStyle(`${root} path[fill="${magicColor}"]`, {
fill: 'currentColor',
});
...@@ -294,9 +294,7 @@ export const RootAppSidebar = ({ ...@@ -294,9 +294,7 @@ export const RootAppSidebar = ({
{t['com.affine.workspaceSubPath.trash']()} {t['com.affine.workspaceSubPath.trash']()}
</span> </span>
</RouteMenuLinkItem> </RouteMenuLinkItem>
{blockSuiteWorkspace && ( <ImportPage blocksuiteWorkspace={blockSuiteWorkspace} />
<ImportPage blocksuiteWorkspace={blockSuiteWorkspace} />
)}
</SidebarScrollableContainer> </SidebarScrollableContainer>
<SidebarContainer> <SidebarContainer>
{environment.isDesktop ? <UpdaterButton /> : <AppDownloadButton />} {environment.isDesktop ? <UpdaterButton /> : <AppDownloadButton />}
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать