utils: move to using the auto theme per default

make the new default theme the "auto" theme that uses media queries to
detect a users preferred theme.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
This commit is contained in:
Stefan Sterz 2023-03-14 15:01:57 +01:00 committed by Thomas Lamprecht
parent e8b405f770
commit a017567bd8

View File

@ -110,13 +110,13 @@ utilities: {
}, },
theme_map: { theme_map: {
auto: 'auto', crisp: 'Light theme',
"proxmox-dark": 'Proxmox Dark', "proxmox-dark": 'Proxmox Dark',
}, },
render_theme: function(value) { render_theme: function(value) {
if (!value || value === '__default__') { if (!value || value === '__default__') {
return Proxmox.Utils.defaultText + ' (Light theme)'; return Proxmox.Utils.defaultText + ' (auto)';
} }
let text = Proxmox.Utils.theme_map[value]; let text = Proxmox.Utils.theme_map[value];
if (text) { if (text) {