mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 14:55:43 +00:00
fix(title): use ⏵ instead of ▶ in OS window title so glyph stays centred (#749)
`▶` (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.
This commit is contained in:
committed by
GitHub
parent
ebba3dfa09
commit
9609da6bc2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user