-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Jabref dialog doesnt respect font size 13558 #13667
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
Jabref dialog doesnt respect font size 13558 #13667
Conversation
- note 18 :: 30 == 1.44 :: 2.4 == 0.6 - manually verified original and modified pixel heights
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.
Great work! The intent of the original issue was a bit broader than the current fix on AboutDialog only. The issue lies in that a lot of other dialogs (to give an example, if you open the example library, go to the general tab, then select download from a URL), that's using the DialogService also doesn't respect the font size settings, and we are hoping to provide a more generalized fix across all those dialogs.
Thank you so much!
|
|
||
| public AboutAction() { | ||
| this.aboutDialogView = new AboutDialogView(); | ||
| this.dialogService = Injector.instantiateModelOrService(DialogService.class); |
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 typically prefer to have the callee pass in the injected variables, rather than the implementation to inject for themselves.
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.
Y lol. I just 'reused' the original code. My brain wasn't switched on lol.
|
Great start! Can you also look into the issue about ellipsis at the end of the texts? I mean a huge font size is only helpful if not the larger part of the text is hidden behind three dots... 😅 |
Hi. Thanks for the feedback. OK I see. Perhaps we need another few tasks? One to investigate and enumerate the dialogs that don't honour the font settings and another one (or more) to fix the dialogs? I'm just wondering if it's too big of a task for a single issue? If there are lots of dialogs, it seems like a significant amount of coding and testing work. Looking into a properly functional testing methology would seem to make sense, if this is true. |
|
@trag-bot didn't find any issues in the code! ✅✨ |
Yeah! Closely related: #6089 (concerning the larger scope 😅) |
|
I think this is done now; however... another task to capture the work of enumerating all the Dialogs that don't follow the user font preferences is probably a good idea. |
|
I'm happy creating an issue for the work of enumerating all dialogs with issues but I don't think it falls under either: bug or feature - which is all i can create it seems. |
|
It doesn't matter if you create it as feature or bug. you can edit it afterwards and we can change the labels accordingly |
|
Hey, was the issue about the ellipsis solved? |
I didn't notice any ellipsis issues with the About dialog (or in this ticket's description). Can you create a ticket for it with steps to reproduce etc.... Thanks |
It was in the review comments - #13667 (comment) Carl provided a screenshot here showing that text is simply cut off without any "..." (called ellipses) at the end... |




Closes #13558
I fixed the issue whereby the About dialog was not honouring (it was using constant font-sizes in the .css file) the user's configured font (&size) preferences.
A also fixed the issue such that the application needed to be restarted for the About dialog to pick up changed font preferences.
Both done in the same way, by utilising
themeManager.updateFontStyleinAboutDialogViewwhenever the dialog pane's scene property changes.Steps to test
Manually testing the default font size
File|Preferences|General|Override default font settingsis uncheckedHelp|AboutdialogFile|Preferences|General|Override default font settingsis uncheckedHelp|AboutdialogCompare the before and after shots. In particular the font-sizes can be examined.
Manually testing various font-sizes
Testing that the About dialog responds to updated user font preferences
File|Preferences|General|Override default font settingscontrol is checkedHelp|AboutdialogHelp|AboutdialogFile|Preferences|GeneraldialogHelp|Aboutdialog and note the size of the text (it should be big)I've done lots of manual testing and i'm happy with the changes.
Mandatory checks
CHANGELOG.mddescribed in a way that is understandable for the average user (if change is visible to the user)NewAbout Dialog 9pt Font SizeNewAbout Dialog 12pt Font SizeNewAbout Dialog 15pt Font SizeNewAbout Dialog 18pt Font SizeNewAbout Dialog 21pt Font SizeNewAbout Dialog with System Default Font SettingsOldAbout Dialog with System Default Font Settings