Add ShadowedImage and ShadowedTexture items

Authored by ahiemstra on Mar 23 2020, 4:35 PM.

Description

Add ShadowedImage and ShadowedTexture items

Summary:
This adds the ShadowedImage and ShadowedTexture items. The first is a
QML-only item that makes use of the second. The second is a
ShadowedRectangle that uses a texture as color source for the item
instead of just a color.

It also does some cleanup on the scenegraph/shader related bits
introduced with ShadowedRectangle. Most importantly, it removes the
mostly duplicated core shaders in favour of a simple solution using
a #define.

Test Plan:
There's a manual test included. It should look like this:

Reviewers: Kirigami, mart

Reviewed By: Kirigami, mart

Subscribers: mart, plasma-devel

Tags: Kirigami

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

Details

Committed
ahiemstraMar 31 2020, 1:25 PM
Reviewer
Kirigami
Differential Revision
D28222: Add ShadowedImage and ShadowedTexture items
Parents
R169:9b6ec041936a: [controls/formlayout] Don't attempt to reset implicitWidth
Branches
Unknown
Tags
Unknown