MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / applyCurrentTitleBarOverlay

Function applyCurrentTitleBarOverlay

apps/desktop/main/window-titlebar.ts:29–36  ·  view source on GitHub ↗
(win: BrowserWindow | null | undefined, isDark: boolean)

Source from the content-addressed store, hash-verified

27}
28
29export 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
38export function applyTitleBarOverlayColor(win: BrowserWindow | null | undefined, color: string): void {
39 currentTitleBarOverlayColor = color

Callers 3

createWindowMethod · 0.90
registerWindowHandlersFunction · 0.90

Calls 2

Tested by

no test coverage detected