mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 09:36:16 -08:00
separate variable constants
This commit is contained in:
1 parent
57a14f63ac
commit
fc3abd7d1d
20 files changed
+143
-80
No files matched your search
@@ -41,10 +41,10 @@ export default function progress(options) {
|
||||
|
||||
setStyle($played, 'backgroundColor', 'var(--theme)');
|
||||
|
||||
let indicatorSize = 14;
|
||||
let indicatorSize = art.constructor.INDICATOR_SIZE;
|
||||
|
||||
if (icons.indicator) {
|
||||
indicatorSize = 16;
|
||||
indicatorSize = art.constructor.INDICATOR_SIZE_ICON;
|
||||
append($indicator, icons.indicator);
|
||||
} else {
|
||||
setStyles($indicator, {
|
||||
@@ -53,7 +53,10 @@ export default function progress(options) {
|
||||
}
|
||||
|
||||
if (isMobile) {
|
||||
indicatorSize = 20;
|
||||
indicatorSize = art.constructor.INDICATOR_SIZE_MOBILE;
|
||||
if (icons.indicator) {
|
||||
indicatorSize = art.constructor.INDICATOR_SIZE_MOBILE_ICON;
|
||||
}
|
||||
}
|
||||
|
||||
setStyles($indicator, {
|
||||
|
||||
Reference in new issue
Block a user