Fix initial button flickering in Plastik QML
Disable animations till the decoration is completel loaded. This ensures that the buttons do not flicker because of the animation from black to their respective color.
This commit is contained in:
parent
728b47ef07
commit
ae99d9bc6e
1 changed files with 3 additions and 1 deletions
|
@ -59,6 +59,7 @@ Decoration {
|
||||||
}
|
}
|
||||||
root.animateButtons = decoration.readConfig("animateButtons", true);
|
root.animateButtons = decoration.readConfig("animateButtons", true);
|
||||||
root.titleShadow = decoration.readConfig("titleShadow", true);
|
root.titleShadow = decoration.readConfig("titleShadow", true);
|
||||||
|
root.animationDuration = 150;
|
||||||
}
|
}
|
||||||
ColorHelper {
|
ColorHelper {
|
||||||
id: colorHelper
|
id: colorHelper
|
||||||
|
@ -70,7 +71,8 @@ Decoration {
|
||||||
property alias buttonSize: titleRow.captionHeight
|
property alias buttonSize: titleRow.captionHeight
|
||||||
property alias titleAlignment: caption.horizontalAlignment
|
property alias titleAlignment: caption.horizontalAlignment
|
||||||
property color titleBarColor: options.titleBarColor
|
property color titleBarColor: options.titleBarColor
|
||||||
property int animationDuration: 150
|
// set by readConfig after Component completed, ensures that buttons do not flicker
|
||||||
|
property int animationDuration: 0
|
||||||
property bool animateButtons: true
|
property bool animateButtons: true
|
||||||
property bool titleShadow: true
|
property bool titleShadow: true
|
||||||
Behavior on titleBarColor {
|
Behavior on titleBarColor {
|
||||||
|
|
Loading…
Reference in a new issue