aboutsummaryrefslogtreecommitdiff
path: root/components/PrivacyLevel.qml
diff options
context:
space:
mode:
authormarcin <z.krzysztoff7@gmail.com>2014-07-13 14:27:50 +0200
committermarcin <z.krzysztoff7@gmail.com>2014-07-13 14:27:50 +0200
commit49bb4516f2b32f926f33a7600657222619b73381 (patch)
tree38532ce5daf4676668a54a1ade0e0975832932e3 /components/PrivacyLevel.qml
parent5085aa3a64bae93de50f98a53f28d95c27496a1a (diff)
downloadmonzero-gui-49bb4516f2b32f926f33a7600657222619b73381.tar.gz
monzero-gui-49bb4516f2b32f926f33a7600657222619b73381.tar.xz
monzero-gui-49bb4516f2b32f926f33a7600657222619b73381.zip
shortcuts fix + ctrl+tab/ctrl+shift+tab functionality + heperlinks fix
Diffstat (limited to 'components/PrivacyLevel.qml')
-rw-r--r--components/PrivacyLevel.qml17
1 files changed, 15 insertions, 2 deletions
diff --git a/components/PrivacyLevel.qml b/components/PrivacyLevel.qml
index f5ada015..19645b07 100644
--- a/components/PrivacyLevel.qml
+++ b/components/PrivacyLevel.qml
@@ -32,12 +32,26 @@ Item {
anchors.left: parent.left
anchors.margins: 4
radius: 2
+ width: row.x
+
color: {
if(item.fillLevel < 3) return "#FF6C3C"
if(item.fillLevel < repeater.count - 1) return "#FFE00A"
return "#36B25C"
}
- width: row.x
+
+ Timer {
+ interval: 500
+ running: true
+ repeat: false
+ onTriggered: fillRect.loaded = true
+ }
+
+ property bool loaded: false
+ Behavior on width {
+ enabled: fillRect.loaded
+ NumberAnimation { duration: 100; easing.type: Easing.InQuad }
+ }
}
MouseArea {
@@ -82,7 +96,6 @@ Item {
width: 1
height: 48
property bool mainTick: index === 0 || index === 3 || index === repeater.count - 1
-
Component.onCompleted: repeater.modelItems[index] = delegate
Image {