MCPcopy 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
1126function toggleTheme() {
1127 const currentTheme = getTheme();
1128 const newTheme = currentTheme === "dark" ? "light" : "dark";
1129 setTheme(newTheme);
1130}
1131
1132
1133const savedTheme = getTheme();

Callers

nothing calls this directly

Calls 2

getThemeFunction · 0.85
setThemeFunction · 0.85

Tested by

no test coverage detected