Fix toggle function to return correct theme mode (#309)

This commit is contained in:
Abhinav Chalise authored and GitHub committed 2025-10-04 07:36:23 -04:00
1 parent 5ada12f989
commit 44d6f8f15c
1 file changed
+1 -1
+1 -1
View File
@@ -881,7 +881,7 @@ Singleton {
function toggle(): string {
root.toggleLightMode()
return root.isLightMode ? "light" : "dark"
return root.isLightMode ? "dark" : "light"
}
function light(): string {