Spaces:
Sleeping
Sleeping
Update static/js/editor.js
Browse files- static/js/editor.js +9 -0
static/js/editor.js
CHANGED
|
@@ -555,6 +555,15 @@ function updateOverlayContent(currentTime) {
|
|
| 555 |
// 3. آپدیت رنگ ویژوالایزرها
|
| 556 |
const bars = tEl.querySelectorAll('.v-bar');
|
| 557 |
if(bars.length > 0) bars.forEach(b => b.style.backgroundColor = customBg);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 558 |
}
|
| 559 |
|
| 560 |
// 2. محاسبات ریسایز هوشمند
|
|
|
|
| 555 |
// 3. آپدیت رنگ ویژوالایزرها
|
| 556 |
const bars = tEl.querySelectorAll('.v-bar');
|
| 557 |
if(bars.length > 0) bars.forEach(b => b.style.backgroundColor = customBg);
|
| 558 |
+
|
| 559 |
+
// 4. آپدیت رنگ نوار پیشرفت (کد جدید)
|
| 560 |
+
const progBar = tEl.querySelector('.progress-border-background');
|
| 561 |
+
if(progBar) {
|
| 562 |
+
const progColor = bgColors['music_player_progress'] || '#d32f2f';
|
| 563 |
+
progBar.style.backgroundColor = progColor;
|
| 564 |
+
// آپدیت سایه برای زیبایی بیشتر
|
| 565 |
+
progBar.style.boxShadow = `0 0.1em 0.3em ${progColor}`;
|
| 566 |
+
}
|
| 567 |
}
|
| 568 |
|
| 569 |
// 2. محاسبات ریسایز هوشمند
|