feat. OSD Lyrics | 增加桌面歌词功能 (#685)

* Add OSD Lyrics

* tidy files

* fix OSDLyrics: last line of lyrics not showing, performance

* tidy files

* make user can resize the lyrics window

* Fix bug of initial window size

* Fix: 1. auto resize osdlyrics window after packaging; 2. lyric parser problem with %;

* tidy files
This commit is contained in:
Shi Liang 2021-05-21 17:15:30 +08:00 committed by GitHub
parent d464e30d83
commit 85592142af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 405 additions and 5 deletions

View file

@ -4,7 +4,7 @@ const { app, Menu } = require('electron');
const isMac = process.platform === 'darwin';
export function createMenu(win) {
export function createMenu(win, lrc) {
let menu = null;
const template = [
...(isMac
@ -181,6 +181,7 @@ export function createMenu(win) {
accelerator: 'F12',
click: () => {
win.webContents.openDevTools();
lrc.openDevTools();
},
},
],