proxy: switch to "auto" as the default theme

use the "auto" theme per default. it uses a media query to detect the
users preferred theme.

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

View File

@ -103,9 +103,9 @@ fn get_theme(headers: &http::HeaderMap) -> String {
};
match cookie_from_header(headers, "PBSThemeCookie") {
Some(theme) if theme == "auto" => theme,
Some(theme) if theme != "__default__" && exists(&theme) => theme,
_ => String::from(""),
Some(theme) if theme == "crisp" => String::from(""),
Some(theme) if exists(&theme) => theme,
_ => String::from("auto"),
}
}