Allow setting separate corner radii for ShadowedRectangle
ClosedPublic

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

Details

Summary

This adds a "corners" grouped property that allows setting separate radii for
the different corners of ShadowedRectangle. By default, these are ignored and
instead the value of "radius" is used.

Test Plan

The manual test has been updated, it should look like this:

Diff Detail

Repository
R169 Kirigami
Branch
shadowedrect_separatecorners
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 24593
Build 24611: arc lint + arc unit
ahiemstra created this revision.Mar 26 2020, 4:35 PM
Restricted Application added a project: Kirigami. · View Herald TranscriptMar 26 2020, 4:35 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ahiemstra requested review of this revision.Mar 26 2020, 4:35 PM
ahiemstra updated this revision to Diff 78574.Mar 26 2020, 4:35 PM
  • Update test
ahiemstra edited the test plan for this revision. (Show Details)Mar 26 2020, 4:37 PM

Cool

src/shadowedrectangle.h
162

How about using NaN to define "not set"? though you can't have negative radius, so probably fine

ahiemstra updated this revision to Diff 79075.Apr 1 2020, 6:10 PM

Rebase onto master, also support ShadowedTexture

mart accepted this revision.Apr 6 2020, 8:59 AM
This revision is now accepted and ready to land.Apr 6 2020, 8:59 AM
This revision was automatically updated to reflect the committed changes.