mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-11-25 00:41:40 +08:00
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.
33 lines
763 B
TypeScript
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 },
|
|
};
|
|
}
|