From 41c51b8bdb9c8e9fa4a7d56f260d594739d4107e Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Mon, 30 Oct 2023 23:08:45 +0100 Subject: Updated 35 files and added 28 files (automated) --- desktop/.DS_Store | Bin 6148 -> 6148 bytes desktop/main.js | 15 ++++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'desktop') diff --git a/desktop/.DS_Store b/desktop/.DS_Store index 172599e..1d22160 100644 Binary files a/desktop/.DS_Store and b/desktop/.DS_Store differ 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: { -- cgit