Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Plugin] taskbar-mediacontrol (for Windows) #200

Merged
merged 11 commits into from
Mar 25, 2021
Merged

Conversation

Araxeus
Copy link
Collaborator

@Araxeus Araxeus commented Mar 21, 2021

Add UI Control to windows taskbar preview (official name is Thumbar)
Closes #107
demo

(had to add img's for icons as per win32 api rules)

There seems to be a bug in electron - after window.hide() is called, the Thumbar disappears and seems to just break (cant show it again)
I reported that bug to them (will be fixed in next electron version)
but since we are using Electron 11.xx - my local fix for the problem is using

win.minimize(); win.setSkipTaskbar(true);
instead of
window.hide();

Tested it and it works great now :)

EDIT:
uses playPause() function to control play state - which means it currently has the same conflict as Play/Pause in tray menu:

Araxeus added 8 commits March 21, 2021 20:08
Add UI Control to windows taskbar preview
using  win.minimize()
and win.setSkipTaskbar(bool)
instead of win.hide() / win.show()
(was deleted by accident)
@Araxeus Araxeus changed the title taskbar-mediacontrol plugin [Windows] [Plugin] taskbar-mediacontrol (for Windows) Mar 23, 2021
Araxeus and others added 2 commits March 24, 2021 19:38
* Added Discord timeout

* Add getOptions in plugin util

* Mutex in ffmpeg conversion (only supports one command at a time)

* Add menu customization in plugin system

* Add ytpl package (playlist info)

* Handle ffmpeg metadata flags when metadata is not present

* Only use artist in file name if present

* Export sendError method

* Handle image not present in metadata util

* Add downloader utils (getFolder and default menu label)

* Pass (optional) existing metadata and subfolder in mp3 converter

* Add listener to download playlist

* Add custom menu in downloader plugin ("download playlist" item)

* nit: fix main CSS style

* Only set the "enable" item in menu if plugin not enabled

* Navigation plugin: inject HTML once CSS is loaded

Co-authored-by: Sem Visscher <[email protected]>
Co-authored-by: TC <[email protected]>
@Araxeus Araxeus changed the base branch from master to mpris March 25, 2021 16:15
@Araxeus Araxeus changed the base branch from mpris to master March 25, 2021 16:15
Copy link
Owner

@th-ch th-ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the contribution ✅
nit: PNGs can probably be optimized (using a tool like pngcrush) - merging as it is, will compress the images in a follow up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI\Feature Request] Windows Taskbar Thumbnail Media Buttons
2 participants