This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
appcat
/
sonist
Archived
1
0
Fork 0
sonist/js/desktop-lrc.js

40 lines
609 B
JavaScript

/**
* {桌面歌词}
* @author yutent<yutent@doui.cc>
* @date 2019/01/17 19:35:29
*/
'use strict'
import '/lib/anot.next.js'
const { remote } = require('electron')
const WIN = remote.getCurrentWindow()
Anot({
$id: 'lrc',
state: {
lrc: {
l: { bg: '#fff', txt: '暂无歌词...' },
r: { bg: '', txt: '' }
},
isLock: false
},
mounted() {
WIN.on('ktv-lrc', lrc => {
this.lrc = lrc
})
},
methods: {
quit(force) {
// WIN.close()
WIN.hide()
},
lock() {
WIN.setMovable(this.isLock)
this.isLock = !this.isLock
}
}
})
一个音乐播放器, 主打本地音乐播放。支持 自动歌词/自动封面/均衡器等常见功能。
JavaScript 60.1%
SCSS 19.2%
HTML 16.9%
CSS 3.8%