File tree Expand file tree Collapse file tree 6 files changed +37
-30
lines changed Expand file tree Collapse file tree 6 files changed +37
-30
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ QML_RES_QML = \
330
330
qml/components/AboutOptions.qml \
331
331
qml/components/BlockClock.qml \
332
332
qml/components/BlockCounter.qml \
333
+ qml/components/CaretRightButton.qml \
333
334
qml/components/ConnectionOptions.qml \
334
335
qml/components/ConnectionSettings.qml \
335
336
qml/components/DeveloperOptions.qml \
Original file line number Diff line number Diff line change 3
3
<file>components/AboutOptions.qml</file>
4
4
<file>components/BlockClock.qml</file>
5
5
<file>components/BlockCounter.qml</file>
6
+ <file>components/CaretRightButton.qml</file>
6
7
<file>components/ConnectionOptions.qml</file>
7
8
<file>components/ConnectionSettings.qml</file>
8
9
<file>components/PeersIndicator.qml</file>
Original file line number Diff line number Diff line change @@ -58,15 +58,12 @@ ColumnLayout {
58
58
onClicked: loadedItem .clicked ()
59
59
}
60
60
Setting {
61
+ id: gotoDeveloper
61
62
Layout .fillWidth : true
62
63
header: qsTr (" Developer options" )
63
64
description: qsTr (" Only use these if you have development experience" )
64
- actionItem: Button {
65
- icon .source : " image://images/caret-right"
66
- icon .color : Theme .color .neutral9
67
- icon .height : 18
68
- icon .width : 18
69
- background: null
65
+ actionItem: CaretRightButton{
66
+ stateColor: gotoDeveloper .stateColor
70
67
onClicked: {
71
68
aboutSwipe .incrementCurrentIndex ()
72
69
}
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.Controls 2.15
7
+
8
+ Button {
9
+ id: root
10
+ required property color stateColor
11
+ icon .source : " image://images/caret-right"
12
+ icon .color : root .stateColor
13
+ icon .height : 18
14
+ icon .width : 18
15
+ background: null
16
+
17
+ Behavior on icon .color {
18
+ ColorAnimation { duration: 150 }
19
+ }
20
+ }
Original file line number Diff line number Diff line change @@ -59,15 +59,12 @@ ColumnLayout {
59
59
}
60
60
}
61
61
Setting {
62
+ id: gotoProxy
62
63
last: true
63
64
Layout .fillWidth : true
64
65
header: qsTr (" Proxy settings" )
65
- actionItem: Button {
66
- icon .source : " image://images/caret-right"
67
- icon .color : Theme .color .neutral9
68
- icon .height : 18
69
- icon .width : 18
70
- background: null
66
+ actionItem: CaretRightButton {
67
+ stateColor: gotoProxy .stateColor
71
68
}
72
69
}
73
70
}
Original file line number Diff line number Diff line change @@ -47,44 +47,35 @@ Item {
47
47
onClicked: loadedItem .toggled ()
48
48
}
49
49
Setting {
50
+ id: gotoAbout
50
51
Layout .fillWidth : true
51
52
header: qsTr (" About" )
52
- actionItem: Button {
53
- icon .source : " image://images/caret-right"
54
- icon .color : Theme .color .neutral9
55
- icon .height : 18
56
- icon .width : 18
57
- background: null
53
+ actionItem: CaretRightButton {
54
+ stateColor: gotoAbout .stateColor
58
55
onClicked: {
59
56
nodeSettingsView .push (about_page)
60
57
}
61
58
}
62
59
onClicked: loadedItem .clicked ()
63
60
}
64
61
Setting {
62
+ id: gotoStorage
65
63
Layout .fillWidth : true
66
64
header: qsTr (" Storage" )
67
- actionItem: Button {
68
- icon .source : " image://images/caret-right"
69
- icon .color : Theme .color .neutral9
70
- icon .height : 18
71
- icon .width : 18
72
- background: null
65
+ actionItem: CaretRightButton {
66
+ stateColor: gotoStorage .stateColor
73
67
onClicked: {
74
68
nodeSettingsView .push (storage_page)
75
69
}
76
70
}
77
71
onClicked: loadedItem .clicked ()
78
72
}
79
73
Setting {
74
+ id: gotoConnection
80
75
Layout .fillWidth : true
81
76
header: qsTr (" Connection" )
82
- actionItem: Button {
83
- icon .source : " image://images/caret-right"
84
- icon .color : Theme .color .neutral9
85
- icon .height : 18
86
- icon .width : 18
87
- background: null
77
+ actionItem: CaretRightButton {
78
+ stateColor: gotoConnection .stateColor
88
79
onClicked: {
89
80
nodeSettingsView .push (connection_page)
90
81
}
You can’t perform that action at this time.
0 commit comments