add icon management
This commit is contained in:
parent
2aa5a00559
commit
a549cbe76a
1 changed files with 15 additions and 0 deletions
15
scripts/external/entries/icons.js
vendored
Normal file
15
scripts/external/entries/icons.js
vendored
Normal 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};
|
Loading…
Add table
Add a link
Reference in a new issue