Customize title bar (#1184)

* add basic title bar

* add title bar actions

* fix layout

* update title bar

* update layout

* fix title bar for macOS

* UI

* setup menu for macOS

* fix title bar logo
This commit is contained in:
an-lee
2024-11-17 16:02:17 +08:00
committed by GitHub
parent b8167a99d8
commit 8bebf2072c
27 changed files with 771 additions and 277 deletions

View File

@@ -17,8 +17,21 @@ type EnjoyAppType = {
version: string;
};
window: {
onResize: (callback: (event, bounds: any) => void) => void;
removeListeners: () => void;
onChange: (
callback: (event, state: { event: string; state: any }) => void
) => void;
toggleMaximized: () => Promise<void>;
isMaximized: () => Promise<boolean>;
maximize: () => Promise<void>;
unmaximize: () => Promise<void>;
fullscreen: () => Promise<void>;
unfullscreen: () => Promise<void>;
minimize: () => Promise<void>;
close: () => Promise<void>;
removeListener: (
listener: (event: IpcRendererEvent, ...args: any[]) => void
) => void;
removeAllListeners: () => void;
};
system: {
preferences: {