Files
proxycast/electron/mainWindowOptions.ts
coso d3f25cbd24 chore: release 1.177.0
Land the TUI side-conversation snapshot pane and macOS default-microphone voice dictation, align remaining command coverage, and include the pending workspace changes for release validation.
2026-11-14 13:00:11 +08:00

33 lines
763 B
TypeScript

import type { BrowserWindowConstructorOptions } from "electron";
import process from "node:process";
export type MainWindowChromeOptions = Pick<
BrowserWindowConstructorOptions,
"titleBarStyle" | "trafficLightPosition"
>;
export type MainWindowStartupOptions = Pick<
BrowserWindowConstructorOptions,
"backgroundColor" | "show"
>;
export function buildMainWindowStartupOptions(): MainWindowStartupOptions {
return {
backgroundColor: "#fcfcfc",
show: false,
};
}
export function buildMainWindowChromeOptions(
platform: typeof process.platform = process.platform,
): MainWindowChromeOptions {
if (platform !== "darwin") {
return {};
}
return {
titleBarStyle: "hiddenInset",
trafficLightPosition: { x: 16, y: 15 },
};
}