Skip to content
This repository has been archived by the owner on Apr 14, 2018. It is now read-only.

Commit

Permalink
Workaround for pulsing updating label on cover page with long strings
Browse files Browse the repository at this point in the history
Fix #27
  • Loading branch information
tigre-bleu committed Feb 6, 2014
1 parent b380a8a commit bd30205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reader/sailfishos/qml/Pages/CoverPage.qml
Expand Up @@ -119,7 +119,9 @@ CoverBackground {

onTriggered: {
var a = angle;
parent.opacity = 0.5 + 0.5 * Math.sin(angle * (Math.PI / 180.0));
var opacity = 0.5 + 0.5 * Math.sin(angle * (Math.PI / 180.0));
// Workaround for Silica's bug on opacity != 0 on cover page when label is truncated with fading
parent.color = Theme.rgba(Theme.highlightColor, opacity)
angle = (angle + 10) % 360;
}
}
Expand Down

0 comments on commit bd30205

Please sign in to comment.