[WIP] Add a ShadowedRectangle item

Authored by ahiemstra on Mar 11 2020, 1:47 PM.

Description

[WIP] Add a ShadowedRectangle item

Summary:
This adds a ShadowedRectangle item, which is a rectangle with a shadow.
It uses a custom shader that draws the rectangle and the shadow below it
using distance fields, which has significantly better performance compared
to the DropShadow effect.

This is a first step to moving more of AbstractCard and related items to
C++ code. Other bits will include a ShadowedImage item and moving actual
card code to C++.

Test Plan: TBD

Reviewers: Kirigami

Subscribers: plasma-devel

Tags: Kirigami

Differential Revision: https://phabricator.kde.org/D27984

Details

Committed
ahiemstraMar 11 2020, 3:19 PM
Differential Revision
D27984: Add a ShadowedRectangle item
Parents
R169:8b232ee5eab3: Rename ElevatedRectangle to ShadowedRectangle
Branches
Unknown
Tags
Unknown