snapshot of https://github.com/mountain-loop/yaak.git (main, 2026-09-23; blobs > 131072B omitted)
This commit is contained in:
9
crates-tauri/yaak-mac-window/index.ts
Normal file
9
crates-tauri/yaak-mac-window/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { platform } from "@yaakapp-internal/platform";
|
||||
|
||||
export function setWindowTitle(title: string) {
|
||||
platform.rpc("plugin:yaak-mac-window|set_title", { title }).catch(console.error);
|
||||
}
|
||||
|
||||
export function setWindowTheme(bgColor: string) {
|
||||
platform.rpc("plugin:yaak-mac-window|set_theme", { bgColor }).catch(console.error);
|
||||
}
|
||||
Reference in New Issue
Block a user