Skip to content
Commit 1c92fa09 authored by David Redondo's avatar David Redondo 🏎
Browse files

[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:
{F6995537}
{F6990936}
{F6990938}

Reviewers: #spectacle, broulik, mart, #vdg, ngraham

Reviewed By: #spectacle, #vdg, ngraham

Subscribers: ngraham, ndavis, #spectacle

Tags: #spectacle

Differential Revision: https://phabricator.kde.org/D22324
parent 49f0e962
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment