mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 21:22:05 +00:00
20
providers/prompt-options.ts
Normal file
20
providers/prompt-options.ts
Normal file
@ -0,0 +1,20 @@
|
||||
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,
|
||||
} : {
|
||||
customStylesheet: 'dark',
|
||||
icon: iconPath,
|
||||
};
|
||||
|
||||
export default () => promptOptions;
|
||||
Reference in New Issue
Block a user