diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-04-30 15:25:59 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-04-30 15:25:59 -0500 |
| commit | 8d9f33b5aa90d907a54aba5b17b3cade530e175f (patch) | |
| tree | c474671d644069fc072825a8b073651993b9b3f4 | |
| parent | 5062886815fbd9debac94c6c8ab50d2dc6f02d98 (diff) | |
| parent | 131c42701c68155822d516aafc82741468c0d220 (diff) | |
| download | monzero-gui-8d9f33b5aa90d907a54aba5b17b3cade530e175f.tar.gz monzero-gui-8d9f33b5aa90d907a54aba5b17b3cade530e175f.tar.xz monzero-gui-8d9f33b5aa90d907a54aba5b17b3cade530e175f.zip | |
Merge pull request #2127
131c427 passworddialog: replace eye with font awesome (mmbyday)
| -rw-r--r-- | components/NewPasswordDialog.qml | 42 | ||||
| -rw-r--r-- | components/PassphraseDialog.qml | 43 | ||||
| -rw-r--r-- | components/PasswordDialog.qml | 21 | ||||
| -rw-r--r-- | images/eyeHide.png | bin | 691 -> 0 bytes | |||
| -rw-r--r-- | images/eyeHide@2x.png | bin | 1364 -> 0 bytes | |||
| -rw-r--r-- | images/eyeShow.png | bin | 575 -> 0 bytes | |||
| -rw-r--r-- | images/eyeShow@2x.png | bin | 1191 -> 0 bytes | |||
| -rw-r--r-- | qml.qrc | 4 |
8 files changed, 51 insertions, 59 deletions
diff --git a/components/NewPasswordDialog.qml b/components/NewPasswordDialog.qml index bcf1d0c8..173fe170 100644 --- a/components/NewPasswordDialog.qml +++ b/components/NewPasswordDialog.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 @@ -136,15 +137,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 @@ -154,13 +156,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 } } } @@ -214,15 +214,15 @@ 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 @@ -233,13 +233,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 } } } 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 } } } diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml index 717d4b85..4d1c8467 100644 --- a/components/PasswordDialog.qml +++ b/components/PasswordDialog.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 "." as MoneroComponents import "effects/" as MoneroEffects @@ -161,15 +162,15 @@ Item { whiteColor: "#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 @@ -181,13 +182,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 } } } diff --git a/images/eyeHide.png b/images/eyeHide.png Binary files differdeleted file mode 100644 index e0883127..00000000 --- a/images/eyeHide.png +++ /dev/null diff --git a/images/eyeHide@2x.png b/images/eyeHide@2x.png Binary files differdeleted file mode 100644 index dd709e9e..00000000 --- a/images/eyeHide@2x.png +++ /dev/null diff --git a/images/eyeShow.png b/images/eyeShow.png Binary files differdeleted file mode 100644 index a54cef06..00000000 --- a/images/eyeShow.png +++ /dev/null diff --git a/images/eyeShow@2x.png b/images/eyeShow@2x.png Binary files differdeleted file mode 100644 index 4e2f4914..00000000 --- a/images/eyeShow@2x.png +++ /dev/null @@ -180,10 +180,6 @@ <file>components/WarningBox.qml</file> <file>images/miningxmr.png</file> <file>images/miningxmr@2x.png</file> - <file>images/eyeHide.png</file> - <file>images/eyeHide@2x.png</file> - <file>images/eyeShow.png</file> - <file>images/eyeShow@2x.png</file> <file>images/plus-in-circle-medium-white.png</file> <file>images/plus-in-circle-medium-white@2x.png</file> <file>pages/merchant/Merchant.qml</file> |
