blob: b5514d23b853c617e57d0f25fe61eccfb18302bf (
plain) (
tree)
|
|
/// <reference path="getTheme.ts" />
/// <reference path="setTheme.ts" />
function toggleTheme() {
let theme = getTheme();
if (theme == Theme.Light) {
theme = Theme.Dark;
} else if (Theme.Dark) {
theme = Theme.Light;
}
setTheme(theme);
}
|