mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 19:46:16 -08:00
feat(electron-backend): enable macOS title bar overlay for main window
Add macOS-specific title bar settings to the Electron main window creation so the app uses a hidden title bar with an overlay on Darwin. This ensures a more native, modern appearance on macOS while keeping existing minimum size and saved bounds behavior unchanged.
This commit is contained in:
1 parent
aa2d5b9508
commit
3b97fec939
1 file changed
+6
@@ -79,6 +79,12 @@ export default class App {
|
||||
...savedWindowBounds,
|
||||
minHeight: 600,
|
||||
minWidth: 900,
|
||||
...(process.platform === 'darwin'
|
||||
? {
|
||||
titleBarStyle: 'hidden',
|
||||
titleBarOverlay: true,
|
||||
}
|
||||
: {}),
|
||||
});
|
||||
App.mainWindow.setMenu(null);
|
||||
if (!savedWindowBounds) {
|
||||
|
||||
Reference in new issue
Block a user