fix(in-app-menu): overlay-scrollbar

This commit is contained in:
JellyBrick
2023-10-03 10:45:01 +09:00
parent 5a7774e7b1
commit 2cb05c9d86
5 changed files with 13 additions and 56 deletions

View File

@ -1,18 +1,8 @@
import path from 'node:path';
import is from 'electron-is';
import { isEnabled } from '../config/plugins';
const iconPath = path.join(__dirname, '..', 'assets', 'youtube-music-tray.png');
const customTitlebarPath = path.join(__dirname, 'prompt-custom-titlebar.js');
const promptOptions = !is.macOS() && isEnabled('in-app-menu') ? {
customStylesheet: 'dark',
// The following are used for custom titlebar
frame: false,
customScript: customTitlebarPath,
} : {
const promptOptions = {
customStylesheet: 'dark',
icon: iconPath,
};