(win: BrowserWindow | null | undefined, isDark: boolean)
| 27 | } |
| 28 | |
| 29 | export function applyCurrentTitleBarOverlay(win: BrowserWindow | null | undefined, isDark: boolean): void { |
| 30 | if (currentTitleBarOverlayColor) { |
| 31 | win?.setTitleBarOverlay(getTitleBarOverlayOptionsForColor(currentTitleBarOverlayColor)) |
| 32 | return |
| 33 | } |
| 34 | |
| 35 | win?.setTitleBarOverlay(getTitleBarOverlayOptions(isDark)) |
| 36 | } |
| 37 | |
| 38 | export function applyTitleBarOverlayColor(win: BrowserWindow | null | undefined, color: string): void { |
| 39 | currentTitleBarOverlayColor = color |
no test coverage detected