MCPcopy Create free account
hub / github.com/zxlie/FeHelper / _shouldUseAutoDarkTheme

Function _shouldUseAutoDarkTheme

apps/json-format/content-script.js:1353–1361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1351 };
1352
1353 let _shouldUseAutoDarkTheme = () => {
1354 if (_isEnabledSetting(formatOptions.ALWAYS_DARK_MODE)) {
1355 return true;
1356 }
1357 if (!_isEnabledSetting(formatOptions.AUTO_DARK_MODE)) {
1358 return false;
1359 }
1360 return _prefersColorSchemeDark();
1361 };
1362
1363 let _getResolvedTheme = () => {
1364 let themeKey = String(formatOptions.JSON_FORMAT_THEME || 0);

Callers 1

_getResolvedThemeFunction · 0.85

Calls 2

_isEnabledSettingFunction · 0.85
_prefersColorSchemeDarkFunction · 0.85

Tested by

no test coverage detected