feat: add adjustable window opacity for overlay use (#1304) (#1309)

Expose whole-window transparency via setOpacity with settings and a top-bar quick control, persisting across restarts and syncing across windows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
陈大猫
2026-06-08 15:57:25 +08:00
committed by GitHub
parent 42b58efc5c
commit 970037682c
23 changed files with 359 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ declare global {
interface NetcattyBridge {
setTheme?(theme: 'light' | 'dark' | 'system'): Promise<boolean>;
setBackgroundColor?(color: string): Promise<boolean>;
setWindowOpacity?(opacity: number): Promise<boolean>;
setLanguage?(language: string): Promise<boolean>;
// Window controls for custom title bar (Windows/Linux)
windowMinimize?(): Promise<void>;