feat: get editor icons and their colors from snjs (#828)

* feat: get editor icons and their colors from snjs

* feat: get icons and their tints from snjs

* fix: use IconType from snjs
This commit is contained in:
Vardan Hakobyan
2022-01-31 18:58:36 +04:00
committed by GitHub
parent e890e22630
commit bf382ce0f8
21 changed files with 126 additions and 104 deletions

View File

@@ -15,6 +15,7 @@ import {
SNApplication,
NoteGroupController,
removeFromArray,
IconsController,
} from '@standardnotes/snjs';
type WebServices = {
@@ -39,6 +40,7 @@ export class WebApplication extends SNApplication {
private webServices!: WebServices;
public noteControllerGroup: NoteGroupController;
private webEventObservers: WebEventObserver[] = [];
public iconsController: IconsController;
constructor(
deviceInterface: WebDeviceInterface,
@@ -64,6 +66,7 @@ export class WebApplication extends SNApplication {
);
deviceInterface.setApplication(this);
this.noteControllerGroup = new NoteGroupController(this);
this.iconsController = new IconsController();
}
/** @override */
@@ -76,6 +79,7 @@ export class WebApplication extends SNApplication {
}
this.webServices = {} as WebServices;
this.noteControllerGroup.deinit();
this.iconsController.deinit();
this.webEventObservers.length = 0;
/**
* Allow any pending renders to complete before destroying the global