diff --git a/src/components/layout/top-bar.tsx b/src/components/layout/top-bar.tsx index ec2c036..24952da 100644 --- a/src/components/layout/top-bar.tsx +++ b/src/components/layout/top-bar.tsx @@ -13,7 +13,6 @@ import { User, UserCircle, LifeBuoy, - Monitor, } from "lucide-react"; import { Button } from "@/components/ui/button"; @@ -25,10 +24,6 @@ import { DropdownMenuItem, DropdownMenuSeparator, DropdownMenuLabel, - DropdownMenuGroup, - DropdownMenuSub, - DropdownMenuSubTrigger, - DropdownMenuSubContent, } from "@/components/ui/dropdown-menu"; import { Tooltip, @@ -45,6 +40,15 @@ export function TopBar() { window.dispatchEvent(new CustomEvent("open-upload-modal")); }; + const cycleTheme = () => { + if (theme === "light") setTheme("dark"); + else if (theme === "dark") setTheme("system"); + else setTheme("light"); + }; + + const themeLabel = + theme === "dark" ? "Dark" : theme === "light" ? "Light" : "System"; + return (
@@ -139,49 +143,26 @@ export function TopBar() { - - }> - - Profile - - }> - - Settings - - + }> + + Profile + + }> + + Settings + - - window.open("mailto:support@echoocr.app", "_blank")} - > - - Support - - - - - - Theme - - - setTheme("light")}> - - Light - {theme === "light" && } - - setTheme("dark")}> - - Dark - {theme === "dark" && } - - setTheme("system")}> - - System - {theme === "system" && } - - - - + window.open("mailto:support@echoocr.app", "_blank")} + > + + Support + + + + + Theme: {themeLabel} +