Исправление индикации

This commit is contained in:
Maxim
2026-06-22 11:54:14 +03:00
parent 827210d29a
commit eab9e17212
2 changed files with 14 additions and 19 deletions

View File

@@ -214,12 +214,16 @@
font-family: var(--font-tech);
}
.channel-value {
font-size: var(--font-size-base);
font-size: var(--font-size-lg);
font-weight: var(--font-weight-bold);
color: #00ff88;
color: #ffffff;
font-family: var(--font-tech);
min-width: 24px;
min-width: 32px;
text-align: right;
letter-spacing: 0.05em;
padding: 2px 8px;
border-radius: 4px;
transition: all 0.2s ease;
}
.channel-toggle {
color: #666;
@@ -244,13 +248,13 @@
}
.channel-progress .progress {
flex: 1;
height: 12px;
padding: 2px;
background: #222;
border: 2px solid #444;
height: 24px;
padding: 3px;
background: #2f2f2f;
border: 2px solid #555;
border-radius: 4px;
overflow: hidden;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}
/* ===== ЯРКИЙ КОНТРАСТНЫЙ ПРОГРЕСС-БАР ===== */
@@ -262,14 +266,14 @@
width: 0%;
box-shadow:
inset 0 1px 2px rgba(255,255,255,0.3),
0 0 10px rgba(230,133,45,0.5);
0 0 15px rgba(255, 165, 0, 0.5);
}
/* Активный канал - более яркий */
.channel-item.channel-active .fill {
box-shadow:
inset 0 1px 2px rgba(255,255,255,0.4),
0 0 15px rgba(230,133,45,0.6);
0 0 25px rgba(255, 165, 0, 0.7);
}
.channel-stats {

View File

@@ -64,7 +64,6 @@ export class AudioEngine {
currentTime + this.FADE_TIME
);
this.currentFrequency = frequency;
console.log(`[Audio] Частота: ${frequency} Гц`);
} catch (error) {
// Если не удалось плавно, устанавливаем сразу
this.oscillator.frequency.value = frequency;
@@ -101,7 +100,6 @@ export class AudioEngine {
this.oscillator.start();
this.isPlaying = true;
console.log(`[Audio] Звук создан, частота: ${frequency} Гц, уровень: ${level}`);
}
/**
@@ -138,7 +136,6 @@ export class AudioEngine {
return;
}
const oldLevel = this.currentLevel;
this.currentLevel = newLevel;
// Получаем частоту для нового уровня
@@ -172,8 +169,6 @@ export class AudioEngine {
// Обновляем громкость
this.setVolume(newLevel);
console.log(`[Audio] Уровень: ${oldLevel}${newLevel}, Частота: ${newFrequency} Гц`);
}
/**
@@ -235,8 +230,6 @@ export class AudioEngine {
this.stopSound();
this.fadeTimeout = null;
}, this.FADE_TIME * 2 * 1000 + 50);
console.log('[Audio] Затухание...');
}
/**
@@ -268,8 +261,6 @@ export class AudioEngine {
clearTimeout(this.fadeTimeout);
this.fadeTimeout = null;
}
console.log('[Audio] Звук остановлен');
}
// ============================================