UI: Fix for group icon#7552
Conversation
|
Thanks for your PR. The problem with the default circle is that it is rather big and thus dominates the interface too much (it's pretty hard to read the group label because your eyes are constantly focusing the big colorfull blob in front of it). It would be thus nice if this circle could be scaled down (without scaling other icons, because they get too small otherwise). |
|
Can you check if the color thing fixes #7550 as well? |
|
@tobiasdiez
|
I checked it and also updated the screenshots in #7552 (comment). |
|
Cool! For me RECORD looks appropriate |
|
That's awesome. I agree, record looks the best. |
| FontIcon fontIcon = FontIcon.of(icon); | ||
| fontIcon.getStyleClass().add("glyph-icon"); | ||
| color.ifPresent(fontIcon::setIconColor); | ||
| color.ifPresent(color -> fontIcon.setStyle(fontIcon.getStyle() + String.format("-fx-fill: %s;", ColorUtil.toRGBCode(color)))); |
There was a problem hiding this comment.
Do you know why setIconColor doesn't work? Maybe add a short comment so that we will not revert it in the future by accident.
There was a problem hiding this comment.
Sorry, I have no idea.
There was a problem hiding this comment.
It has something to do with the style class. If you uncomment the line "getStyleClass.add("glyph-icon")" than it works properly. However, then the rest of the icons are black because that property is set in the css (and is obviously different for dark and base.css) and therefore overrides the color of the 'FontIcon".
So add a comment like:
Override the default color from the css files
|
Thanks again! |
* upstream/master: (191 commits) Fix for issue 7416: font size of the preferences dialog does not update with the rest of the GUI. (#7509) Fix school/instituation is printed twice (#7574) Dsiable notarisation until we hae an account for JabRef e.V. (#7572) Fix citation keys unintentionally being overwritten on import (#7443) Fix AuthentificationPlugin not declared in mergedModule (#7570) Suggestions for changes in caching latex free authors (#7301) Add simple Unit Tests (#7542) Fix drag and drop into empty library (#7555) Bump richtextfx from 0.10.4 to 0.10.6 (#7563) Bump pdfbox from 2.0.22 to 2.0.23 (#7561) Bump org.eclipse.jgit (#7560) Bump fontbox from 2.0.22 to 2.0.23 (#7562) Bump guava from 30.1-jre to 30.1.1-jre (#7564) Bump xmpbox from 2.0.22 to 2.0.23 (#7565) Bump hmarr/auto-approve-action from v2.0.0 to v2.1.0 (#7566) Add gource (#7193) UI: Fix for group icon (#7552) Fix for issue 6487: Opening BibTex file (doubleclick) from Folder with spaces not working (#7551) add ability to insert arxivId (#7549) Fixed missing trigger for linked file operations (#7548) ...


Fixes #4129
Replaced the default group play icon by small circle.
I think this also fixes #7550.
CHANGELOG.mddescribed in a way that is understandable for the average user (if applicable)