mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
20 lines
540 B
TypeScript
20 lines
540 B
TypeScript
import { BrowserWindow, MenuItem } from 'electron';
|
|
|
|
import { LyricGeniusType, toggleRomanized } from './back';
|
|
|
|
import { setOptions } from '../../config/plugins';
|
|
import { MenuTemplate } from '../../menu';
|
|
|
|
export default (_: BrowserWindow, options: LyricGeniusType): MenuTemplate => [
|
|
{
|
|
label: 'Romanized Lyrics',
|
|
type: 'checkbox',
|
|
checked: options.romanizedLyrics,
|
|
click(item: MenuItem) {
|
|
options.romanizedLyrics = item.checked;
|
|
setOptions('lyrics-genius', options);
|
|
toggleRomanized();
|
|
},
|
|
},
|
|
];
|