diff --git a/src/Makefile.qt.include b/src/Makefile.qt.include
index ba032ee58f..79a6fc2473 100644
--- a/src/Makefile.qt.include
+++ b/src/Makefile.qt.include
@@ -343,7 +343,7 @@ QML_RES_QML = \
qml/components/BlockClock.qml \
qml/components/BlockClockDisplayMode.qml \
qml/components/BlockCounter.qml \
- qml/components/CaretRightButton.qml \
+ qml/controls/CaretRightIcon.qml \
qml/components/ConnectionOptions.qml \
qml/components/ConnectionSettings.qml \
qml/components/DeveloperOptions.qml \
diff --git a/src/qml/bitcoin_qml.qrc b/src/qml/bitcoin_qml.qrc
index 44e0448884..497df101d8 100644
--- a/src/qml/bitcoin_qml.qrc
+++ b/src/qml/bitcoin_qml.qrc
@@ -4,7 +4,7 @@
components/BlockClock.qml
components/BlockClockDisplayMode.qml
components/BlockCounter.qml
- components/CaretRightButton.qml
+ controls/CaretRightIcon.qml
components/ConnectionOptions.qml
components/ConnectionSettings.qml
components/PeersIndicator.qml
diff --git a/src/qml/components/AboutOptions.qml b/src/qml/components/AboutOptions.qml
index f0f118f18d..55123f577d 100644
--- a/src/qml/components/AboutOptions.qml
+++ b/src/qml/components/AboutOptions.qml
@@ -65,12 +65,11 @@ ColumnLayout {
Layout.fillWidth: true
header: qsTr("Developer options")
description: qsTr("Only use these if you have development experience")
- actionItem: CaretRightButton{
- stateColor: gotoDeveloper.stateColor
- onClicked: {
- aboutSwipe.incrementCurrentIndex()
- }
+ actionItem: CaretRightIcon {
+ color: gotoDeveloper.stateColor
+ }
+ onClicked: {
+ aboutSwipe.incrementCurrentIndex()
}
- onClicked: loadedItem.clicked()
}
}
diff --git a/src/qml/components/ConnectionSettings.qml b/src/qml/components/ConnectionSettings.qml
index 6a59eceae1..90625a7def 100644
--- a/src/qml/components/ConnectionSettings.qml
+++ b/src/qml/components/ConnectionSettings.qml
@@ -66,8 +66,8 @@ ColumnLayout {
id: gotoProxy
Layout.fillWidth: true
header: qsTr("Proxy settings")
- actionItem: CaretRightButton {
- stateColor: gotoProxy.stateColor
+ actionItem: CaretRightIcon {
+ color: gotoProxy.stateColor
}
onClicked: connectionSwipe.incrementCurrentIndex()
}
diff --git a/src/qml/components/CaretRightButton.qml b/src/qml/controls/CaretRightIcon.qml
similarity index 71%
rename from src/qml/components/CaretRightButton.qml
rename to src/qml/controls/CaretRightIcon.qml
index e1fae7475d..fe39d43c11 100644
--- a/src/qml/components/CaretRightButton.qml
+++ b/src/qml/controls/CaretRightIcon.qml
@@ -4,13 +4,8 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
-import "../controls"
Icon {
- id: root
- required property color stateColor
- enabled: true
source: "image://images/caret-right"
- color: root.stateColor
size: 18
}
diff --git a/src/qml/pages/node/NodeSettings.qml b/src/qml/pages/node/NodeSettings.qml
index f66ed73303..bdf10c4cb7 100644
--- a/src/qml/pages/node/NodeSettings.qml
+++ b/src/qml/pages/node/NodeSettings.qml
@@ -41,79 +41,73 @@ Item {
id: gotoAbout
Layout.fillWidth: true
header: qsTr("About")
- actionItem: CaretRightButton {
- stateColor: gotoAbout.stateColor
- onClicked: {
- nodeSettingsView.push(about_page)
- }
+ actionItem: CaretRightIcon {
+ color: gotoAbout.stateColor
+ }
+ onClicked: {
+ nodeSettingsView.push(about_page)
}
- onClicked: loadedItem.clicked()
}
Separator { Layout.fillWidth: true }
Setting {
id: gotoDisplay
Layout.fillWidth: true
header: qsTr("Display")
- actionItem: CaretRightButton {
- stateColor: gotoDisplay.stateColor
- onClicked: {
- nodeSettingsView.push(display_page)
- }
+ actionItem: CaretRightIcon {
+ color: gotoDisplay.stateColor
+ }
+ onClicked: {
+ nodeSettingsView.push(display_page)
}
- onClicked: loadedItem.clicked()
}
Separator { Layout.fillWidth: true }
Setting {
id: gotoStorage
Layout.fillWidth: true
header: qsTr("Storage")
- actionItem: CaretRightButton {
- stateColor: gotoStorage.stateColor
- onClicked: {
- nodeSettingsView.push(storage_page)
- }
+ actionItem: CaretRightIcon {
+ color: gotoStorage.stateColor
+ }
+ onClicked: {
+ nodeSettingsView.push(storage_page)
}
- onClicked: loadedItem.clicked()
}
Separator { Layout.fillWidth: true }
Setting {
id: gotoConnection
Layout.fillWidth: true
header: qsTr("Connection")
- actionItem: CaretRightButton {
- stateColor: gotoConnection.stateColor
- onClicked: {
- nodeSettingsView.push(connection_page)
- }
+ actionItem: CaretRightIcon {
+ color: gotoConnection.stateColor
+ }
+ onClicked: {
+ nodeSettingsView.push(connection_page)
}
- onClicked: loadedItem.clicked()
}
Separator { Layout.fillWidth: true }
Setting {
id: gotoPeers
Layout.fillWidth: true
header: qsTr("Peers")
- actionItem: CaretRightButton {
- stateColor: gotoPeers.stateColor
- onClicked: {
- peerTableModel.startAutoRefresh();
- nodeSettingsView.push(peers_page)
- }
+ actionItem: CaretRightIcon {
+ color: gotoPeers.stateColor
+ }
+ onClicked: {
+ peerTableModel.startAutoRefresh();
+ nodeSettingsView.push(peers_page)
}
- onClicked: loadedItem.clicked()
}
Separator { Layout.fillWidth: true }
Setting {
id: gotoNetworkTraffic
Layout.fillWidth: true
header: qsTr("Network Traffic")
- actionItem: CaretRightButton {
- stateColor: gotoNetworkTraffic.stateColor
- onClicked: {
- nodeSettingsView.push(networktraffic_page)
- }
+ actionItem: CaretRightIcon {
+ color: gotoNetworkTraffic.stateColor
+ }
+ onClicked: {
+ nodeSettingsView.push(networktraffic_page)
}
- onClicked: loadedItem.clicked()
}
}
}
diff --git a/src/qml/pages/settings/SettingsDisplay.qml b/src/qml/pages/settings/SettingsDisplay.qml
index 2a9d0b9ffe..97455a51bd 100644
--- a/src/qml/pages/settings/SettingsDisplay.qml
+++ b/src/qml/pages/settings/SettingsDisplay.qml
@@ -40,26 +40,24 @@ Item {
id: gotoTheme
Layout.fillWidth: true
header: qsTr("Theme")
- actionItem: CaretRightButton {
- stateColor: gotoTheme.stateColor
- onClicked: {
- nodeSettingsView.push(theme_page)
- }
+ actionItem: CaretRightIcon {
+ color: gotoTheme.stateColor
+ }
+ onClicked: {
+ nodeSettingsView.push(theme_page)
}
- onClicked: loadedItem.clicked()
}
Separator { Layout.fillWidth: true }
Setting {
id: gotoBlockClockSize
Layout.fillWidth: true
header: qsTr("Block clock display mode")
- actionItem: CaretRightButton {
- stateColor: gotoBlockClockSize.stateColor
- onClicked: {
- nodeSettingsView.push(blockclocksize_page)
- }
+ actionItem: CaretRightIcon {
+ color: gotoBlockClockSize.stateColor
+ }
+ onClicked: {
+ nodeSettingsView.push(blockclocksize_page)
}
- onClicked: loadedItem.clicked()
}
}
}