mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-10 16:55:40 +08:00
Compare commits
4 Commits
c9e0732f99
...
8ab0cde2e9
Author | SHA1 | Date | |
---|---|---|---|
|
8ab0cde2e9 | ||
|
0171c3609a | ||
|
489526988d | ||
|
9d32e8e13b |
@ -1,3 +1,6 @@
|
|||||||
|
# ATTENTION! THIS REPO HAS BEEN DEPRECATED!
|
||||||
|
# PLEASE USE THE BRAND NEW [FluentUI2](https://github.com/zhuzichu520/FluentUI2) INSTEAD!
|
||||||
|
# THIS REPO IS NO LONGER MAINTAINED.
|
||||||
<div align=center>
|
<div align=center>
|
||||||
<img width=64 src="doc/preview/fluent_design.svg">
|
<img width=64 src="doc/preview/fluent_design.svg">
|
||||||
|
|
||||||
|
@ -15,7 +15,9 @@ Canvas {
|
|||||||
function animateToNewData()
|
function animateToNewData()
|
||||||
{
|
{
|
||||||
chartAnimationProgress = 0.1;
|
chartAnimationProgress = 0.1;
|
||||||
d.jsChart?.update();
|
if (d.jsChart) {
|
||||||
|
d.jsChart.update();
|
||||||
|
}
|
||||||
chartAnimator.restart();
|
chartAnimator.restart();
|
||||||
}
|
}
|
||||||
QtObject{
|
QtObject{
|
||||||
|
@ -41,13 +41,15 @@ ProgressBar{
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
radius: d._radius
|
radius: d._radius
|
||||||
color: control.color
|
color: control.color
|
||||||
PropertyAnimation on x {
|
SequentialAnimation on x {
|
||||||
id:animator_x
|
id: animator_x
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
from: -rect_progress.width
|
|
||||||
to:control.width+rect_progress.width
|
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
duration: control.duration
|
PropertyAnimation {
|
||||||
|
from: -rect_progress.width
|
||||||
|
to: control.width + rect_progress.width
|
||||||
|
duration: control.duration
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,9 @@ Canvas {
|
|||||||
function animateToNewData()
|
function animateToNewData()
|
||||||
{
|
{
|
||||||
chartAnimationProgress = 0.1;
|
chartAnimationProgress = 0.1;
|
||||||
d.jsChart?.update();
|
if (d.jsChart) {
|
||||||
|
d.jsChart.update();
|
||||||
|
}
|
||||||
chartAnimator.restart();
|
chartAnimator.restart();
|
||||||
}
|
}
|
||||||
QtObject{
|
QtObject{
|
||||||
|
@ -42,13 +42,15 @@ ProgressBar{
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
radius: d._radius
|
radius: d._radius
|
||||||
color: control.color
|
color: control.color
|
||||||
PropertyAnimation on x {
|
SequentialAnimation on x {
|
||||||
id:animator_x
|
id: animator_x
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
from: -rect_progress.width
|
|
||||||
to:control.width+rect_progress.width
|
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
duration: control.duration
|
PropertyAnimation {
|
||||||
|
from: -rect_progress.width
|
||||||
|
to: control.width + rect_progress.width
|
||||||
|
duration: control.duration
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user