mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-22 19:34:03 +02:00
10 lines
329 B
TypeScript
10 lines
329 B
TypeScript
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);
|
|
}
|