File tree Expand file tree Collapse file tree 6 files changed +17
-8
lines changed Expand file tree Collapse file tree 6 files changed +17
-8
lines changed 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 org.bitcoincore.qt 1.0
7
8
8
9
Button {
9
10
id: root
10
- hoverEnabled: true
11
+ hoverEnabled: AppMode . isDesktop
11
12
contentItem: CoreText {
12
13
text: parent .text
13
14
bold: true
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import QtQuick 2.15
6
6
import QtQuick.Controls 2.15
7
7
import QtQuick.Layouts 1.15
8
8
9
+ import org.bitcoincore.qt 1.0
10
+
9
11
AbstractButton {
10
12
id: root
11
13
property int iconHeight: 30
@@ -14,7 +16,7 @@ AbstractButton {
14
16
property url iconSource: " "
15
17
property Rectangle iconBackground: null
16
18
property color iconColor: Theme .color .neutral9
17
- hoverEnabled: true
19
+ hoverEnabled: AppMode . isDesktop
18
20
topPadding: text_background .active ? 7 : 14
19
21
bottomPadding: text_background .active ? 7 : 14
20
22
rightPadding: text_background .active ? 22 : 14
@@ -94,7 +96,7 @@ AbstractButton {
94
96
}
95
97
MouseArea {
96
98
anchors .fill : parent
97
- hoverEnabled: true
99
+ hoverEnabled: AppMode . isDesktop
98
100
onEntered: {
99
101
root .background .state = " HOVER"
100
102
}
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 org.bitcoincore.qt 1.0
7
8
8
9
Button {
9
10
id: root
10
- hoverEnabled: true
11
+ hoverEnabled: AppMode . isDesktop
11
12
contentItem: CoreText {
12
13
text: parent .text
13
14
bold: true
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import QtQuick 2.15
6
6
import QtQuick.Controls 2.15
7
7
import QtQuick.Layouts 1.15
8
8
9
+ import org.bitcoincore.qt 1.0
10
+
9
11
AbstractButton {
10
12
id: root
11
13
property bool last: parent && root === parent .children [parent .children .length - 1 ]
@@ -16,7 +18,7 @@ AbstractButton {
16
18
property string errorText: " "
17
19
property bool showErrorText: false
18
20
property color stateColor
19
- hoverEnabled: true
21
+ hoverEnabled: AppMode . isDesktop
20
22
state: " FILLED"
21
23
22
24
states: [
@@ -57,7 +59,7 @@ AbstractButton {
57
59
MouseArea {
58
60
id: mouseArea
59
61
anchors .fill : root
60
- hoverEnabled: true
62
+ hoverEnabled: AppMode . isDesktop
61
63
onEntered: {
62
64
root .state = " HOVER"
63
65
}
Original file line number Diff line number Diff line change 5
5
import QtQuick 2.15
6
6
import QtQuick.Controls 2.15
7
7
8
+ import org.bitcoincore.qt 1.0
9
+
8
10
Button {
9
11
id: root
10
12
property int textSize: 18
@@ -13,7 +15,7 @@ Button {
13
15
property bool bold: true
14
16
property bool rightalign: false
15
17
padding: 15
16
- hoverEnabled: true
18
+ hoverEnabled: AppMode . isDesktop
17
19
contentItem: CoreText {
18
20
text: root .text
19
21
bold: root .bold
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 org.bitcoincore.qt 1.0
7
8
8
9
Button {
9
10
property int bgRadius: 5
@@ -16,7 +17,7 @@ Button {
16
17
17
18
id: root
18
19
checkable: true
19
- hoverEnabled: true
20
+ hoverEnabled: AppMode . isDesktop
20
21
leftPadding: 12
21
22
rightPadding: 12
22
23
topPadding: 5
You can’t perform that action at this time.
0 commit comments