-
-
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
Modifying custom themes #6984
Comments
you can actually change the font color by customizing the dark.css file ( https://github.com/JabRef/jabref/blob/master/src/main/java/org/jabref/gui/Dark.css ) and including it as a custom theme in preferences->appaerance. |
Thanks for your quick response and that interesting hint! Where in the preferences is it possible to activate the custom theme? Such an adjustment can not be performed at first glance in my preferences (Version 5.1). Thanks again! |
@AtrusRiven This feature is only available int he current development version: https://builds.jabref.org/master |
Thanks, @Siedlerchr , although the client does not launch somehow. I'll try it when released. :-) |
Is there a possibility to adjust the font, too? In my case, I want to change the font of the area |
Maybe this helps with font settings in css? |
Thanks for your quick reply. That sounds very promising. Have you any idea what the corresponding element in JavaFX is which I I'd have to adress in CSS? Unfortunately, I know very little about JavaFX. Thanks again! |
See https://discourse.jabref.org/t/documentation-to-build-a-visual-theme/2382/2 How I solved the low contrast problem. |
Thanks! |
And how is it possible to address the font in the |
The relevant control for the biblatex source view is:
this is from the Base.css |
Changing the following does the trick for me:
But oddly it’s not possible to select other font families than the generic ones, e.g. |
Try puttting the font name in single quotes
|
I’ve already tried this with |
@AtrusRiven The preview window takes colors from your custom theme in JabRef 5.2--2020-11-04--fcbe9c5.
|
@crystalfp Yes, that's because the preview component is actually a WebView component (The preview is html code), so there you need plain css. Regarding the bibtex code area, I think I found the solution, you need another selector:
|
@crystalfp The issue with the colors has already been solved/explained. My last question referred to the font itself. @Siedlerchr Thanks, that’s very interesting. On Windows ( |
Something attracted my attention:
|
@AtrusRiven Yes, you can only speficy one font. Multiple comma separated fonts don't work.
When you modify the Jabref.bat file in JabRef\runtime\bin
you will get a list of loaded font family and their fonts. Most fonts that belong to a family can be u sed. In the end it's probably some weird javafx/windows whatever issue. I have no clue. |
Thanks for the research! |
The dark visual theme has a very low contrast, over time resulting in a quite taxing reading experience:
It would be better if the font color were white instead of grey respectively could be changed.
The text was updated successfully, but these errors were encountered: