-
Notifications
You must be signed in to change notification settings - Fork 33
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
Label picker: unmatched labels look like disabled #1333 #1350
Label picker: unmatched labels look like disabled #1333 #1350
Conversation
1d7635a
to
1e20f5b
Compare
1e20f5b
to
ab54c53
Compare
It's better. But as long as we use opacity, they are going to look 'disabled'. I think the solution is to make the label clickable when the mouse is over it. e.g. change mouse pointer and/or remove opacity |
I think we just need a better way of highlighting the matched label from the rest e.g making it pop-up using size. In hindsight, using border is not really a good choice. What do you think ? |
yes, it's nice if we can emphasize matching labels without de-emphasizing unmatched labels. Not sure how hard it is to do so. I don't want to do anything (such as increasing size) that changes the positioning of labels as the user types. In spite of whatever we do there, the labels need to look clickable when hovered over. |
Ok. So as long as the position of the labels remain the same you are ok with it right ? Coupled that by changing the mouse pointer, I think it will be perfect already. |
Yup. Let us know when the code is ready for review. |
ab54c53
to
1e87c30
Compare
Here is the updated version where the cursor icon will change when hover on a clickable label. Ready for review @ndt93 |
// add highlight border | ||
String style = getStyle() + (isHighlighted ? " -fx-border-color: black; -fx-border-width: 2px;" : ""); | ||
// change opacity if needed | ||
style += (isFaded ? " -fx-opacity: 40%;" : ""); | ||
label.setStyle(style); |
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.
This style part can be extracted into another method.
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.
noted
3eadf31
to
c75e913
Compare
c75e913
to
63abae6
Compare
Fixes #1333