-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
allow skins to style sidebar context menus #2338
Conversation
src/library/libraryfeature.h
Outdated
KeyboardEventFilter* /* keyboard */) {} | ||
virtual void bindSidebarWidget(WLibrarySidebar* pSidebarWidget) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I need to implement this?
5de7da9
to
ee48f78
Compare
ee48f78
to
2d4f874
Compare
Woohoo, done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Than you.
I can test this on Ubuntu.
So you think we need test for the other targets?
Sure, testing on Win / MacOS dosn't harm. Though I don't see a reason the platform would make a difference here. |
1cd3bd4
to
767a7ec
Compare
cleaned up & rebased. For completeness, this needs to be tested with iTunes and Traktor features. |
767a7ec
to
0b5f1ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the green menu is for testing only.
Let me know when you consider this ready for merge, and I'll remove it. |
GitHub editor has eaten the template type.
|
had to |
You can use a forward declaration for |
…re compact use the widget as parent for right-click menus on sidebar items
cf104bb
to
751bf03
Compare
The CI issues are only time outs. Is this ready for merge now? Please avoid in future to rebase pending code PRs, because that requires a full code review, while otherwise only the latest changes needs to be reviewed. |
Alright. I rebased because now it's only one commit that's 'critical', and that's very compact and repetetive for the internal library features. |
yes, ready for merge! |
Thank you for keeping care of all these details :-) |
c++ changes to complete #2337 Skins :: adjust styles of skin context menus, tooltip for the sidebar right-click menu which was previously not stylable via qss because it was created without a parent widget.
Now sidebar widget is passed to each library feature (that has a context menu) and used there as parent widget for creating the context menus.
I also added a right-click action for paths in In 'Computer' tree that are in QuickLinks. This allows to remove those paths from Quick Links easily when they were added accidentially.
Lesson learned:
ToDo
Before merge