jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Replace all `style=""` calls with `styleClass` in FXML

Open Maran23 opened this issue 5 months ago • 3 comments

See also the previous issue: https://github.com/JabRef/jabref/issues/15686 and companion issue: https://github.com/JabRef/jabref/issues/15934

We have multiple occurrences where we use style in FXMLs in JabRef. The problem is that this usually hardcodes colors or styles like insets. Therefore, custom themes (CSS) or other stylesheets like Atlanta will always be overwritten by this inline styles.

Additional context

Image

We have styleclasses for that, e.g. bold that should be used. Otherwise a new one can be created.

Maran23 avatar Jun 09 '26 08:06 Maran23

/take

arrautx avatar Jun 09 '26 11:06 arrautx

Hi, I noticed that StyleTester.fxml still had 4 remaining inline style= attributes not covered by #15938, so I've opened a separate PR #15957 to address those. I also added the corresponding utility classes (.padding-medium, .padding-left-medium, .padding-large) to jabref-theme.css.

justinlaf avatar Jun 10 '26 15:06 justinlaf

We think that this issue was fixed. Please head to https://builds.jabref.org/main to download a development build and try it out.

For any feedback, add a comment to the pull request at https://github.com/JabRef/jabref/pull/15938.

github-actions[bot] avatar Jun 10 '26 19:06 github-actions[bot]