File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
5
import QtQuick 2.15
6
- import QtQuick.Layouts 1.15
7
6
import "../controls"
8
7
9
- RowLayout {
8
+ Row {
10
9
id: root
11
10
required property int numOutboundPeers
12
11
required property int maxNumOutboundPeers
13
12
required property bool paused
14
13
property int size: 5
14
+ property real indicatorDimensions: 3
15
+ property real indicatorSpacing: 5
15
16
16
- spacing: 5
17
+ height: root .indicatorDimensions
18
+
19
+ spacing: root .indicatorSpacing
17
20
Repeater {
18
21
model: 5
19
22
Rectangle {
20
- width: 3
21
- height: 3
23
+ width: root . indicatorDimensions
24
+ height: root . indicatorDimensions
22
25
radius: width / 2
23
26
color: Theme .color .neutral9
24
27
opacity: (index === 0 && root .numOutboundPeers > 0 ) || (index + 1 <= root .size * root .numOutboundPeers / root .maxNumOutboundPeers ) ? 0.95 : 0.45
You can’t perform that action at this time.
0 commit comments