Skip to content

Conversation

@chrisdenman
Copy link
Contributor

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.updateFontStyle in AboutDialogView whenever the dialog pane's scene property changes.

Steps to test

Manually testing the default font size

  • Run app before pulling
  • Ensure the File|Preferences|General|Override default font settings is unchecked
  • Take a screenshot of the Help|About dialog
  • Terminate the app
  • Pull in code with fixes
  • Run app
  • Ensure the File|Preferences|General|Override default font settings is unchecked
  • Take screenshot of the Help|About dialog

Compare the before and after shots. In particular the font-sizes can be examined.

Manually testing various font-sizes

  • Repeat the above tests for varying sizes of user-defined font size preferences

Testing that the About dialog responds to updated user font preferences

  • Run the app
  • Ensure the File|Preferences|General|Override default font settings control is checked
  • Choose a font size, say 9pt.
  • Close the Preferences dialog
  • Open the Help|About dialog
  • Note the size of the text (small/normal)
  • Close the Help|About dialog
  • Open the File|Preferences|General dialog
  • Choose a large (noticable) font size, say 22pt.
  • Close the Preferences diagog
  • Open the Help|About dialog 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

  • I own the copyright of the code submitted and I license it under the MIT license
  • Change in CHANGELOG.md described in a way that is understandable for the average user (if change is visible to the user)
  • [/] Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (if change is visible to the user)
  • Checked developer's documentation: Is the information available and up to date?
  • Checked documentation: Is the information available and up to date?

New About Dialog 9pt Font Size

jabref_13558__about_dialog__9pt

New About Dialog 12pt Font Size

jabref_13558__about_dialog__12pt

New About Dialog 15pt Font Size

jabref_13558__about_dialog__15pt

New About Dialog 18pt Font Size

jabref_13558__about_dialog__18pt

New About Dialog 21pt Font Size

jabref_13558__about_dialog__21pt

New About Dialog with System Default Font Settings

jabref_13558__about_dialog__default

Old About Dialog with System Default Font Settings

jabref_13558__about_dialog__original

@chrisdenman chrisdenman marked this pull request as ready for review August 6, 2025 23:35
Copy link
Collaborator

@Yubo-Cao Yubo-Cao left a 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.

image

Thank you so much!


public AboutAction() {
this.aboutDialogView = new AboutDialogView();
this.dialogService = Injector.instantiateModelOrService(DialogService.class);
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@calixtus
Copy link
Member

calixtus commented Aug 7, 2025

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... 😅
You can surely propose a creative solution.

@chrisdenman
Copy link
Contributor Author

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.

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
Copy link

trag-bot bot commented Aug 7, 2025

@trag-bot didn't find any issues in the code! ✅✨

@koppor
Copy link
Member

koppor commented Aug 7, 2025

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.

Yeah! Closely related: #6089 (concerning the larger scope 😅)

@chrisdenman
Copy link
Contributor Author

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.

@chrisdenman
Copy link
Contributor Author

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.

@Siedlerchr
Copy link
Member

It doesn't matter if you create it as feature or bug. you can edit it afterwards and we can change the labels accordingly

@Siedlerchr
Copy link
Member

Looks good on my mac as well:
grafik

@Siedlerchr Siedlerchr added this pull request to the merge queue Aug 7, 2025
Merged via the queue into JabRef:main with commit 8335db0 Aug 7, 2025
1 check passed
@calixtus
Copy link
Member

calixtus commented Aug 8, 2025

Hey, was the issue about the ellipsis solved?

@chrisdenman
Copy link
Contributor Author

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

@calixtus
Copy link
Member

calixtus commented Aug 8, 2025

Tested it. Does NOT work.

after setting font size to a higher value the about dialog has to be opened twice to adapt new font size.

after setting back font size it does not adapt properly

grafik

@koppor
Copy link
Member

koppor commented Aug 8, 2025

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....

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...

@chrisdenman
Copy link
Contributor Author

Tested it. Does NOT work.

after setting font size to a higher value the about dialog has to be opened twice to adapt new font size.

after setting back font size it does not adapt properly
grafik

Thanks, I'll take a look.

@chrisdenman
Copy link
Contributor Author

Tested it. Does NOT work.

after setting font size to a higher value the about dialog has to be opened twice to adapt new font size.

after setting back font size it does not adapt properly
grafik

I can't reproduce this unfortunately. I'm on Linux (if that makes a difference).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JabRef dialog doesn't respect font size

5 participants