Commit 4056e24b authored by George Vogiatzis's avatar George Vogiatzis Committed by Nate Graham

[Folder view]Make shadow scale aware

Summary: Added devicePixelRatio to shadow's radius.

Test Plan:
Check the shadow of items on the desktop.
Compare scale 100% vs big display scale (e.g. 300%).
Before: Shadow is invisible.
After: Visible shadow at every display scale.

Before vs After
Scale 300% and 100%
{F8097331,size=full}

Reviewers: #plasma, #vdg, apol, ngraham, davidedmundson

Reviewed By: #plasma, #vdg, apol, ngraham, davidedmundson

Subscribers: broulik, davidedmundson, apol, ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27316
parent ca9f0eeb
......@@ -429,8 +429,8 @@ Item {
verticalOffset: 1
radius: 5
samples: 10
radius: Math.round(5 * units.devicePixelRatio)
samples: radius * 2 + 1
spread: 0.05
color: "black"
......@@ -454,8 +454,8 @@ Item {
horizontalOffset: 1
verticalOffset: 1
radius: 4
samples: 9
radius: Math.round(4 * units.devicePixelRatio)
samples: radius * 2 + 1
spread: 0.35
color: "black"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment