Add frame to macOS native window bar

This commit is contained in:
jeffvli 2023-08-09 21:07:27 -07:00
parent 96ace40fc3
commit 3c278d5e17

View file

@ -11,11 +11,6 @@
import { access, constants, readFile, writeFile } from 'fs'; import { access, constants, readFile, writeFile } from 'fs';
import path, { join } from 'path'; import path, { join } from 'path';
import { deflate, inflate } from 'zlib'; import { deflate, inflate } from 'zlib';
import electronLocalShortcut from 'electron-localshortcut';
import log from 'electron-log';
import { autoUpdater } from 'electron-updater';
import uniq from 'lodash/uniq';
import MpvAPI from 'node-mpv';
import { import {
app, app,
BrowserWindow, BrowserWindow,
@ -27,6 +22,11 @@ import {
nativeImage, nativeImage,
BrowserWindowConstructorOptions, BrowserWindowConstructorOptions,
} from 'electron'; } from 'electron';
import electronLocalShortcut from 'electron-localshortcut';
import log from 'electron-log';
import { autoUpdater } from 'electron-updater';
import uniq from 'lodash/uniq';
import MpvAPI from 'node-mpv';
import { disableMediaKeys, enableMediaKeys } from './features/core/player/media-keys'; import { disableMediaKeys, enableMediaKeys } from './features/core/player/media-keys';
import { store } from './features/core/settings/index'; import { store } from './features/core/settings/index';
import MenuBuilder from './menu'; import MenuBuilder from './menu';
@ -198,7 +198,7 @@ const createWindow = async () => {
}, },
macOS: { macOS: {
autoHideMenuBar: true, autoHideMenuBar: true,
frame: false, frame: true,
titleBarStyle: 'hidden', titleBarStyle: 'hidden',
trafficLightPosition: { x: 10, y: 10 }, trafficLightPosition: { x: 10, y: 10 },
}, },