Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cifertech/DisplayKit
/ toggleTheme
Function
toggleTheme
app.js:1126–1130 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1124
}
1125
1126
function
toggleTheme() {
1127
const
currentTheme = getTheme();
1128
const
newTheme = currentTheme ===
"dark"
?
"light"
:
"dark"
;
1129
setTheme(newTheme);
1130
}
1131
1132
1133
const
savedTheme = getTheme();
Callers
nothing calls this directly
Calls
2
getTheme
Function · 0.85
setTheme
Function · 0.85
Tested by
no test coverage detected