Bug 338183

Summary: Plasma scales the user sets icon sizes
Product: [Plasma] plasmashell Reporter: enoopt.adams
Component: Widget Explorer sidebarAssignee: David Edmundson <kde>
Status: RESOLVED DUPLICATE    
Severity: minor CC: sebas
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Picture of problem

Description enoopt.adams 2014-08-11 07:49:00 UTC
Created attachment 88214 [details]
Picture of problem

The widget icons are oversized, taking up so much room that the title of widgets gets truncated.
Comment 1 David Edmundson 2014-08-21 16:41:14 UTC
I use 
width: units.iconSizes.huge


which comes from.    

m_iconSizes->insert("huge", devicePixelIconSize(KIconLoader::SizeHuge));

which in turn is scaling
QGuiApplication::primaryScreen()->physicalDotsPerInchX()
--

enoopt, can you include output from "xrandr -q"


--
I don't know why we don't just use the user's set icon size that they set in the icons KCM. Seems like it'd be better than randomly scaling things ourselves.
Comment 2 David Edmundson 2014-08-21 16:51:55 UTC

*** This bug has been marked as a duplicate of bug 338308 ***
Comment 3 Sebastian Kügler 2014-08-25 09:35:30 UTC
We are not "randomly scaling" the icons ourselves, we're relying on DPI information to scale the icon size according to the DPI value. I guess you know that, so not sure where the random comes from.

Using the settings from the user can still be done, and will take effect, but the DPI scaling will be intact, so it's not breaking that feature. Ignoring DPI will mean that we lose all the HiDPI goodness we introduced with exactly this scaling algorithm -- a huge step back for many users.
Comment 4 David Edmundson 2014-08-25 10:33:58 UTC
Random == DPI calculations from X can't be trusted and in some cases (many it seems) are completely random.

It's why we use the user's font size everywhere else, except for icons.