File tree Expand file tree Collapse file tree 3 files changed +22
-10
lines changed Expand file tree Collapse file tree 3 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -11,25 +11,25 @@ ColumnLayout {
11
11
spacing: 20
12
12
Setting {
13
13
Layout .fillWidth : true
14
- header: " Use cellular data"
14
+ header: qsTr ( " Use cellular data" )
15
15
}
16
16
Setting {
17
17
Layout .fillWidth : true
18
- header: " Daily upload limit"
18
+ header: qsTr ( " Daily upload limit" )
19
19
}
20
20
Setting {
21
21
Layout .fillWidth : true
22
- header: " Connection limit"
22
+ header: qsTr ( " Connection limit" )
23
23
}
24
24
Setting {
25
25
Layout .fillWidth : true
26
- header: " Listening enabled"
27
- description: " Reduces data usage."
26
+ header: qsTr ( " Listening enabled" )
27
+ description: qsTr ( " Reduces data usage." )
28
28
}
29
29
Setting {
30
30
last: true
31
31
Layout .fillWidth : true
32
- header: " Blocks Only"
33
- description: " Do not transfer unconfirmed transactions. Also disabled listening."
32
+ header: qsTr ( " Blocks Only" )
33
+ description: qsTr ( " Do not transfer unconfirmed transactions. Also disabled listening." )
34
34
}
35
35
}
Original file line number Diff line number Diff line change 4
4
5
5
import QtQuick 2.15
6
6
import QtQuick.Controls 2.15
7
+ import QtGraphicalEffects 1.15
7
8
8
9
Switch {
9
10
id: root
10
11
indicator: Rectangle {
11
12
implicitWidth: 45
12
13
implicitHeight: 28
13
14
x: root .leftPadding
14
- y: parent .height / 2 - height / 2
15
+ y: Math . round (( parent .height - height) / 2 )
15
16
radius: 18
16
17
color: root .checked ? " #F7931A" : " #DDDDDD"
17
18
Rectangle {
@@ -23,5 +24,16 @@ Switch {
23
24
radius: 18
24
25
color: " #ffffff"
25
26
}
27
+
28
+ DropShadow {
29
+ anchors .fill : indicatorButton
30
+ horizontalOffset: 0
31
+ verticalOffset: 5
32
+ radius: 10.0
33
+ spread: 0.0
34
+ samples: 21
35
+ color: " #00000040"
36
+ source: indicatorButton
37
+ }
26
38
}
27
39
}
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import QtQuick.Layouts 1.15
8
8
9
9
Control {
10
10
id: root
11
- property bool last: false
12
- property string header
11
+ property bool last: parent && root === parent . children [ parent . children . length - 1 ]
12
+ required property string header
13
13
property string description
14
14
contentItem: GridLayout {
15
15
columns: 2
You can’t perform that action at this time.
0 commit comments