diff options
| author | dsc <xmrdsc@protonmail.com> | 2019-04-11 03:17:29 +0200 |
|---|---|---|
| committer | dsc <xmrdsc@protonmail.com> | 2019-04-24 05:37:35 +0200 |
| commit | 42f7afaefddbf5a7929ddf88dbe7b27e7f40a669 (patch) | |
| tree | cbbe7fc3e3950354f7a4dcb925b6e1e9dc62efd8 /pages/AddressBook.qml | |
| parent | 358e1d23facbd10fefbb2bf04c45b98f0c728ad0 (diff) | |
| download | monzero-gui-42f7afaefddbf5a7929ddf88dbe7b27e7f40a669.tar.gz monzero-gui-42f7afaefddbf5a7929ddf88dbe7b27e7f40a669.tar.xz monzero-gui-42f7afaefddbf5a7929ddf88dbe7b27e7f40a669.zip | |
White theme
Diffstat (limited to 'pages/AddressBook.qml')
| -rw-r--r-- | pages/AddressBook.qml | 92 |
1 files changed, 60 insertions, 32 deletions
diff --git a/pages/AddressBook.qml b/pages/AddressBook.qml index 19ff9c95..e605a5a7 100644 --- a/pages/AddressBook.qml +++ b/pages/AddressBook.qml @@ -26,11 +26,14 @@ // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -import QtQuick 2.0 +import QtQuick 2.9 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.2 + import "../components" as MoneroComponents +import "../components/effects/" as MoneroEffects + import "../js/TxUtils.js" as TxUtils import moneroComponents.AddressBook 1.0 import moneroComponents.AddressBookModel 1.0 @@ -89,7 +92,7 @@ Rectangle { TextArea { Layout.fillWidth: true - color: MoneroComponents.Style.greyFontColor + color: MoneroComponents.Style.dimmedFontColor font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 16 * scaleRatio horizontalAlignment: TextInput.AlignLeft @@ -159,11 +162,17 @@ Rectangle { } Rectangle { + color: MoneroComponents.Style.appWindowBorderColor anchors.right: parent.right anchors.left: parent.left anchors.top: parent.top height: 1 - color: MoneroComponents.Style.grey + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } } Rectangle { @@ -206,41 +215,52 @@ Rectangle { } } - MoneroComponents.IconButton { - id: sendToButton - imageSource: "../images/arrow-right-in-circle.png" - image.opacity: 0.5 + RowLayout { + anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right - anchors.rightMargin: 63 * scaleRatio - onClicked: { - doSend(); + anchors.rightMargin: 6 + height: 21 + spacing: 10 + + MoneroComponents.IconButton { + id: sendToButton + image: "qrc:///images/arrow-right-in-circle-outline-medium-white.svg" + color: MoneroComponents.Style.defaultFontColor + opacity: 0.5 + Layout.preferredWidth: 20 + Layout.preferredHeight: 20 + onClicked: { + doSend(); + } } - } - MoneroComponents.IconButton { - id: renameButton - imageSource: "../images/rename.png" - image.opacity: 0.5 - anchors.right: parent.right - anchors.rightMargin: 30 * scaleRatio - anchors.topMargin: 1 * scaleRatio + MoneroComponents.IconButton { + id: renameButton + image: "qrc:///images/edit.svg" + color: MoneroComponents.Style.defaultFontColor + opacity: 0.5 + Layout.preferredWidth: 23 + Layout.preferredHeight: 21 - onClicked: { - addressBookListView.currentIndex = index; - root.showEditAddress(address, description); + onClicked: { + addressBookListView.currentIndex = index; + root.showEditAddress(address, description); + } } - } - MoneroComponents.IconButton { - id: copyButton - imageSource: "../images/clipboard.png" - image.opacity: 0.5 - anchors.right: parent.right + MoneroComponents.IconButton { + id: copyButton + image: "qrc:///images/copy.svg" + Layout.preferredWidth: 16 + Layout.preferredHeight: 21 + color: MoneroComponents.Style.defaultFontColor + opacity: 0.5 - onClicked: { - console.log("Address copied to clipboard"); - clipboard.setText(address); - appWindow.showStatusMessage(qsTr("Address copied to clipboard"),3); + onClicked: { + console.log("Address copied to clipboard"); + clipboard.setText(address); + appWindow.showStatusMessage(qsTr("Address copied to clipboard"), 3); + } } } } @@ -248,9 +268,16 @@ Rectangle { } Rectangle { - color: MoneroComponents.Style.grey + id: border2 + color: MoneroComponents.Style.appWindowBorderColor Layout.fillWidth: true height: 1 + + MoneroEffects.ColorTransition { + targetObj: border2 + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } } MoneroComponents.CheckBox { @@ -306,6 +333,7 @@ Rectangle { addressLine.text = clipboardText; } } + inlineButton.text: FontAwesome.qrcode inlineButton.fontPixelSize: 22 inlineButton.fontFamily: FontAwesome.fontFamily |
