mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 21:38:44 +08:00
feat: add browser detect warning
This commit is contained in:
@@ -19,6 +19,7 @@ export const getLightTheme = (
|
||||
popoverBackground: '#fff',
|
||||
toolTipBackground: '#6880FF',
|
||||
codeBackground: '#f2f5f9',
|
||||
warningBackground: '#FFF9C7',
|
||||
|
||||
textColor: '#3A4C5C',
|
||||
edgelessTextColor: '#3A4C5C',
|
||||
@@ -33,6 +34,7 @@ export const getLightTheme = (
|
||||
selectedColor: 'rgba(104, 128, 255, 0.1)',
|
||||
borderColor: '#D0D7E3',
|
||||
disableColor: '#C0C0C0',
|
||||
warningColor: '#906616',
|
||||
},
|
||||
font: {
|
||||
xs: '12px',
|
||||
@@ -81,6 +83,7 @@ export const getDarkTheme = (
|
||||
? lightTheme.colors.codeBackground
|
||||
: '#505662',
|
||||
toolTipBackground: '#1F2021',
|
||||
warningBackground: '#FFF9C7',
|
||||
|
||||
textColor: '#fff',
|
||||
edgelessTextColor: '#3A4C5C',
|
||||
@@ -96,6 +99,7 @@ export const getDarkTheme = (
|
||||
selectedColor: 'rgba(104, 128, 255, 0.1)',
|
||||
borderColor: '#4D4C53',
|
||||
disableColor: '#4b4b4b',
|
||||
warningColor: '#906616',
|
||||
},
|
||||
shadow: {
|
||||
popover:
|
||||
|
||||
@@ -24,7 +24,7 @@ export interface AffineTheme {
|
||||
hoverBackground: string;
|
||||
codeBackground: string;
|
||||
toolTipBackground: string;
|
||||
|
||||
warningBackground: string;
|
||||
// Use for the page`s text
|
||||
textColor: string;
|
||||
// Use for the editor`s text, because in edgeless mode text is different form other
|
||||
@@ -41,6 +41,7 @@ export interface AffineTheme {
|
||||
selectedColor: string;
|
||||
borderColor: string;
|
||||
disableColor: string;
|
||||
warningColor: string;
|
||||
};
|
||||
font: {
|
||||
xs: string; // tiny
|
||||
|
||||
Reference in New Issue
Block a user