Replace transport emoji with centred SVG icons and distinguish loop-one from repeat-list

This commit is contained in:
Claude
2026-10-01 21:02:23 +00:00
parent 9f313f61af
commit f9cb7edeb2
3 changed files with 17 additions and 7 deletions

View File

@@ -1089,6 +1089,8 @@ function escapeHtml(s) {
.replace(/"/g, '"').replace(/'/g, ''');
}
const ICON_PLAY = '<svg viewBox="0 0 24 24" aria-hidden="true" class="fill"><path d="M9 5.5v13l10-6.5z"/></svg>';
const ICON_PAUSE = '<svg viewBox="0 0 24 24" aria-hidden="true" class="fill"><path d="M7 5h3.5v14H7zM13.5 5H17v14h-3.5z"/></svg>';
function fmtTime(sec) {
if (!sec || !isFinite(sec)) return '0:00';
sec = Math.floor(sec);
@@ -2393,7 +2395,7 @@ function wirePlayerEvents() {
function updatePlayBtn() {
Remote.changed();
els.playBtn.textContent = Player.master.paused ? '▶' : '⏸';
els.playBtn.innerHTML = Player.master.paused ? ICON_PLAY : ICON_PAUSE;
$('miniPlayBtn').textContent = Player.master.paused ? '▶' : '⏸';
const spBtn = $('servicePlayBtn');
if (spBtn) spBtn.textContent = Player.master.paused ? '▶' : '⏸';