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

Fix star hover state #1003

Merged
merged 1 commit into from
Mar 25, 2020
Merged

Fix star hover state #1003

merged 1 commit into from
Mar 25, 2020

Conversation

ntoll
Copy link
Contributor

@ntoll ntoll commented Mar 25, 2020

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:

starmageddon

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:

  • I have tested these changes in the appropriate Qubes environment
  • I do not have an appropriate Qubes OS workstation set up (the reviewer will need to test these changes)
  • These changes should not need testing in Qubes

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:

  • I have submitted a separate PR to the packaging repo
  • No update to the packaging logic (e.g., AppArmor profile) is required for these changes
  • I don't know and would appreciate guidance

@eloquence
Copy link
Member

eloquence commented Mar 25, 2020

Let's keep #986 open for now and only close #985 with this PR.

(Edit: Updated PR body accordingly.)

@eloquence
Copy link
Member

(Taking this for a quick spin.)

@eloquence
Copy link
Member

👍 Works as advertised and improves current starring behavior. (Only tested in non-Qubes for now.)

sssoleileraaa
sssoleileraaa previously approved these changes Mar 25, 2020
Copy link
Contributor

@sssoleileraaa sssoleileraaa left a 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:
Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense 👍

@sssoleileraaa
Copy link
Contributor

sssoleileraaa commented Mar 25, 2020

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)

@sssoleileraaa sssoleileraaa merged commit de54dc4 into freedomofpress:master Mar 25, 2020
@eloquence eloquence mentioned this pull request Aug 15, 2022
6 tasks
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.

stop hover state once the user clicks on a star
3 participants