Enhance theme toggle functionality and update styles; add light and dark SVG icons

This commit is contained in:
Will Miao
2025-02-05 18:45:21 +08:00
parent 210bc70481
commit 77ee93b385
5 changed files with 82 additions and 33 deletions

View File

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 A7 7 0 0 0 21 12.79z" fill="#e0e0e0" stroke="#e0e0e0"/>
</svg>

After

Width:  |  Height:  |  Size: 284 B

View File

@@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5" fill="#333333"/>
<line x1="12" y1="1" x2="12" y2="3" stroke="#333333"/>
<line x1="12" y1="21" x2="12" y2="23" stroke="#333333"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" stroke="#333333"/>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" stroke="#333333"/>
<line x1="1" y1="12" x2="3" y2="12" stroke="#333333"/>
<line x1="21" y1="12" x2="23" y2="12" stroke="#333333"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" stroke="#333333"/>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" stroke="#333333"/>
</svg>

After

Width:  |  Height:  |  Size: 746 B

View File

@@ -1,11 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5"/>
<path d="M12 1v2"/>
<path d="M12 21v2"/>
<path d="M4.22 4.22l1.42 1.42"/>
<path d="M18.36 18.36l1.42 1.42"/>
<path d="M1 12h2"/>
<path d="M21 12h2"/>
<path d="M4.22 19.78l1.42-1.42"/>
<path d="M18.36 5.64l1.42-1.42"/>
</svg>

Before

Width:  |  Height:  |  Size: 457 B