* create new windowing library * MARK: constructor
()
| 283 | * MARK: constructor |
| 284 | */ |
| 285 | constructor() { |
| 286 | this.loading = new loadingWindow(this, 'main') |
| 287 | serveIPC.loadWindow = this.loading |
| 288 | serveIPC.loadJSON = new loadingWindow(this, 'importjson') |
| 289 | |
| 290 | this.populateContextIcons() |
| 291 | |
| 292 | nativeTheme.on('updated', () => { |
| 293 | this.changeTheme() |
| 294 | this.populateContextIcons() |
| 295 | this.trayContextMenu() |
| 296 | |
| 297 | if ( this.#settings.get('color_theme') === 'system' ) { |
| 298 | this.themeUpdater() |
| 299 | } |
| 300 | }) |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * Get native image icon for context menus |
nothing calls this directly
no test coverage detected