diff --git a/static/css/index.css b/static/css/index.css index 06efcb3..627bddd 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -6083,16 +6083,27 @@ body::before { cursor: not-allowed; } -.radio-action-btn.scan { +.radio-action-btn.scan, +.radio-action-btn.listen { background: var(--accent-green); border-color: var(--accent-green); color: #000; } -.radio-action-btn.scan:hover:not(:disabled) { +.radio-action-btn.scan:hover:not(:disabled), +.radio-action-btn.listen:hover:not(:disabled) { box-shadow: 0 0 15px rgba(0, 255, 136, 0.4); } +.radio-action-btn.listen.active { + background: var(--accent-red); + border-color: var(--accent-red); +} + +.radio-action-btn.listen.active:hover:not(:disabled) { + box-shadow: 0 0 20px var(--accent-red-dim); +} + /* Statistics Box */ .stat-box { background: rgba(0, 0, 0, 0.3); diff --git a/static/js/modes/listening-post.js b/static/js/modes/listening-post.js index a21a44a..2be838a 100644 --- a/static/js/modes/listening-post.js +++ b/static/js/modes/listening-post.js @@ -2387,12 +2387,10 @@ function updateDirectListenUI(isPlaying, freq) { if (listenBtn) { if (isPlaying) { listenBtn.innerHTML = Icons.stop('icon--sm') + ' STOP'; - listenBtn.style.background = 'var(--accent-red)'; - listenBtn.style.borderColor = 'var(--accent-red)'; + listenBtn.classList.add('active'); } else { listenBtn.innerHTML = Icons.headphones('icon--sm') + ' LISTEN'; - listenBtn.style.background = 'var(--accent-purple)'; - listenBtn.style.borderColor = 'var(--accent-purple)'; + listenBtn.classList.remove('active'); } } diff --git a/templates/index.html b/templates/index.html index dda845b..7d6fa07 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1255,10 +1255,12 @@ - - + +