forked from darkreader/darkreader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaults.ts
60 lines (57 loc) · 1.57 KB
/
defaults.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import type {Theme, UserSettings} from './definitions';
import ThemeEngines from './generators/theme-engines';
import {isMacOS, isWindows} from './utils/platform';
export const DEFAULT_COLORS = {
darkScheme: {
background: '#181a1b',
text: '#e8e6e3',
},
lightScheme: {
background: '#dcdad7',
text: '#181a1b',
},
};
export const DEFAULT_THEME: Theme = {
mode: 1,
brightness: 100,
contrast: 100,
grayscale: 0,
sepia: 0,
useFont: false,
fontFamily: isMacOS ? 'Helvetica Neue' : isWindows ? 'Segoe UI' : 'Open Sans',
textStroke: 0,
engine: ThemeEngines.dynamicTheme,
stylesheet: '',
darkSchemeBackgroundColor: DEFAULT_COLORS.darkScheme.background,
darkSchemeTextColor: DEFAULT_COLORS.darkScheme.text,
lightSchemeBackgroundColor: DEFAULT_COLORS.lightScheme.background,
lightSchemeTextColor: DEFAULT_COLORS.lightScheme.text,
scrollbarColor: isMacOS ? '' : 'auto',
selectionColor: 'auto',
styleSystemControls: true,
};
export const DEFAULT_SETTINGS: UserSettings = {
enabled: true,
theme: DEFAULT_THEME,
presets: [],
customThemes: [],
siteList: [],
siteListEnabled: [],
applyToListedOnly: false,
changeBrowserTheme: false,
notifyOfNews: false,
syncSettings: true,
syncSitesFixes: false,
automation: '',
time: {
activation: '18:00',
deactivation: '9:00',
},
location: {
latitude: null,
longitude: null,
},
previewNewDesign: false,
enableForPDF: true,
enableForProtectedPages: false,
};