-
Notifications
You must be signed in to change notification settings - Fork 42
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
Fix star hover state #1003
Fix star hover state #1003
Conversation
(Taking this for a quick spin.) |
👍 Works as advertised and improves current starring behavior. (Only tested in non-Qubes for now.) |
9fc219f
to
088729e
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.
lgtm
@@ -1351,7 +1351,7 @@ def eventFilter(self, obj, event): | |||
t = event.type() | |||
if t == QEvent.HoverEnter: | |||
self.setIcon(load_icon('star_hover.svg')) | |||
elif t == QEvent.HoverLeave: | |||
elif t == QEvent.HoverLeave or t == QEvent.MouseButtonPress: |
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.
makes sense 👍
just a thought for a future improvement: if the star is already checked, then don't show the hover state when you mouse over it, otherwise it looks like a star that is unchecked about to be checked (this is obviously better when qubes support showing different mouse cursors to indicate something is clickable) |
088729e
to
a003c06
Compare
Description
Fixes #985
Towards #986
This PR fixes the above two issues to the extent that Erik has described the expected initial solution (todo: hover background).
Screenie here:
Test Plan
Eyeball Mk.1 👀
Checklist
If these changes modify code paths involving cryptography, the opening of files in VMs or network (via the RPC service) traffic, Qubes testing in the staging environment is required. For fine tuning of the graphical user interface, testing in any environment in Qubes is required. Please check as applicable:
If these changes add or remove files other than client code, packaging logic (e.g., the AppArmor profile) may need to be updated. Please check as applicable: