Add other dark themes

This commit is contained in:
SleeplessOne1917 2023-07-04 12:02:51 -04:00
parent 367856bf76
commit 1b162211e1

View file

@ -4,9 +4,13 @@ import isDark from "./is-dark";
export default function dataBsTheme(user?: MyUserInfo) {
return (isDark() && user?.local_user_view.local_user.theme === "browser") ||
(user &&
["darkly", "darkly-red", "darkly-pureblack"].includes(
user.local_user_view.local_user.theme
))
[
"darkly",
"darkly-red",
"darkly-pureblack",
"darkly-compact",
"i386",
].includes(user.local_user_view.local_user.theme))
? "dark"
: "light";
}