1 | import env from './core/env.js';
|
2 | var dpr = 1;
|
3 | if (env.hasGlobalWindow) {
|
4 | dpr = Math.max(window.devicePixelRatio
|
5 | || (window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI)
|
6 | || 1, 1);
|
7 | }
|
8 | export var debugMode = 0;
|
9 | export var devicePixelRatio = dpr;
|
10 | export var DARK_MODE_THRESHOLD = 0.4;
|
11 | export var DARK_LABEL_COLOR = '#333';
|
12 | export var LIGHT_LABEL_COLOR = '#ccc';
|
13 | export var LIGHTER_LABEL_COLOR = '#eee';
|