Sharpen ApplicationMenu, Shade, ContextHelp icons
ClosedPublic

Authored by ndavis on Mar 8 2019, 3:21 AM.

Details

Summary

Parts of these icons did not line up well with the pixel grid making them seem blurry or faded. This has been fixed.

Test Plan

Before:


After:

Diff Detail

Repository
R31 Breeze
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ndavis created this revision.Mar 8 2019, 3:21 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 8 2019, 3:21 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ndavis requested review of this revision.Mar 8 2019, 3:21 AM
ndavis edited the test plan for this revision. (Show Details)Mar 8 2019, 3:22 AM
ndavis updated this revision to Diff 53405.Mar 8 2019, 4:09 AM

Fix formatting on line parameters for Shade button

zzag added a comment.Mar 8 2019, 9:33 AM

This patch makes buttons sharp only for one particular button size and font size.

ndavis added a comment.EditedMar 8 2019, 1:44 PM
In D19605#427037, @zzag wrote:

This patch makes buttons sharp only for one particular button size and font size.

You're right, but this makes it sharper at the default button+font size. Smaller sizes suffer, but larger sizes are OK for the most part. Considering how the lowest common display resolution right now is 1366x768 and the next most common display resolution is 1920x1080, I think that's a fair trade off. There aren't many people using 1280x720 or 1024x768 anymore. http://gs.statcounter.com/screen-resolution-stats/desktop/worldwide/

Ideally, it should be sharp at all sizes, but I don't know how to do that and our window buttons don't seem to be setup in a way that would allow that.

@zzag Is there anything you want me to change?

zzag added a comment.Mar 12 2019, 9:16 AM

Not really, I still think it's not worth that.

What's not worth what?

zzag added a comment.Mar 12 2019, 1:27 PM

What's not worth what?

Making some icons sharp only for particular button size and font size.

If it doesn't cause regressions for other fonts and sizes, what's the drawback? Especially if the sizes and fonts that this improves are the default settings (are they, @ndavis?)

zzag resigned from this revision.EditedMar 12 2019, 1:53 PM

Just to be clear, I'm not against good defaults. I don't like that the defaults are adjusted in such way that icons look sharp only with one particular font size and one particular button size. After all, KDE Plasma is configurable. If we focus only on making defaults look good, then what's the point of making everything configurable?

I think the current solution is good enough.

In either case, my pov is probably way too personal so I won't block this change.

zzag added a subscriber: zzag.Mar 12 2019, 1:54 PM

I think I agree that it's much better to improve things universally if we can. But if we can't, then improving things for the default settings is good too.

@ndavis, how well tested is this? We can't land this if it causes any regressions. I didn't spot any with a few font & size combinations but let's make sure we test extensively.

Also, I'd like some comments added to the code to indicate why we're using floating-point values for these.

I think I agree that it's much better to improve things universally if we can. But if we can't, then improving things for the default settings is good too.

@ndavis, how well tested is this? We can't land this if it causes any regressions. I didn't spot any with a few font & size combinations but let's make sure we test extensively.

Also, I'd like some comments added to the code to indicate why we're using floating-point values for these.

It's not that well tested, but I've seen enough to know that this will still be a slight improvement for most users.

As I've said in a previous comment, smaller button/font size combinations suffer. I justified it by saying that resolutions below 1366x768 were rare these days. Larger button/font size combinations are OK because the lines get thicker, but with the git master version or with this patch, it won't be perfect.

I also said that the current approach does not allow much flexibility. One size does not fit all, so any change will improve some things and make other things worse. I chose to make the defaults better.

The easiest way to get sharp icons at all sizes would be to create multiple fixed sizes, but I don't know how to do that. Currently, an icon is defined at one size. I assume the button size settings scale things relative to the font size. For example, Very Large with 10pt Noto Sans is much larger than Very Large with 6pt Noto Sans.

ngraham accepted this revision.Mar 12 2019, 7:58 PM

Could not find any visual regressions at multiple integer and fractional scale factors with several fonts and plausible sizes (9pt, 11pt, 12pt). I say ship it.

This revision is now accepted and ready to land.Mar 12 2019, 7:58 PM
This revision was automatically updated to reflect the committed changes.