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 path, { join } from 'path';
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 {
app,
BrowserWindow,
@ -27,6 +22,11 @@ import {
nativeImage,
BrowserWindowConstructorOptions,
} 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 { store } from './features/core/settings/index';
import MenuBuilder from './menu';
@ -198,7 +198,7 @@ const createWindow = async () => {
},
macOS: {
autoHideMenuBar: true,
frame: false,
frame: true,
titleBarStyle: 'hidden',
trafficLightPosition: { x: 10, y: 10 },
},