big theme refactoring has begun

This commit is contained in:
2023-12-15 21:00:39 +01:00
parent 94c1574d96
commit 278ab026cd
4 changed files with 56 additions and 83 deletions

View File

@ -2278,8 +2278,9 @@ export class UserAPI {
console.log("Changing color scheme for: ", color_scheme)
}
public randomTheme = (): string => {
public randomTheme = (): void => {
let theme_names = Object.keys(colorschemes);
return theme_names[Math.floor(Math.random() * theme_names.length)];
let selected_theme = theme_names[Math.floor(Math.random() * theme_names.length)];
this.app.readTheme(selected_theme);
}
}