mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-30 00:01:15 +00:00
Add other dark themes
This commit is contained in:
parent
367856bf76
commit
1b162211e1
1 changed files with 7 additions and 3 deletions
|
@ -4,9 +4,13 @@ import isDark from "./is-dark";
|
||||||
export default function dataBsTheme(user?: MyUserInfo) {
|
export default function dataBsTheme(user?: MyUserInfo) {
|
||||||
return (isDark() && user?.local_user_view.local_user.theme === "browser") ||
|
return (isDark() && user?.local_user_view.local_user.theme === "browser") ||
|
||||||
(user &&
|
(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"
|
? "dark"
|
||||||
: "light";
|
: "light";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue