mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
21 lines
573 B
JavaScript
21 lines
573 B
JavaScript
const path = require('node:path');
|
|
|
|
const is = require('electron-is');
|
|
|
|
const { isEnabled } = require('../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,
|
|
} : {
|
|
customStylesheet: 'dark',
|
|
icon: iconPath,
|
|
};
|
|
|
|
module.exports = () => promptOptions;
|