收口 Makelore 客户端变更
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman committed 2026-08-12 22:43:09 +08:00
1 parent 253bad8b40
commit f4113a872f
232 files changed
+4617 -20121

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import type { BrowserWindowConstructorOptions } from 'electron';
type NativeWindowMaterialOptions = Pick<
BrowserWindowConstructorOptions,
'backgroundColor' | 'transparent' | 'vibrancy' | 'visualEffectState'
>;
/**
* Use the native macOS material only where Electron and the window manager
* support it. Other platforms keep the normal opaque window as a safe fallback.
*/
export function getNativeWindowMaterialOptions(
platform: NodeJS.Platform,
): NativeWindowMaterialOptions {
if (platform !== 'darwin') return {};
return {
backgroundColor: '#00000000',
transparent: true,
vibrancy: 'under-window',
visualEffectState: 'active',
};
}