From 9609da6bc2a5fdfbe3a1f39e87d46858981145cc Mon Sep 17 00:00:00 2001 From: Frank Stellmacher <171614930+Psychotoxical@users.noreply.github.com> Date: Sun, 17 May 2026 13:37:22 +0200 Subject: [PATCH] =?UTF-8?q?fix(title):=20use=20=E2=8F=B5=20instead=20of=20?= =?UTF-8?q?=E2=96=B6=20in=20OS=20window=20title=20so=20glyph=20stays=20cen?= =?UTF-8?q?tred=20(#749)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `▶` (U+25B6, Geometric-Shapes) renders well below the baseline in most OS title-bar fonts (Segoe UI on Windows, Cantarell on GNOME, etc.), while `⏸` (U+23F8, Miscellaneous-Technical) sits correctly centred. Switching the play glyph to `⏵` (U+23F5) — the designated `⏸` pair from the same Unicode block — keeps the two states visually aligned with the surrounding text. In-app custom title bar already looks correct and is left untouched. --- src/hooks/useNowPlayingTrayTitle.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hooks/useNowPlayingTrayTitle.ts b/src/hooks/useNowPlayingTrayTitle.ts index eb0c2bc1..7ae9bc35 100644 --- a/src/hooks/useNowPlayingTrayTitle.ts +++ b/src/hooks/useNowPlayingTrayTitle.ts @@ -14,7 +14,11 @@ export function useNowPlayingTrayTitle(currentTrack: Track | null, isPlaying: bo try { const appWindow = getCurrentWindow(); if (currentTrack) { - const state = isPlaying ? '▶' : '⏸'; + // `⏵` (U+23F5) instead of `▶` (U+25B6): the Geometric-Shapes triangle + // renders well below the baseline in most OS title-bar fonts (Segoe UI, + // GNOME Cantarell, etc.), while the Miscellaneous-Technical pair + // `⏵`/`⏸` shares metrics and stays centred next to the text. + const state = isPlaying ? '⏵' : '⏸'; const title = `${state} ${currentTrack.artist} - ${currentTrack.title} | Psysonic`; document.title = title; await appWindow.setTitle(title);