jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Check Status of "case sensitivity" and "regular expression" in Search Field not identifiable

Open AtrusRiven opened this issue 6 years ago • 11 comments

In the search field, it is no longer possible to uncheck regular expression and Case sensitive.

JabRef 5.2--2020-11-23--350ec1f Windows 10 10.0 amd64 Java 14.0.2

AtrusRiven avatar Nov 24 '20 16:11 AtrusRiven

Interesting. It still works but apparently only if the software already has found something. I didn't find anything so tried to change case sensitivity but nothing happened. With a search that actually finds something the settings work.

AtrusRiven avatar Nov 24 '20 17:11 AtrusRiven

I suppose the problem for me lies in the fact that it is not identifiable in the search field if the two settings are checked or unchecked. Is it possible to change that? At the moment, the symbols are permanently white.

AtrusRiven avatar Nov 24 '20 17:11 AtrusRiven

You may want to check the css. Maybe some css definitions missing for the search buttons.

The GUI for the search is defined here https://github.com/JabRef/jabref/blob/4cf2fb06d3d876d2043f65ca0e51c3c4185fd05c/src/main/java/org/jabref/gui/search/GlobalSearchBar.java

Siedlerchr avatar Nov 24 '20 18:11 Siedlerchr

~Do they show up when you click in the search field?~

~The current visibleProperty() bindings looks strange to me when the search field is not selected.~

~E.g.,~ Skärmavbild 2020-11-24 kl  14 21 53

Edit: Never mind, this is probably unrelated, thought it would still be nice if someone can look at it 😄

k3KAW8Pnf7mkmdSMPHz27 avatar Nov 24 '20 19:11 k3KAW8Pnf7mkmdSMPHz27

Can't see the icons either, when the search bar isn't selected.

@Siedlerchr : Perhaps a short hint where to look in order to figure out what to adress in the CSS (sorry for not having an expertise in Java :-) ) Thanks!

AtrusRiven avatar Nov 24 '20 19:11 AtrusRiven

No problem, the search field buttons are defined here . Glyph icon refer to the icon on the button. https://github.com/JabRef/jabref/blob/0412684218478d90e0a41d2a3c4be0a84af2793c/src/main/java/org/jabref/gui/Base.css#L922

Siedlerchr avatar Nov 24 '20 19:11 Siedlerchr

I do not quite grasp the issue? Do you want to see the regex and case sensitive search buttons when the search bar is not focused?

DominikVoigt avatar Nov 24 '20 19:11 DominikVoigt

  • @Siedlerchr Thanks a lot!
  • @DominikVoigt Both. My problem is that the buttons do not indicate whether they are selected or not. The problem of @k3KAW8Pnf7mkmdSMPHz27 additionally is that the buttons are invisible when the bar is not focused.

AtrusRiven avatar Nov 24 '20 19:11 AtrusRiven

I just realised that the toggle status is only with my custom dark theme undistinguishable. In light and normal dark theme it works (though it's only barely visible in normal dark theme). Therefore my problem is just a problem with something in my custom theme. Have to figure out what went wrong. Thanks for your help!

AtrusRiven avatar Nov 24 '20 20:11 AtrusRiven

@AtrusRiven It might be the same problem as #6791 which also about the dark theme having that issue

Siedlerchr avatar Nov 24 '20 20:11 Siedlerchr

Yes, your're right, that's the same. Thanks. I'll comment there.

AtrusRiven avatar Nov 24 '20 21:11 AtrusRiven