-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 binding issue for the regex and case sensitive search buttons #7125
Fix binding issue for the regex and case sensitive search buttons #7125
Conversation
Hi @DominikVoigt, thank you for looking at it! A stylistic question (I am asking for your opinion on this, it is not a suggestion 😛 ), what are your thoughts on using something along the lines of |
71f3d4c
to
d4f82c0
Compare
Hey @k3KAW8Pnf7mkmdSMPHz27, |
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.
I've tried to replicate the problem mentioned in #6791, but it seems that in MacOS, the problem does not exist. If this solves the problem on other platforms, I would say code-wise it can be merged.
.or(regularExpressionButton.focusedProperty() | ||
.or(caseSensitiveButton.focusedProperty())); |
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.
One nitpick, you need to re-add the focusedProperty()
of regularExpressionButton
and caseSensitiveButton
with the new changes. Otherwise, they will disappear if you click on them while the search field is empty.
Sorry about making your life difficult =/
Except that it looks really good. I like this behaviour 😃
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.
No worries!
Thank you for your feedback ^^
I now added the focused properties back in 😃!
d4f82c0
to
446c94b
Compare
Signed-off-by: Dominik Voigt <[email protected]>
446c94b
to
51a55b4
Compare
This comment has been minimized.
This comment has been minimized.
I think this behavior is by design. The point is that as you user you normally don't care about the regex toogle etc. Thus, to reduce visual clutter it is only shown when you focus the search bar (which is the only instance when you might care about it). |
I believe a lot of this confusion is my fault, sorry about that. (which occurs when there is text in the search field, but it is not focused) |
I marked #7125 (comment) as off-topic (because it is), and if it serves a point, I can repost it with more details in #6791. I did not post it there since someone is already working on that issue, and therefore I did not think it would benefit from more screenshots. |
Yeah, this the current goal of this PR, it makes the regex and case sensitive search buttons visible if the search field is nonempty :) |
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.
Ok, thanks for the clarification. LGTM
* upstream/master: (36 commits) Fix remembering password for sql db (#7154) Update to libre office 7.0.3 (#7150) Add IdBasedSearchFetcher to jstor (#7145) Squashed 'src/main/resources/csl-styles/' changes from 55200d0..a20406d Bump antlr4-runtime from 4.8-1 to 4.9 (#7136) Bump antlr4 from 4.8-1 to 4.9 (#7138) Bump mariadb-java-client from 2.7.0 to 2.7.1 (#7134) Bump classgraph from 4.8.90 to 4.8.92 (#7139) Bump mockito-core from 3.6.0 to 3.6.28 (#7135) Bump gittools/actions from v0.9.6 to v0.9.7 (#7144) Bump checkstyle from 8.37 to 8.38 (#7142) Add missing author Fix document viewer not showing first page (#7132) Add githandler mock to crawler test to fix NPE (#7133) Searchbar glyph icon colors in Dark Theme [FIXED] (#7131) Fix binding issue for the regex and case sensitive search buttons (#7125) Enable automated cross library search using a cross library query lan… (#7124) Add tracking Update Java Version Welcome Dominik ✌ ...
This PR fixes the issue related to the regex and case sensitive search buttons disappearing if the search bar is not empty. This addresses the issue raised by @k3KAW8Pnf7mkmdSMPHz27 in #7123.
Here how it currently looks if something else (WebSearchBar) is focused and the bar is nonempty:
In case of an empty search bar: