mirror of
https://github.com/stemoretti/BaseUI.git
synced 2025-07-18 04:54:22 -04:00
Allow the toolbar color to be the same as the theme background and small fixes
This commit is contained in:
@ -72,6 +72,11 @@ Item {
|
||||
toMiddleTime = Math.abs(minAngle - handToAnimation.to) / 180 * 400
|
||||
fromMiddleTime = Math.abs(hourAngle - handFromAnimation.from) / 180 * 400
|
||||
}
|
||||
var animTime = toMiddleTime + fromMiddleTime
|
||||
if (animTime > 0 && animTime < 200) {
|
||||
toMiddleTime = toMiddleTime / animTime * 200
|
||||
fromMiddleTime = fromMiddleTime / animTime * 200
|
||||
}
|
||||
handToAnimation.duration = circleToAnimation.duration = toMiddleTime
|
||||
handFromAnimation.duration = circleFromAnimation.duration = fromMiddleTime
|
||||
|
||||
@ -191,7 +196,7 @@ Item {
|
||||
height: width
|
||||
radius: width / 2
|
||||
anchors.centerIn: parent
|
||||
visible: root.pickMinutes && root.minutes % 5
|
||||
visible: root.pickMinutes && !animation.running && root.minutes % 5
|
||||
color: root.labelDotColor
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user