[RFC] Also animate the Cancel button

Authored by davidre on Sat, Jul 20, 8:03 AM.

Description

[RFC] Also animate the Cancel button

Summary:
Adds a new class ProgressButton which is a ToolButton that displays the
screenshot delay. This is achieved by first painting the button, then
a smaller transparent button on top. The width of this overlay is proportional
to the elapsed time and the color is provided by KColorScheme::PositiveText.
Finally the icon and text are drawn on top.

Test Plan:



Reviewers: Spectacle, broulik, mart, VDG, ngraham

Reviewed By: Spectacle, VDG, ngraham

Subscribers: ngraham, ndavis, Spectacle

Tags: Spectacle

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

Details

Committed
davidreSat, Jul 20, 8:04 AM
Reviewer
Spectacle
Differential Revision
D22324: [RFC] Also animate the Cancel button
Parents
R166:49f0e962f01b: Merge branch 'Applications/19.08'
Branches
Unknown
Tags
Unknown