mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 08:26:16 -08:00
13 lines
258 B
JavaScript
13 lines
258 B
JavaScript
import { def } from '../utils';
|
|
|
|
export default function themeMix(art) {
|
|
def(art, 'theme', {
|
|
get() {
|
|
return art.cssVar('--art-theme');
|
|
},
|
|
set(theme) {
|
|
art.cssVar('--art-theme', theme);
|
|
},
|
|
});
|
|
}
|