feat: add browser detect warning

This commit is contained in:
QiShaoXuan
2022-10-31 11:52:21 +08:00
parent 3d7c075f30
commit 1bf6546144
6 changed files with 124 additions and 20 deletions
+4
View File
@@ -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:
+2 -1
View File
@@ -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