* update window theme
()
| 638 | * update window theme |
| 639 | */ |
| 640 | themeUpdater() { |
| 641 | for ( const thisWinKey in this.win ) { |
| 642 | if ( this.isVisible(thisWinKey) ) { |
| 643 | this.sendToWindow(thisWinKey, 'win:updateTheme', this.#themeCurrentColor) |
| 644 | this.win[thisWinKey].setTitleBarOverlay({ |
| 645 | color : this.#themeColors[this.#themeCurrentColor].background, |
| 646 | symbolColor : this.#themeColors[this.#themeCurrentColor].font, |
| 647 | }) |
| 648 | } |
| 649 | } |
| 650 | this.multiWin = this.multiWin.filter((x) => !x.isDestroyed()) |
| 651 | for ( const displayWin of this.multiWin ) { |
| 652 | displayWin.webContents.send('win:updateTheme') |
| 653 | displayWin.setTitleBarOverlay({ |
| 654 | color : this.#themeColors[this.#themeCurrentColor].background, |
| 655 | symbolColor : this.#themeColors[this.#themeCurrentColor].font, |
| 656 | }) |
| 657 | } |
| 658 | } |
| 659 | // #endregion |
| 660 | |
| 661 | // #region size & position |
no test coverage detected