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 44
55import QtQuick 2.15
66import QtQuick.Controls 2.15
7+ import org.bitcoincore.qt 1.0
78
89Button {
910 id: root
10- hoverEnabled: true
11+ hoverEnabled: AppMode . isDesktop
1112 contentItem: CoreText {
1213 text: parent .text
1314 bold: true
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import QtQuick 2.15
66import QtQuick.Controls 2.15
77import QtQuick.Layouts 1.15
88
9+ import org.bitcoincore.qt 1.0
10+
911AbstractButton {
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 }
Original file line number Diff line number Diff line change 44
55import QtQuick 2.15
66import QtQuick.Controls 2.15
7+ import org.bitcoincore.qt 1.0
78
89Button {
910 id: root
10- hoverEnabled: true
11+ hoverEnabled: AppMode . isDesktop
1112 contentItem: CoreText {
1213 text: parent .text
1314 bold: true
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import QtQuick 2.15
66import QtQuick.Controls 2.15
77import QtQuick.Layouts 1.15
88
9+ import org.bitcoincore.qt 1.0
10+
911AbstractButton {
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 }
Original file line number Diff line number Diff line change 55import QtQuick 2.15
66import QtQuick.Controls 2.15
77
8+ import org.bitcoincore.qt 1.0
9+
810Button {
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
Original file line number Diff line number Diff line change 44
55import QtQuick 2.15
66import QtQuick.Controls 2.15
7+ import org.bitcoincore.qt 1.0
78
89Button {
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
You can’t perform that action at this time.
0 commit comments