Created attachment 127678 [details] top left corner of a ShadowedRectangle with default parameters SUMMARY The sides of ShadowedRectangle are not pixel aligned, but the corners are. STEPS TO REPRODUCE 1. Create a ShadowedRectangle. Default parameters or any combination of border and shadow parameters will work. OBSERVED RESULT Sides are farther inside than the corners EXPECTED RESULT Sides should be pixel aligned and aligned with the corners SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20200415 KDE Plasma Version: 5.18.80 (git master) KDE Frameworks Version: 5.70 (git master) Qt Version: 5.14.1
Created attachment 127679 [details] red border with a width of 2 Actually, I'm not exactly sure how to describe it succinctly with words now, but this screenshot should show the issue.
I have just landed https://phabricator.kde.org/D28625 which contains a fix for a pixel alignment issue I saw with the border. Please try and see if that also fixes your case.
Created attachment 127756 [details] Kirigami cards after D28625 Unfortunately, it didn't fix the issue. Even if I hardcode the border size in DefaultCardBackground to 1, it still looks the same as the picture I've just attached.
*** Bug 420404 has been marked as a duplicate of this bug. ***
I did some further tweaking in https://phabricator.kde.org/D29092 . This still has some slightly haloing around certain edges, which unfortunately is pretty much unavoidable with the rendering techniques involved without sacrificing any antialiasing for the corners.