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

FIX(ui): User and channel status icons take display scaling into account #5772

Merged
merged 1 commit into from
Aug 6, 2022

Conversation

Hartmnt
Copy link
Member

@Hartmnt Hartmnt commented Aug 4, 2022

Fixes #5632 (duplicates: #3773 #3412)

Similar to TalkingUI, this commit changes the way the size of the user status icons is determined.

scaling before after
100% 13100 15100
200% 13200 15200

Should probably be tested on other fractional scaling (I can only do 100% and 200%)

Previously, since the inception of the in-line status icons (b39f73b)
the status icon size has been hard-coded. In contrast to pretty much all other
icons this had the effect, that user display scaling was not taken into account and
the status icons appeared too small, if the scaling was >1.0x

This commit reverts the static constants for the icon size introduced in 42d74df
and calculates the values based on the font size. (This is also done in the
TalkingUI for example). In doing so, the icons will resize with the font and therefore with
display scaling.

Fixes mumble-voip#5632
Copy link
Member

@Krzmbrzl Krzmbrzl left a comment

Choose a reason for hiding this comment

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

LGTM

@Krzmbrzl Krzmbrzl added client backport-needed bug A bug (error) in the software ui labels Aug 6, 2022
@Krzmbrzl Krzmbrzl merged commit 344488a into mumble-voip:master Aug 6, 2022
@Krzmbrzl
Copy link
Member

Krzmbrzl commented Aug 6, 2022

Nice 👍

@Krzmbrzl
Copy link
Member

💚 All backports created successfully

Status Branch Result
1.4.x

Questions ?

Please refer to the Backport tool documentation

dexgs added a commit to dexgs/mumble that referenced this pull request Aug 22, 2022
Fixed chat log scaling issue introduced by PR mumble-voip#5619 (my fault, whoops)
The bug fixed by that commit is still fixed after this PR, but the
regression introduced has been resolved.

Added minimum icon size for channel status icons which now scale since PR mumble-voip#5772
Initially, icons were too small at 100% scale.
dexgs added a commit to dexgs/mumble that referenced this pull request Aug 22, 2022
Fixed chat log scaling issue introduced by PR mumble-voip#5619 (my fault, whoops)
The bug fixed by that commit is still fixed after this PR, but the
regression introduced has been resolved.

Added minimum icon size for channel status icons which now scale since PR mumble-voip#5772
Initially, icons were too small at 100% scale.
dexgs added a commit to dexgs/mumble that referenced this pull request Aug 22, 2022
Fixed chat log scaling issue introduced by PR mumble-voip#5619 (my fault, whoops)
The bug fixed by that commit is still fixed after this PR, but the
regression introduced has been resolved.

Added minimum icon size for channel status icons which now scale since PR mumble-voip#5772
Initially, icons were too small at 100% scale.
Hartmnt added a commit to Hartmnt/mumble that referenced this pull request Aug 22, 2022
Previously (mumble-voip#5772), we implemented a fix to set the status icon size
according to the user display scaling. The calculation is based upon
font sizes. However, due to an oversight, the wrong font size was used
as the base for this calculation. However, the problem was not visible,
if by coincidence the correct font size was the same as the one used by
accident.

This commit changes the calculation of the icon size once again to use
the correct font information.

Fixes one part of mumble-voip#5817
Hartmnt added a commit to Hartmnt/mumble that referenced this pull request Aug 25, 2022
Previously (mumble-voip#5772), we implemented a fix to set the status icon size
according to the user display scaling. The calculation is based upon
font sizes. However, due to an oversight, the wrong font size was used
as the base for this calculation. However, the problem was not visible,
if by coincidence the correct font size was the same as the one used by
accident.

This commit changes the calculation of the icon size once again to use
the correct font information.

Fixes one part of mumble-voip#5817
Hartmnt added a commit to Hartmnt/mumble that referenced this pull request Aug 25, 2022
Previously (mumble-voip#5772), we implemented a fix to set the status icon size
according to the user display scaling. The calculation is based upon
font sizes. However, due to an oversight, the wrong font size was used
as the base for this calculation. However, the problem was not visible,
if by coincidence the correct font size was the same as the one used by
accident.

This commit changes the calculation of the icon size once again to use
the correct font information.

Fixes one part of mumble-voip#5817
Krzmbrzl added a commit that referenced this pull request Aug 25, 2022
Previously (#5772), we implemented a fix to set the status icon size
according to the user display scaling. The calculation is based upon
font sizes. However, due to an oversight, the wrong font size was used
as the base for this calculation. However, the problem was not visible,
if by coincidence the correct font size was the same as the one used by
accident.

This commit changes the calculation of the icon size once again to use
the correct font information.

Fixes one part of #5817
Krzmbrzl pushed a commit to Krzmbrzl/mumble that referenced this pull request Sep 8, 2022
Previously (mumble-voip#5772), we implemented a fix to set the status icon size
according to the user display scaling. The calculation is based upon
font sizes. However, due to an oversight, the wrong font size was used
as the base for this calculation. However, the problem was not visible,
if by coincidence the correct font size was the same as the one used by
accident.

This commit changes the calculation of the icon size once again to use
the correct font information.

Fixes one part of mumble-voip#5817

(cherry picked from commit a587514)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug (error) in the software client ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI icon size is too small on 4K screen.
2 participants