@iobroker/gui-components 10.0.9 → 10.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1342,13 +1342,13 @@ export class Utils {
1342
1342
  return window.vendorPrefix;
1343
1343
  }
1344
1344
  if (themeName === 'auto') {
1345
- return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
1345
+ return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'modernDark' : 'modernLight';
1346
1346
  }
1347
1347
  themeName ||= (window._localStorage || window.localStorage).getItem('App.themeName');
1348
1348
  if (themeName && themeName !== 'auto') {
1349
1349
  return themeName;
1350
1350
  }
1351
- return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
1351
+ return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'modernDark' : 'modernLight';
1352
1352
  }
1353
1353
  /**
1354
1354
  * Get the type of theme.