redraw menu instead of new menu

master
kkayam 2025-02-12 12:20:07 +00:00
parent 942285a290
commit 0e64a4f5d6
2 changed files with 4 additions and 4 deletions

View File

@ -56,14 +56,14 @@
Object.keys(THEMES).forEach(themeName => { Object.keys(THEMES).forEach(themeName => {
menu[themeName] = () => { menu[themeName] = () => {
setTheme(themeName); setTheme(themeName);
E.showMenu(menu); menu_ui.draw();
}; };
}); });
menu['Randomize'] = () => { menu['Randomize'] = () => {
setTheme(createRandomTheme()); setTheme(createRandomTheme());
E.showMenu(menu); menu_ui.draw();
}; };
// Show the menu // Show the menu
E.showMenu(menu); let menu_ui = E.showMenu(menu);
} }

View File

@ -2,7 +2,7 @@
"id": "themes", "id": "themes",
"name": "Themes", "name": "Themes",
"shortName": "Themes", "shortName": "Themes",
"version": "0.08", "version": "0.09",
"description": "Color palettes at your disposal", "description": "Color palettes at your disposal",
"type": "app", "type": "app",
"tags": "tool", "tags": "tool",