feat(webui): smooth theme changes and sun-moon transitions (#6450)
* feat(webui): smooth theme changes and sun-moon transitions * test(webui): respect theme cooldown in diagram checks
This commit is contained in:
1 parent
4f7c4f0885
commit
3ede000ad4
12 files changed
+305
-17
No files matched your search
@@ -1,7 +1,8 @@
|
||||
import {
|
||||
TemporaryChatIcon,
|
||||
} from "@/components/icons/product-icons";
|
||||
import { Menu, Moon, Sun } from "lucide-react";
|
||||
import { Menu } from "lucide-react";
|
||||
import { ThemeToggleIcon } from "@/components/icons/ThemeToggleIcon";
|
||||
import { type ReactNode } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
@@ -195,11 +196,7 @@ function ThemeButton({
|
||||
className,
|
||||
)}
|
||||
>
|
||||
{theme === "dark" ? (
|
||||
<Sun className="h-4 w-4" />
|
||||
) : (
|
||||
<Moon className="h-4 w-4" />
|
||||
)}
|
||||
<ThemeToggleIcon theme={theme} />
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user