diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-10-30 23:08:45 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-10-30 23:08:45 +0100 |
commit | 41c51b8bdb9c8e9fa4a7d56f260d594739d4107e (patch) | |
tree | 4bb3e824d636c7cf8cb39fd0e1aa25c49c339164 /desktop/main.js | |
parent | 4d4308c46d4f7801c657cc79d2243e1a81831334 (diff) | |
download | mist-41c51b8bdb9c8e9fa4a7d56f260d594739d4107e.tar.gz mist-41c51b8bdb9c8e9fa4a7d56f260d594739d4107e.tar.bz2 mist-41c51b8bdb9c8e9fa4a7d56f260d594739d4107e.zip |
Updated 35 files and added 28 files (automated)
Diffstat (limited to 'desktop/main.js')
-rw-r--r-- | desktop/main.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/desktop/main.js b/desktop/main.js index 509bd06..1d0b322 100644 --- a/desktop/main.js +++ b/desktop/main.js @@ -1,4 +1,4 @@ -const { app, BrowserWindow, shell, ipcMain, session, Notification, nativeImage, Menu } = require('electron'); +const { app, BrowserWindow, shell, ipcMain, session, Notification, nativeImage, Menu, nativeTheme } = require('electron'); const path = require('node:path'); const http = require('http'); const {Client} = require("@xhayper/discord-rpc"); @@ -82,7 +82,6 @@ function updateMenu(mainWindow) { submenu: [ { label: "Play/Pause", - accelerator: "Space", click: () => { mainWindow.webContents.executeJavaScript("window.playPause();"); } @@ -255,18 +254,20 @@ const createWindow = () => { height: 720, minWidth: 864, minHeight: 550, - frame: process.platform === "darwin" || process.platform === "win32", + frame: process.platform === "darwin", titleBarStyle: "hidden", - titleBarOverlay: true, + titleBarOverlay: { + color: nativeTheme.shouldUseDarkColors ? "#222222" : "#ffffff", + symbolColor: nativeTheme.shouldUseDarkColors ? "#ffffff" : "#222222", + height: 64 + }, autoHideMenuBar: true, trafficLightPosition: { x: 20, y: 20 }, - //vibrancy: "hud", vibrancy: "under-window", - transparent: process.platform === "darwin" || process.platform === "win32", - backgroundMaterial: "mica", + transparent: process.platform === "darwin", title: "Mist", type: "textured", webPreferences: { |