[Timer applet] Reset opacity on timer start and reset

Authored by muhlenpfordt on Aug 9 2018, 8:22 AM.


[Timer applet] Reset opacity on timer start and reset

When the Timer plasmoid is paused an opacity animation is used to
signal this state. After resuming, restarting or resetting the timer
the current opacity value is not reset which leads to nearly
invisible and hard to read timer digits sometimes.
This patch sets the opacity to 100% on timer (re)start and reset.

BUG: 396497

Test Plan:

  • Start Timer plasmoid with e.g. 5 minutes countdown
  • Pause Timer by click
  • When opacity is low
    • Resume by click or
    • Restart with predefined time or
    • Reset timer
  • Opacity of running timer should always reset to 100%

Reviewers: Plasma, davidedmundson

Reviewed By: Plasma, davidedmundson

Subscribers: plasma-devel

Tags: Plasma

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