add theme

This commit is contained in:
Harvey Zack committed 2018-10-16 13:15:54 +08:00
1 parent ca0c67499b
commit e8e8f7e8e7
9 files changed
+66 -12

No files matched your search

+13 -1
View File
@@ -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() {