Show high-resolution and vector logos properly in HighDPI mode
ClosedPublic

Authored by acrouthamel on Feb 20 2018, 4:19 PM.

Details

Summary

Take the device pixel ratio into consideration when rendering the logo, so it looks nice in HighDPI mode.

BUG: 390605

Main Window Before:

Main Window After:

Settings Before:

Settings After:

Test Plan

Tested with SVG icons.

Diff Detail

Repository
R473 KTorrent
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
acrouthamel requested review of this revision.Feb 20 2018, 4:19 PM
acrouthamel created this revision.
acrouthamel added a reviewer: stikonas.
stikonas accepted this revision.Feb 20 2018, 4:21 PM

Looks good.

This revision is now accepted and ready to land.Feb 20 2018, 4:21 PM
acrouthamel edited the summary of this revision. (Show Details)Feb 20 2018, 4:21 PM

Nice first patch! For these kinds of user-facing bugs, I like to include before-and-after screenshots, like you can see in D10357: Show high-resolution and vector logos properly in HighDPI mode.

This makes it easier for reviewers to verify the fix, and for me to feature the fix in the next week's Usability & Productivity blog post. :)

Just to confirm, you don't have commit access yet? I should commit it for you?

Yeah, I'm completely new to this. If I need permissions to something, or I did something wrong, please let me know. :)

Yeah, I'm completely new to this. If I need permissions to something, or I did something wrong, please let me know. :)

No it's fine. I just needed to know whether you can commit it yourself. I can commit it for you but I need your email
for attribution in the git commit (and name too but I can see it in your phabricator profile).

After a few patches you can easily get commit access.

Ok cool. Email: crouthamela@gmail.com

acrouthamel edited the summary of this revision. (Show Details)Feb 20 2018, 4:46 PM
acrouthamel edited the summary of this revision. (Show Details)Feb 20 2018, 4:49 PM

Lovely first patch.

nicolasfella added a subscriber: nicolasfella.EditedFeb 20 2018, 5:37 PM

I think you labeled the screenshots the wrong way

It looks OK to me?

Are you saying those icons should be that small?

That's just my Papirus theme, the Breeze icons aren't like that.

Note to self - Use Breeze icons in screenshots. Lol.

It does look like rendering the icons correctly in HiDPI makes some of them a bit smaller, but if that's actually problem, it's one we should solve in another patch IMHO.

I don't know the before state, but just by looking at the screenshots from my phone I like the first and the third better

I don't know the before state, but just by looking at the screenshots from my phone I like the first and the third better

First and third are clearly more pixelated.

The issue is moot; with standard Breeze icons, they don't get smaller when they're rendered correctly, so everything's fine. If there's a bug, apparently it's with the Papirus icons.

I don't know the before state, but just by looking at the screenshots from my phone I like the first and the third better

First and third are clearly more pixelated.

Didn't see that from my phone :)

acrouthamel edited the summary of this revision. (Show Details)Feb 20 2018, 5:50 PM
ngraham accepted this revision.Feb 20 2018, 5:50 PM

I think this could land. Wanna do the honors, @stikonas?

I updated the description with new screenshots with Breeze. You can see size doesn't change. The bottom icons are blue now... but that's a Breeze thing then.

I think this could land. Wanna do the honors, @stikonas?

Ok, I'll commit.

This revision was automatically updated to reflect the committed changes.