mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
add theme
This commit is contained in:
1 parent
ca0c67499b
commit
e8e8f7e8e7
9 files changed
+66
-12
No files matched your search
+13
-1
@@ -7,7 +7,19 @@ export default class Mask {
|
||||
}
|
||||
|
||||
init() {
|
||||
this.art.refs.$mask.appendChild(Icons.play);
|
||||
const {
|
||||
option,
|
||||
refs,
|
||||
events: { proxy }
|
||||
} = this.art;
|
||||
|
||||
Icons.play.style.backgroundColor = option.theme;
|
||||
refs.$mask.appendChild(Icons.play);
|
||||
|
||||
proxy(refs.$mask, 'click', () => {
|
||||
refs.$video.play();
|
||||
this.hide();
|
||||
});
|
||||
}
|
||||
|
||||
show() {
|
||||
|
||||
Reference in new issue
Block a user