Skip to content

qt: Fix font family updates - #3746

Merged
UdjinM6 merged 3 commits into
dashpay:developfrom
xdustinface:pr-ui-fix-font-family-updates
Sep 29, 2020
Merged

UdjinM6 merged 3 commits into
dashpay:developfrom
xdustinface:pr-ui-fix-font-family-updates

Conversation

@xdustinface

@xdustinface xdustinface commented Sep 29, 2020

Copy link
Copy Markdown

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

@xdustinface xdustinface added this to the 16 milestone Sep 29, 2020
UdjinM6
UdjinM6 previously approved these changes Sep 29, 2020

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ACK

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

utACK

@xdustinface

xdustinface commented Sep 29, 2020

Copy link
Copy Markdown
Author

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

UdjinM6 commented Sep 29, 2020

Copy link
Copy Markdown

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

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

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

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

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