Files
electronTs-ks-demo/src/core/interactive/Touchbar.interactive.ts
2024-09-27 01:23:51 +08:00

11 lines
371 B
TypeScript

import { app, BrowserWindow, TouchBar, dialog, shell } from "electron";
import Windows from "@/core/model/Windows.model";
import Config from "@config/Index.config";
const { TouchBarLabel, TouchBarButton,TouchBarSpacer } = TouchBar;
export class Touchbar {
constructor() {
Windows.CurrentBrowserWindow.setTouchBar(new TouchBar(Config.TouchBarConfig))
}
}