Skip to content
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

qt: Fix font family updates #3746

Merged
merged 3 commits into from
Sep 29, 2020

Conversation

xdustinface
Copy link

@xdustinface xdustinface commented Sep 29, 2020

Required now after the GUIUtil::setApplicationFont() call was removed from GUIUtil::updateFonts() and QListView is getting ignored by GUIUtil::updateFonts() both introduced in #3734.

UdjinM6
UdjinM6 previously approved these changes Sep 29, 2020
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@xdustinface
Copy link
Author

xdustinface commented Sep 29, 2020

Wait ... Recent transactions on the overview still don't react to family changes. Thats really the last one now... 🙈 Testing here.. pushing in few minutes.

Introduced because QListView is ignored in GUIUtil::updateFonts, so its base font family doesn't change, hence the recent transactions don't adjust because the painter's font doesn't change.
@xdustinface xdustinface dismissed stale reviews from PastaPastaPasta and UdjinM6 via 824281e September 29, 2020 00:33
@xdustinface xdustinface changed the title qt: Update the application font if the font family gets changed qt: Fix font family updates Sep 29, 2020
@UdjinM6
Copy link

UdjinM6 commented Sep 29, 2020

I think you need smth like b3e9da9 cause otherwise you draw both lines with the same font size actually

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be working as expected now 👍

re-ACK

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

xdustinface added a commit to xdustinface/dash that referenced this pull request Sep 29, 2020
* qt: Update the application font if the font family gets changed

* qt: Make sure recent transactions have the correct font family

Introduced because QListView is ignored in GUIUtil::updateFonts, so its base font family doesn't change, hence the recent transactions don't adjust because the painter's font doesn't change.

* Store initial font size
@UdjinM6 UdjinM6 merged commit 24dfb64 into dashpay:develop Sep 29, 2020
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 10, 2022
* qt: Update the application font if the font family gets changed

* qt: Make sure recent transactions have the correct font family

Introduced because QListView is ignored in GUIUtil::updateFonts, so its base font family doesn't change, hence the recent transactions don't adjust because the painter's font doesn't change.

* Store initial font size

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
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.

3 participants