mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-09 21:13:08 +00:00
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:
parent
e8b405f770
commit
a017567bd8
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user