mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-11 17:20:04 +08:00
Compare commits
1 Commits
eb23490de8
...
f4def3a183
Author | SHA1 | Date | |
---|---|---|---|
|
f4def3a183 |
@ -1,6 +1,3 @@
|
|||||||
# 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,9 +15,7 @@ Canvas {
|
|||||||
function animateToNewData()
|
function animateToNewData()
|
||||||
{
|
{
|
||||||
chartAnimationProgress = 0.1;
|
chartAnimationProgress = 0.1;
|
||||||
if (d.jsChart) {
|
d.jsChart?.update();
|
||||||
d.jsChart.update();
|
|
||||||
}
|
|
||||||
chartAnimator.restart();
|
chartAnimator.restart();
|
||||||
}
|
}
|
||||||
QtObject{
|
QtObject{
|
||||||
|
@ -41,18 +41,16 @@ ProgressBar{
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
radius: d._radius
|
radius: d._radius
|
||||||
color: control.color
|
color: control.color
|
||||||
SequentialAnimation on x {
|
PropertyAnimation on x {
|
||||||
id: animator_x
|
id:animator_x
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
loops: Animation.Infinite
|
|
||||||
PropertyAnimation {
|
|
||||||
from: -rect_progress.width
|
from: -rect_progress.width
|
||||||
to: control.width + rect_progress.width
|
to:control.width+rect_progress.width
|
||||||
|
loops: Animation.Infinite
|
||||||
duration: control.duration
|
duration: control.duration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
FluText{
|
FluText{
|
||||||
text:(control.visualPosition * 100).toFixed(0) + "%"
|
text:(control.visualPosition * 100).toFixed(0) + "%"
|
||||||
visible: {
|
visible: {
|
||||||
|
@ -14,9 +14,7 @@ Canvas {
|
|||||||
function animateToNewData()
|
function animateToNewData()
|
||||||
{
|
{
|
||||||
chartAnimationProgress = 0.1;
|
chartAnimationProgress = 0.1;
|
||||||
if (d.jsChart) {
|
d.jsChart?.update();
|
||||||
d.jsChart.update();
|
|
||||||
}
|
|
||||||
chartAnimator.restart();
|
chartAnimator.restart();
|
||||||
}
|
}
|
||||||
QtObject{
|
QtObject{
|
||||||
|
@ -42,18 +42,16 @@ ProgressBar{
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
radius: d._radius
|
radius: d._radius
|
||||||
color: control.color
|
color: control.color
|
||||||
SequentialAnimation on x {
|
PropertyAnimation on x {
|
||||||
id: animator_x
|
id:animator_x
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
loops: Animation.Infinite
|
|
||||||
PropertyAnimation {
|
|
||||||
from: -rect_progress.width
|
from: -rect_progress.width
|
||||||
to: control.width + rect_progress.width
|
to:control.width+rect_progress.width
|
||||||
|
loops: Animation.Infinite
|
||||||
duration: control.duration
|
duration: control.duration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
FluText{
|
FluText{
|
||||||
text:(control.visualPosition * 100).toFixed(0) + "%"
|
text:(control.visualPosition * 100).toFixed(0) + "%"
|
||||||
visible: {
|
visible: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user