Skip to content

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

src/qml/controls/ContinueButton.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
import QtQuick 2.15
66
import QtQuick.Controls 2.15
7+
import org.bitcoincore.qt 1.0
78

89
Button {
910
id: root
10-
hoverEnabled: true
11+
hoverEnabled: AppMode.isDesktop
1112
contentItem: CoreText {
1213
text: parent.text
1314
bold: true

src/qml/controls/NavButton.qml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import QtQuick 2.15
66
import QtQuick.Controls 2.15
77
import QtQuick.Layouts 1.15
88

9+
import org.bitcoincore.qt 1.0
10+
911
AbstractButton {
1012
id: root
1113
property int iconHeight: 30
@@ -14,7 +16,7 @@ AbstractButton {
1416
property url iconSource: ""
1517
property Rectangle iconBackground: null
1618
property color iconColor: Theme.color.neutral9
17-
hoverEnabled: true
19+
hoverEnabled: AppMode.isDesktop
1820
topPadding: text_background.active ? 7 : 14
1921
bottomPadding: text_background.active ? 7 : 14
2022
rightPadding: text_background.active ? 22 : 14
@@ -94,7 +96,7 @@ AbstractButton {
9496
}
9597
MouseArea {
9698
anchors.fill: parent
97-
hoverEnabled: true
99+
hoverEnabled: AppMode.isDesktop
98100
onEntered: {
99101
root.background.state = "HOVER"
100102
}

src/qml/controls/OutlineButton.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
import QtQuick 2.15
66
import QtQuick.Controls 2.15
7+
import org.bitcoincore.qt 1.0
78

89
Button {
910
id: root
10-
hoverEnabled: true
11+
hoverEnabled: AppMode.isDesktop
1112
contentItem: CoreText {
1213
text: parent.text
1314
bold: true

src/qml/controls/Setting.qml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import QtQuick 2.15
66
import QtQuick.Controls 2.15
77
import QtQuick.Layouts 1.15
88

9+
import org.bitcoincore.qt 1.0
10+
911
AbstractButton {
1012
id: root
1113
property bool last: parent && root === parent.children[parent.children.length - 1]
@@ -16,7 +18,7 @@ AbstractButton {
1618
property string errorText: ""
1719
property bool showErrorText: false
1820
property color stateColor
19-
hoverEnabled: true
21+
hoverEnabled: AppMode.isDesktop
2022
state: "FILLED"
2123

2224
states: [
@@ -57,7 +59,7 @@ AbstractButton {
5759
MouseArea {
5860
id: mouseArea
5961
anchors.fill: root
60-
hoverEnabled: true
62+
hoverEnabled: AppMode.isDesktop
6163
onEntered: {
6264
root.state = "HOVER"
6365
}

src/qml/controls/TextButton.qml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import QtQuick 2.15
66
import QtQuick.Controls 2.15
77

8+
import org.bitcoincore.qt 1.0
9+
810
Button {
911
id: root
1012
property int textSize: 18
@@ -13,7 +15,7 @@ Button {
1315
property bool bold: true
1416
property bool rightalign: false
1517
padding: 15
16-
hoverEnabled: true
18+
hoverEnabled: AppMode.isDesktop
1719
contentItem: CoreText {
1820
text: root.text
1921
bold: root.bold

src/qml/controls/ToggleButton.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import QtQuick 2.15
66
import QtQuick.Controls 2.15
7+
import org.bitcoincore.qt 1.0
78

89
Button {
910
property int bgRadius: 5
@@ -16,7 +17,7 @@ Button {
1617

1718
id: root
1819
checkable: true
19-
hoverEnabled: true
20+
hoverEnabled: AppMode.isDesktop
2021
leftPadding: 12
2122
rightPadding: 12
2223
topPadding: 5

0 commit comments

Comments
 (0)