Fix taiji fish eyes and expose theme toggle on mobile.

Correct yin-yang eye colors with contrast strokes, and show light/dark switch in mobile header with Chinese labels.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-11 00:11:08 +08:00
parent 18dd2e3501
commit e71baad554
3 changed files with 49 additions and 19 deletions
+15 -9
View File
@@ -17,22 +17,28 @@ export function ModeToggle() {
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="sm" className="hidden sm:block">
<Sun size={22} strokeWidth={1.5} className="dark:hidden" />
<MoonStar size={22} strokeWidth={1.5} className="hidden dark:block" />
<Button
variant="ghost"
size="icon"
className="h-9 w-9 shrink-0"
aria-label="切换亮色 / 暗色"
>
<Sun size={20} strokeWidth={1.5} className="dark:hidden" />
<MoonStar size={20} strokeWidth={1.5} className="hidden dark:block" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start">
<DropdownMenuContent align="end">
<DropdownMenuItem onClick={() => setTheme("light")}>
<Sun size={20} strokeWidth={1.5} className="mr-2" />
Light
<Sun size={18} strokeWidth={1.5} className="mr-2" />
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setTheme("dark")}>
<MoonStar size={20} strokeWidth={1.5} className="mr-2" />
Dark
<MoonStar size={18} strokeWidth={1.5} className="mr-2" />
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setTheme("system")}>
<Laptop2 size={20} strokeWidth={1.5} className="mr-2" /> System
<Laptop2 size={18} strokeWidth={1.5} className="mr-2" />
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>