diff options
| author | mmbyday <mmbyday@protonmail.com> | 2019-04-29 01:34:58 -0700 |
|---|---|---|
| committer | mmbyday <mmbyday@protonmail.com> | 2019-04-29 12:39:11 -0700 |
| commit | 131c42701c68155822d516aafc82741468c0d220 (patch) | |
| tree | dec173e21f56d65a2a322e8839661174c718e402 /components/PassphraseDialog.qml | |
| parent | ff6ce6294b561a6f15769a8e7a8270d57d02f8de (diff) | |
| download | monzero-gui-131c42701c68155822d516aafc82741468c0d220.tar.gz monzero-gui-131c42701c68155822d516aafc82741468c0d220.tar.xz monzero-gui-131c42701c68155822d516aafc82741468c0d220.zip | |
passworddialog: replace eye with font awesome
Diffstat (limited to 'components/PassphraseDialog.qml')
| -rw-r--r-- | components/PassphraseDialog.qml | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/components/PassphraseDialog.qml b/components/PassphraseDialog.qml index f8ae19e5..9ae57db4 100644 --- a/components/PassphraseDialog.qml +++ b/components/PassphraseDialog.qml @@ -32,6 +32,7 @@ import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.1 import QtQuick.Controls.Styles 1.4 import QtQuick.Window 2.0 +import FontAwesome 1.0 import "../components" as MoneroComponents @@ -170,15 +171,16 @@ Item { border.width: 1 color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF" - Image { - width: 26 - height: 26 + MoneroComponents.Label { + fontSize: 20 + text: isHidden ? FontAwesome.eye : FontAwesome.eyeSlash opacity: 0.7 - fillMode: Image.PreserveAspectFit - source: isHidden ? "qrc:///images/eyeShow.png" : "qrc:///images/eyeHide.png" - anchors.verticalCenter: parent.verticalCenter + fontFamily: FontAwesome.fontFamily anchors.right: parent.right - anchors.rightMargin: 20 + anchors.rightMargin: 15 + anchors.verticalCenter: parent.verticalCenter + anchors.verticalCenterOffset: 1 + MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor @@ -188,13 +190,11 @@ Item { } onEntered: { parent.opacity = 0.9 - parent.width = 28 - parent.height = 28 + parent.fontSize = 24 } onExited: { parent.opacity = 0.7 - parent.width = 26 - parent.height = 26 + parent.fontSize = 20 } } } @@ -248,15 +248,16 @@ Item { border.width: 1 color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF" - Image { - width: 26 - height: 26 + MoneroComponents.Label { + fontSize: 20 + text: isHidden ? FontAwesome.eye : FontAwesome.eyeSlash opacity: 0.7 - fillMode: Image.PreserveAspectFit - source: isHidden ? "qrc:///images/eyeShow.png" : "qrc:///images/eyeHide.png" - anchors.verticalCenter: parent.verticalCenter + fontFamily: FontAwesome.fontFamily anchors.right: parent.right - anchors.rightMargin: 20 + anchors.rightMargin: 15 + anchors.verticalCenter: parent.verticalCenter + anchors.verticalCenterOffset: 1 + MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor @@ -266,13 +267,11 @@ Item { } onEntered: { parent.opacity = 0.9 - parent.width = 28 - parent.height = 28 + parent.fontSize = 24 } onExited: { parent.opacity = 0.7 - parent.width = 26 - parent.height = 26 + parent.fontSize = 20 } } } |
