-
-
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
Entry preview: Does not adapt to dark mode #5463
Comments
Hello, I'm pretty new to github but would like to work on this issue. Is it okay? |
@taerim25 Sure, go ahead ! I think it should work if you adapt the background color of the entry preview control in the dark theme css file Please have a look at our contributing guide for gettings things done. |
UPDATE: Preview content itself was updated in form of HTML injected in Anybody has any idea on how to approach this? |
@tobiasdiez do we have a variable for checking if Dark Mode is enabled? |
Yes, sadly it is not possible to style the content of the webview using the central javafx css. The easiest solution is probably to embed the correct style directly as done here: jabref/src/main/java/org/jabref/gui/preview/PreviewViewer.java Lines 43 to 48 in bc26c3a
|
@taerim25 Actually there is a preferences key which stores which theme the user has selected. So you could use this for checking and adapting the css, |
Thanks to the good work of @taerim25 this should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! Please remember to make a backup of your library before trying-out this version. |
JabRef 5.0.0-dev--2019-10-20----dfad2fdea Cannot confirm. The entry preview is not visible at all. And sometimes the exception reported below occurs, when trying to open the entry preview/entry editor. Note, that the issue does not appear, if the dark mode is not activated, so it is very likely that these issues are related to the attempted fix herein:
|
@tobiasdiez I guess it's due to the variable you replaced with the constant |
This should be fixed now in the latest master. |
JabRef 5.0.0-dev--2019-10-25----681d6aa6f I can confirm that this has been fixed in the current dev version. Nice work! |
JabRef 5.0.0-dev--2019-10-17----e81d58c51
Windows 10 10.0 amd64
Java 12.0.2
The entry preview does not adapt to dark mode. This issue has already been reported by @Siedlerchr here (including an image):
#5244 (comment)
The text was updated successfully, but these errors were encountered: