aboutsummaryrefslogtreecommitdiff
path: root/components/StandardButton.qml
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2018-03-31 03:25:20 +0200
committerSander Ferdinand <sa.ferdinand@gmail.com>2018-03-31 03:25:20 +0200
commite638ed0272ca042f3ad77b680665a91ed8a35cce (patch)
tree1c91223dd243221d644a0b22d2dc94563b264fdf /components/StandardButton.qml
parent959c2fcc32d515f90cb39933689a37418197a095 (diff)
downloadmonzero-gui-e638ed0272ca042f3ad77b680665a91ed8a35cce.tar.gz
monzero-gui-e638ed0272ca042f3ad77b680665a91ed8a35cce.tar.xz
monzero-gui-e638ed0272ca042f3ad77b680665a91ed8a35cce.zip
Explicitly import MoneroComponents; prevent namespace pollution
Diffstat (limited to 'components/StandardButton.qml')
-rw-r--r--components/StandardButton.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/components/StandardButton.qml b/components/StandardButton.qml
index 02e08be8..39ddc061 100644
--- a/components/StandardButton.qml
+++ b/components/StandardButton.qml
@@ -28,13 +28,14 @@
import QtQuick 2.0
import QtQuick.Layouts 1.1
-import "." 1.0
+
+import "../components" as MoneroComponents
Item {
id: button
property string rightIcon: ""
property string icon: ""
- property string textColor: button.enabled? Style.buttonTextColor: Style.buttonTextColorDisabled
+ property string textColor: button.enabled? MoneroComponents.Style.buttonTextColor: MoneroComponents.Style.buttonTextColorDisabled
property bool small: false
property alias text: label.text
property int fontSize: {
@@ -59,7 +60,7 @@ Item {
anchors.right: parent.right
height: parent.height - 1
radius: 3
- color: parent.enabled ? Style.buttonBackgroundColor : Style.buttonBackgroundColorDisabled
+ color: parent.enabled ? MoneroComponents.Style.buttonBackgroundColor : MoneroComponents.Style.buttonBackgroundColorDisabled
border.width: parent.focus ? 1 : 0
MouseArea {
@@ -87,7 +88,7 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
horizontalAlignment: Text.AlignHCenter
- font.family: Style.fontBold.name
+ font.family: MoneroComponents.Style.fontBold.name
font.bold: true
font.pixelSize: buttonArea.pressed ? button.fontSize - 1 : button.fontSize
color: parent.textColor