File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,7 @@ QML_RES_QML = \
333
333
qml/components/ConnectionOptions.qml \
334
334
qml/components/ConnectionSettings.qml \
335
335
qml/components/DeveloperOptions.qml \
336
+ qml/components/PeersIndicator.qml \
336
337
qml/components/StorageLocations.qml \
337
338
qml/components/StorageOptions.qml \
338
339
qml/components/StorageSettings.qml \
Original file line number Diff line number Diff line change 5
5
<file>components/BlockCounter.qml</file>
6
6
<file>components/ConnectionOptions.qml</file>
7
7
<file>components/ConnectionSettings.qml</file>
8
+ <file>components/PeersIndicator.qml</file>
8
9
<file>components/DeveloperOptions.qml</file>
9
10
<file>components/StorageLocations.qml</file>
10
11
<file>components/StorageOptions.qml</file>
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2023 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ import QtQuick 2.15
6
+ import QtQuick.Layouts 1.15
7
+ import "../controls"
8
+
9
+ RowLayout {
10
+ id: root
11
+ required property int numOutboundPeers
12
+ required property int maxNumOutboundPeers
13
+ property int size: 5
14
+
15
+ spacing: 5
16
+ Repeater {
17
+ model: 5
18
+ Rectangle {
19
+ width: 3
20
+ height: 3
21
+ radius: width / 2
22
+ color: Theme .color .neutral9
23
+ opacity: (index === 0 && root .numOutboundPeers > 0 ) || (index + 1 <= root .size * root .numOutboundPeers / root .maxNumOutboundPeers ) ? 0.95 : 0.45
24
+ Behavior on opacity { OpacityAnimator { duration: 100 } }
25
+ SequentialAnimation on opacity {
26
+ loops: Animation .Infinite
27
+ running: numOutboundPeers === 0 && index === 0
28
+ SmoothedAnimation { to: 0 ; velocity: 2.2 }
29
+ SmoothedAnimation { to: 1 ; velocity: 2.2 }
30
+ }
31
+ }
32
+ }
33
+ }
You can’t perform that action at this time.
0 commit comments