{#each buttons as win (win.id)} {@const Icon = iconFor(win.id)} {@const badge = badgeFor(win.id)}
toggle(win.id, win)} title={win.title} > {#if Icon}
{/if}
{truncateMiddle(win.title, 26)}
{#if badge > 0}
{badge > 99 ? '99+' : badge}
{/if}
{ e.stopPropagation() wm.close(win.id) }} aria-label="Close {win.title}" >
{/each}
toggleTheme()} title="Cycle theme ({THEME_LABELS[getTheme()]})" aria-label="Cycle theme, currently {THEME_LABELS[getTheme()]}" >
openAppWindow('settings')} title="Settings" >
{VERSION}