style: change switch tip color (#3123)

(cherry picked from commit 812e0e9c9a)
This commit is contained in:
JimmFly
2023-07-10 15:00:23 +08:00
committed by Alex Yang
parent d42c53c3da
commit 77200ed8fc
2 changed files with 5 additions and 4 deletions

View File

@@ -19,9 +19,10 @@ export type EditorModeSwitchProps = {
style?: CSSProperties;
};
const TooltipContent = () => {
const t = useAFFiNEI18N();
return (
<div>
Switch
{t['Switch']()}
<StyledKeyboardItem>
{!environment.isServer && environment.isMacOs ? '⌥ + S' : 'Alt + S'}
</StyledKeyboardItem>

View File

@@ -56,11 +56,11 @@ export const StyledSwitchItem = styled('button')<{
export const StyledKeyboardItem = styled('span')(() => {
return {
marginLeft: '5px',
fontSize: '4px',
marginLeft: '10px',
fontSize: 'var(--affine-font-xs)',
paddingLeft: '5px',
paddingRight: '5px',
backgroundColor: '#55545A',
backgroundColor: 'var(--affine-white-10)',
borderRadius: '4px',
};
});