Venipa / ytmdesktop2

Unofficial Youtube Music Desktop App, with LastFM support.
https://youtube-music.app
Creative Commons Zero v1.0 Universal
454 stars 30 forks source link

Implement Thumbars to add quick-skip/go-back buttons #88

Open Pyseph opened 10 months ago

Pyseph commented 10 months ago

Is your feature request related to a problem? Please describe. The app is missing some functionality that works as great UX in Spotify's app, and is one that I frequently find myself using. When hovering over an app, three buttons are displayed on Spotify (image not mine): image They are "go back", "play/pause", and "skip" respectively. These buttons allow for much faster alternating between playing songs, without having to open the app and press the buttons from there.

Describe the solution you'd like As this project is built with Electron, the ThumbarButton objects can be used to swiftly implement this. https://www.electronjs.org/docs/latest/api/structures/thumbar-button I do not have any experience with Electron nor TypeScript, though a quick skimming through the API landed me on the following method that I believe is most relevant: https://www.electronjs.org/docs/latest/api/browser-window#winsetthumbarbuttonsbuttons-windows

Describe alternatives you've considered No other alternatives have been considered as I believe this is the only way of implementing the aforementioned buttons with Electron's API.