Bug 355866 - Svg size hint should be scaled by device pixel ratio
Summary: Svg size hint should be scaled by device pixel ratio
Status: RESOLVED DUPLICATE of bug 390147
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-24 21:59 UTC by Kai Uwe Broulik
Modified: 2021-07-28 16:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2015-11-24 21:59:30 UTC
The size hint provided by the icon, for example 22-22-foo is to load a less detailed graphic when a smaller icon is requested. On a high dpi screen it will request a larger icon that will eventually be rendered on the same physical area as on a low dpi screen making the icon hard to see due to thin lines.

Reproducible: Always

Steps to Reproduce:
1. Have high dpi screen
2. Look at battery icon in tray
3.

Actual Results:  
It is using the regular Fill icons

Expected Results:  
It should be using the 22-22-Fill icons because it's a small icon
Comment 1 Marco Martin 2015-11-24 22:13:10 UTC
this happens using QT_DEVICE_PIXEL_RATIO or the internal way?
Comment 2 Kai Uwe Broulik 2015-11-24 22:14:52 UTC
It's using Units::devicePixelRatio() as far as I can see
Comment 3 Nate Graham 2020-11-30 21:34:50 UTC
Is this related to or the same issue as Bug 390147?
Comment 4 Nate Graham 2021-07-28 16:48:38 UTC
In fact this is fixed by the fix for Bug 390147; duping.

*** This bug has been marked as a duplicate of bug 390147 ***