Bug 425745 - ShadowedRectangle produces huge inconsistent shadows for specific use case
Summary: ShadowedRectangle produces huge inconsistent shadows for specific use case
Status: REPORTED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: Master
Platform: Other Linux
: NOR normal
Target Milestone: Not decided
Assignee: Arjen Hiemstra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-24 13:50 UTC by Michail Vourlakos
Modified: 2020-10-28 09:14 UTC (History)
2 users (show)

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


Attachments
ShadowedRectangle with `shadow.size: 18` and `height: 18` (6.46 KB, image/png)
2020-10-11 19:27 UTC, Noah Davis
Details
width `height: 32` and `shadow.size: 36` (38.67 KB, image/png)
2020-10-11 19:39 UTC, Noah Davis
Details
height: 32, shadow.size: 31 (38.80 KB, image/png)
2020-10-11 19:49 UTC, Noah Davis
Details
ShadowedRectangle Visual Debugger (1.27 KB, text/x-qml)
2020-10-28 09:12 UTC, Michail Vourlakos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michail Vourlakos 2020-08-24 13:50:57 UTC
SUMMARY
Playing around with ShadowedRectangle the following use case creates huge shadows even though it should not.

when: min(rect_width,rect_height) > shadow_size

in that case the shadows become too large and are much bigger than the specified shadow_size.

Example:
for Rectangle, w=100px, h=30px., shadow=30px. everything looks just fine but if the shadow size changes to 31px. then the produced shadow is much bigger than 31px. and occupies very big area with no obvious reason.
Comment 1 Noah Davis 2020-10-11 19:26:12 UTC
I can reproduce this
Comment 2 Noah Davis 2020-10-11 19:27:29 UTC
Created attachment 132281 [details]
ShadowedRectangle with `shadow.size: 18` and `height: 18`
Comment 3 Noah Davis 2020-10-11 19:39:42 UTC
Created attachment 132283 [details]
width `height: 32` and `shadow.size: 36`
Comment 4 Noah Davis 2020-10-11 19:48:21 UTC
Actually, I'm not sure I reproduce the issue as you described it because having a shadow size lower than the width or height doesn't necessarily create a shadow that is actually smaller than the width or height.
Comment 5 Noah Davis 2020-10-11 19:49:55 UTC
Created attachment 132284 [details]
height: 32, shadow.size: 31
Comment 6 Bug Janitor Service 2020-10-26 04:33:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Michail Vourlakos 2020-10-28 09:12:28 UTC
Created attachment 132826 [details]
ShadowedRectangle Visual Debugger
Comment 8 Michail Vourlakos 2020-10-28 09:14:25 UTC
You are right, with KF5 5.75 I can not reproduce... I sent also a ShadowedRectangle Visual Debugger with validate results.

With the visual debugger I reproduce a new bug that very big shadows are cut out.

For example,
height: 30px.
shadow: 50px.

should I open a new bug report or this is known?