ddddxxx / LyricsX

🎶 Ultimate lyrics app for macOS.
Mozilla Public License 2.0
4.66k stars 387 forks source link

Lyrics don't show in menubar if longer than menubar free space #311

Open replete opened 4 years ago

replete commented 4 years ago

Small laptop screens, many menubar apps, and apps with many menu items can create small menubar gaps for lyrics to display in.

image

Highlighted lyric line in floating Lyric window does not show at all in menubar

Ideas for improvement, ordered by anticipated complexity :

  1. Truncate end of line
  2. Split into two pseudo lyric lines for the menubar
  3. Scroll text according to how long it is compared to the menubar gap
  4. Shrink text to size (not great for very long lines)
  5. Split into two lines, like iStatMenus enables image
ddddxxx commented 4 years ago

The truncation approach have already implemented. Go to Preferences -> Lab and enable Combine menubar icon with menubar lyrics.

The problem is I can't reliably get free space of menubar. I just truncate word by word and see if the item is still visible (actually checking visibility is also a hack). It's inefficient and buggy.

If anyone knows how can I get free space of menubar, I'd like to work around a better approach.