mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 15:51:14 +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) {
|
||||
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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue