Summary: | Strange values of units.iconSizes.smallMedium with different DPI scaling | ||
---|---|---|---|
Product: | [Frameworks and Libraries] libplasma | Reporter: | popov895 <popov895> |
Component: | libplasma | Assignee: | Marco Martin <notmart> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | nate, plasma-bugs, popov895 |
Priority: | NOR | ||
Version: | 5.75.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Toolbutton scaling |
Description
popov895
2020-10-23 13:18:25 UTC
Created attachment 132679 [details]
Toolbutton scaling
Here's an example of scaling a toolbutton. The area of the toolbutton is filled in blue and the area of the icon is filled in yellow. As you can see, the scaling looks pretty strange: padding inside a toolbutton isn't scaled at all and the content of the icon has different sizes for different scales (100% and 125% - 16px, 150% and 200% - 24px).
> It seems like svg icons should render fine at any scaling If you had a screen with infinite resolution, they would. In reality, even SVGs get blurry when you take a small icon that is pixel-aligned and scale it up by 10 0r 25 or 50%. This is why Plasma's native scaling uses this complicated and sometimes unexpected behavior. If you want icons to be unconditionally scaled, you have to use Qt scaling, which does that you seem to expect--at the cost of blurry icons when using fractional scaling with a low resolution screen. To use Qt scaling, use Wayland (where it is always used) or on X11 set the environment variable PLASMA_USE_QT_SCALING=1. *** This bug has been marked as a duplicate of bug 356446 *** *** This bug has been marked as a duplicate of bug 390147 *** |