tweak: adjust light/dark theme toggle (#5007)

This commit is contained in:
Jason Cheatham 2025-12-02 22:03:24 -07:00 committed by GitHub
parent 6c25e64658
commit 66e4a5a64e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -313,10 +313,11 @@ function App() {
category: "System",
},
{
title: `Switch to ${mode() === "dark" ? "light" : "dark"} mode`,
title: "Toggle appearance",
value: "theme.switch_mode",
onSelect: () => {
onSelect: (dialog) => {
setMode(mode() === "dark" ? "light" : "dark")
dialog.clear()
},
category: "System",
},