add icon management

This commit is contained in:
buzz-lightsnack-2007 2024-04-24 16:22:49 +08:00
parent 2aa5a00559
commit a549cbe76a

15
scripts/external/entries/icons.js vendored Normal file
View file

@ -0,0 +1,15 @@
import BrowserIcon from '/scripts/GUI/browser.icon.js';
import Image from '/scripts/strings/image.js';
class IconIndicator {
static async enable() {
// WIP. Make sure to determine if the product is bad / good
BrowserIcon.set(await Image.get('default'));
}
static async disable() {
BrowserIcon.set(await Image.get('disabled'));
}
}
export {IconIndicator as default};