From a549cbe76aa4884ed12285560fa0d03c9fa8ff50 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:22:49 +0800 Subject: [PATCH] add icon management --- scripts/external/entries/icons.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/external/entries/icons.js diff --git a/scripts/external/entries/icons.js b/scripts/external/entries/icons.js new file mode 100644 index 0000000..bea2646 --- /dev/null +++ b/scripts/external/entries/icons.js @@ -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}; \ No newline at end of file