Index: leahi.qrc
===================================================================
diff -u -r7805806e4370be4d9207872e916f478875bd4ba6 -r90fec29e26dde73ba3cc6db04c5334fff430d2f7
--- leahi.qrc (.../leahi.qrc) (revision 7805806e4370be4d9207872e916f478875bd4ba6)
+++ leahi.qrc (.../leahi.qrc) (revision 90fec29e26dde73ba3cc6db04c5334fff430d2f7)
@@ -137,7 +137,7 @@
sources/gui/qml/components/Footer.qml
sources/gui/qml/components/TextEntry.qml
sources/gui/qml/components/ScrollBar.qml
- sources/gui/qml/compounds/Fader.qml
+ sources/gui/qml/components/Fader.qml
sources/gui/qml/components/FooterStatic.qml
sources/gui/qml/components/TimeEntry.qml
sources/gui/qml/components/Label.qml
Index: sources/gui/qml/components/Fader.qml
===================================================================
diff -u
--- sources/gui/qml/components/Fader.qml (revision 0)
+++ sources/gui/qml/components/Fader.qml (revision 90fec29e26dde73ba3cc6db04c5334fff430d2f7)
@@ -0,0 +1,49 @@
+/*!
+ *
+ * Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved.
+ * \copyright
+ * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN
+ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER.
+ *
+ * \file Fader.qml
+ * \author (last) Behrouz NematiPour
+ * \date (last) 01-Jul-2021
+ * \author (original) Behrouz NematiPour
+ * \date (original) 11-May-2021
+ *
+ */
+
+// Qt
+import QtQuick 2.12
+
+// Project
+// Qml imports
+
+/*!
+ * \brief Denali project Fader Component can provide a consistent fading colors of the specified property.
+ */
+SequentialAnimation {
+ property var fadingProperyTarget : target
+ property bool fadingProperyRunning: false
+ property string fadingProperyName : ""
+ property var fadingProperyValue : undefined
+
+ // loops : Animation.Infinite
+ // alwaysRunToEnd : true
+ // running : // TODO : it has some bugs if while is runnig background changes, but since it has been used for fault mode we may not get any other message level.
+ // fadingProperyTarget.visible
+ // && fadingProperyRunning
+ // ColorAnimation {
+ // target : fadingProperyTarget
+ // property : fadingProperyName
+ // to : Qt.darker(fadingProperyValue)
+ // duration : 1000
+ // }
+ //
+ // ColorAnimation {
+ // target : fadingProperyTarget
+ // property : fadingProperyName
+ // to : fadingProperyValue
+ // duration : 1000
+ // }
+}
Index: sources/gui/qml/components/ProgressBarEx.qml
===================================================================
diff -u -rcf3ef3656c06ade00b6bc6c09e8e0f858ee1af24 -r90fec29e26dde73ba3cc6db04c5334fff430d2f7
--- sources/gui/qml/components/ProgressBarEx.qml (.../ProgressBarEx.qml) (revision cf3ef3656c06ade00b6bc6c09e8e0f858ee1af24)
+++ sources/gui/qml/components/ProgressBarEx.qml (.../ProgressBarEx.qml) (revision 90fec29e26dde73ba3cc6db04c5334fff430d2f7)
@@ -51,12 +51,12 @@
onClicked: extraClicked()
}
- Rectangle { id: _rightBackground // to match design and get the right end of progress bar straight and not rounded
+ Rectangle { id: _rightBackground // to match design and get the right end of progress bar straight edged and not rounded
+ property int percent: ((value / (maximum - minimum)) * 100)
color: gradientEnd
height: parent.height
- width: 20
+ width: percent < 3 ? 2 : 8
anchors.right: progress.right
- visible: value > 0
-
+ visible: percent > 3
}
}
Fisheye: Tag 90fec29e26dde73ba3cc6db04c5334fff430d2f7 refers to a dead (removed) revision in file `sources/gui/qml/compounds/Fader.qml'.
Fisheye: No comparison available. Pass `N' to diff?