mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
19 lines
487 B
TypeScript
19 lines
487 B
TypeScript
import { BrowserWindow, MenuItem } from 'electron';
|
|
|
|
import { LyricGeniusType, toggleRomanized } from './back';
|
|
|
|
import { setOptions } from '../../config/plugins';
|
|
|
|
module.exports = (win: BrowserWindow, options: LyricGeniusType) => [
|
|
{
|
|
label: 'Romanized Lyrics',
|
|
type: 'checkbox',
|
|
checked: options.romanizedLyrics,
|
|
click(item: MenuItem) {
|
|
options.romanizedLyrics = item.checked;
|
|
setOptions('lyrics-genius', options);
|
|
toggleRomanized();
|
|
},
|
|
},
|
|
];
|