-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
81 lines (75 loc) · 3.18 KB
/
constants.js
File metadata and controls
81 lines (75 loc) · 3.18 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
"use strict";
import { supportsThemeAPI } from "./utility.js";
export const addonVersion = [3, 3, 2];
export const default_homeBackground_light = "#ffffff";
export const default_homeBackground_dark = "#2b2a33";
export const default_fallbackcolor_light = "#ffffff";
export const default_fallbackcolor_dark = "#2b2a33";
export const default_compatibilityMode = !supportsThemeAPI();
export const aboutPagecolor = Object.freeze({
checkerboard: { light: "DEFAULT", dark: undefined },
deleteprofile: { light: "DEFAULT", dark: "#2b2a33" },
"devtools-toolbox": { light: "DEFAULT", dark: "#0c0c0d" },
editprofile: { light: "DEFAULT", dark: "#2b2a33" },
firefoxview: { light: "HOME", dark: "HOME" },
home: { light: "HOME", dark: "HOME" },
logo: { light: undefined, dark: "IMAGEVIEWER" },
mozilla: { light: undefined, dark: "#800000" },
newtab: { light: "HOME", dark: "HOME" },
newprofile: { light: "DEFAULT", dark: "#2b2a33" },
performance: { light: "DEFAULT", dark: "#23222a" },
plugins: { light: "DEFAULT", dark: "#2b2a33" },
privatebrowsing: { light: undefined, dark: "#25003e" },
processes: { light: "#eeeeee", dark: "#32313a" },
"sync-log": { light: "#ececec", dark: "#282828" },
});
export const mozillaPagecolor = Object.freeze({
"accounts-static.cdn.mozilla.net": { light: "DEFAULT", dark: "DEFAULT" },
"accounts.firefox.com": { light: "#fafafd", dark: undefined },
"addons.cdn.mozilla.net": { light: "DEFAULT", dark: "DEFAULT" },
"addons.mozilla.org": { light: undefined, dark: "#20123a" },
"content.cdn.mozilla.net": { light: "DEFAULT", dark: "DEFAULT" },
"discovery.addons.mozilla.org": { light: "#ececec", dark: undefined },
"install.mozilla.org": { light: "DEFAULT", dark: "DEFAULT" },
"support.mozilla.org": { light: "#ffffff", dark: undefined },
});
export const recommendedAddonPagecolor = Object.freeze({
"addon@darkreader.org": "#141e24", // Dark Reader
"adguardadblocker@adguard.com": "#1f1f1f", // AdGuard AdBlocker
"deArrow@ajay.app": "#333333", // DeArrow
"enhancerforyoutube@maximerf.addons.mozilla.org": "#292a2d", // Enhancer for YouTube™
"languagetool-webextension@languagetool.org": "#111213", // LanguageTool
"sponsorBlocker@ajay.app": "#333333", // SponsorBlock for YouTube
"uBlock0@raymondhill.net": "#1b1b24", // uBlock Origin
"{036a55b4-5e72-4d05-a06c-cba2dfcc134a}": "#171a1b", // Translate Web Pages
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}": "#242424", // Stylus
"{aecec67f-0d10-4fa7-b7c7-609a2db280cf}": "#262626", // Violentmonkey
"{ce9f4b1f-24b8-4e9a-9051-b9e472b1b2f2}": "#1c1b1f", // Clear Browsing Data
});
export const defaultPreference = Object.freeze({
tabbar: 0,
tabbarBorder: 0,
tabSelected: 10,
tabSelectedBorder: 0,
toolbar: 0,
toolbarBorder: 0,
toolbarField: 5,
toolbarFieldBorder: 5,
toolbarFieldOnFocus: 5,
sidebar: 5,
sidebarBorder: 5,
popup: 5,
popupBorder: 5,
minContrast_light: 90,
minContrast_dark: 45,
allowDarkLight: true,
dynamic: true,
noThemecolor: true,
compatibilityMode: default_compatibilityMode,
homeBackground_light: default_homeBackground_light,
homeBackground_dark: default_homeBackground_dark,
fallbackcolor_light: default_fallbackcolor_light,
fallbackcolor_dark: default_fallbackcolor_dark,
siteList: {},
version: addonVersion,
});