-
-
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
Fix various Dark theme issues #6368
Fix various Dark theme issues #6368
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, this looks very nice.
The issue is that I don't find the dialogs graphics (e.g. the confirmation image) adequate, so maybe create custom ones for the dark theme (or remove them)?
Good point. I guess, the best solution would be to replace these icons by font-based icons, for example https://materialdesignicons.com/icon/information-outline. This then also gives a more consistent look with the other icons we already use in the toolbar or menu. But this can wait for another PR.
The scroll pane is quite visible (at least on my side) so I don't know if that issue has been considered as resolved or not?
I think it's still somewhat hard to recognize. Could you try to increase the contrast a bit?
@@ -126,6 +127,7 @@ public static String shortenDialogMessage(String dialogMessage) { | |||
choiceDialog.setHeaderText(title); | |||
choiceDialog.setTitle(title); | |||
choiceDialog.setContentText(content); | |||
Globals.getThemeLoader().installCss(choiceDialog.getDialogPane().getScene(), Globals.prefs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are trying to remove the Globals
class (in the long term). To facilitate this, could you please extract the themeLoader
and preferences
, and initialize them by passing the global objects as dependencies through the constructor (i.e. move Globals
from this class to the caller)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have refactored the code but I m not sure if I've done it correctly
@@ -148,12 +150,14 @@ public static String shortenDialogMessage(String dialogMessage) { | |||
@Override | |||
public void showInformationDialogAndWait(String title, String content) { | |||
FXDialog alert = createDialog(AlertType.INFORMATION, title, content); | |||
Globals.getThemeLoader().installCss(alert.getDialogPane().getScene(), Globals.prefs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work, if you move this line inside the createDialog? Then you could reduce some code duplication
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! didn't really pay attention.
Perfect. Thank you again! |
…ionCaseInsensitive * upstream/master: New Crowdin translations (#6375) Squashed 'src/main/resources/csl-styles/' changes from 143464e..906cd6d Fixes #6357: File directory (#6377) Disable the generate button if the ID field is empty (#6371) Fix Preferences style value too long (#6372) Fix various Dark theme issues (#6368) Correct label name in dependabot Bump java-diff-utils from 4.5 to 4.7 (#6365) Try with info.plist.template also (#6366) Fix wrong button order (Apply and Cancel) in ManageProtectedTermsDialog. (#6358) Bump flexmark-ext-gfm-strikethrough from 0.61.6 to 0.61.20 (#6361) Bump checkstyle from 8.31 to 8.32 (#6360) Bump flexmark-ext-gfm-tasklist from 0.61.16 to 0.61.20 (#6364) Bump flexmark from 0.61.16 to 0.61.20 (#6359) Bump org.beryx.jlink from 2.17.7 to 2.17.8 (#6362) Bump classgraph from 4.8.71 to 4.8.77 (#6363) Change blue and red colors in Merge entries dialog in Dark theme (#6356) Add Info plist to mac resources (#5986) Backward compatibility for 4.3.1 (#6296)
* upstream/master: (166 commits) New Crowdin translations (#6382) Update code-howtos.md (#6393) Fix jstyle was invalid with default section at the start (#6386) Correcting file name for groups.uml (#6373) Fix underscore character being omitted from file name in Recent Libraries list (#6389) Rework journal abbreviation caching (#6304) Fix selecting custom export for copy to clipboard with uppercase file ext (#6290) New Crowdin translations (#6375) Squashed 'src/main/resources/csl-styles/' changes from 143464e..906cd6d Fixes #6357: File directory (#6377) Disable the generate button if the ID field is empty (#6371) Fix Preferences style value too long (#6372) Fix various Dark theme issues (#6368) Correct label name in dependabot Bump java-diff-utils from 4.5 to 4.7 (#6365) Try with info.plist.template also (#6366) Fix wrong button order (Apply and Cancel) in ManageProtectedTermsDialog. (#6358) Bump flexmark-ext-gfm-strikethrough from 0.61.6 to 0.61.20 (#6361) Bump checkstyle from 8.31 to 8.32 (#6360) Bump flexmark-ext-gfm-tasklist from 0.61.16 to 0.61.20 (#6364) ...
Related issues: #5522 , #5699
The issue is that I don't find the dialogs graphics (e.g. the confirmation image) adequate, so maybe create custom ones for the dark theme (or remove them)?
The scroll pane is quite visible (at least on my side) so I don't know if that issue has been considered as resolved or not?