mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
添加css主题变量
This commit is contained in:
1 parent
4c28b38825
commit
6f34ea0da0
6 files changed
+9
-6
No files matched your search
@@ -2,6 +2,7 @@ import { errorHandle } from './utils';
|
||||
|
||||
export default class Template {
|
||||
constructor(art) {
|
||||
this.art = art;
|
||||
if (art.option.container instanceof Element) {
|
||||
this.$container = art.option.container;
|
||||
} else {
|
||||
@@ -22,7 +23,7 @@ export default class Template {
|
||||
|
||||
initDesktop() {
|
||||
this.$container.innerHTML = `
|
||||
<div class="artplayer-video-player">
|
||||
<div class="artplayer-video-player" style="--theme: ${this.art.option.theme}">
|
||||
<video class="artplayer-video"></video>
|
||||
<div class="artplayer-subtitle"></div>
|
||||
<div class="artplayer-danmuku"></div>
|
||||
|
||||
Reference in new issue
Block a user