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

Function getTitleBarOverlayOptionsForColor

apps/desktop/main/window-titlebar.ts:21–27  ·  view source on GitHub ↗
(color: string)

Source from the content-addressed store, hash-verified

19}
20
21export function getTitleBarOverlayOptionsForColor(color: string): TitleBarOverlayOptions {
22 return {
23 color: TITLE_BAR_OVERLAY_COLOR,
24 symbolColor: getReadableSymbolColor(color),
25 height: TITLE_BAR_OVERLAY_HEIGHT,
26 }
27}
28
29export function applyCurrentTitleBarOverlay(win: BrowserWindow | null | undefined, isDark: boolean): void {
30 if (currentTitleBarOverlayColor) {

Callers 3

Calls 1

getReadableSymbolColorFunction · 0.85

Tested by

no test coverage detected