From 42f7afaefddbf5a7929ddf88dbe7b27e7f40a669 Mon Sep 17 00:00:00 2001 From: dsc Date: Thu, 11 Apr 2019 03:17:29 +0200 Subject: [PATCH] White theme --- LeftPanel.qml | 148 +++-- MiddlePanel.qml | 40 +- RightPanel.qml | 2 +- components/CheckBox.qml | 29 +- components/CheckBox2.qml | 40 +- components/DaemonConsole.qml | 29 +- components/DaemonManagerDialog.qml | 6 +- components/DatePicker.qml | 214 +++++--- components/HistoryTable.qml | 506 ++++++++++++++++++ components/IconButton.qml | 52 +- components/InlineButton.qml | 39 +- components/Input.qml | 6 +- components/InputDialog.qml | 14 +- components/InputMulti.qml | 6 +- components/Label.qml | 6 +- components/LabelButton.qml | 12 +- components/LabelSubheader.qml | 16 +- components/LanguageSidebar.qml | 6 +- components/LineEdit.qml | 9 +- components/LineEditMulti.qml | 8 +- components/MenuButton.qml | 53 +- components/MenuButtonDivider.qml | 15 + components/MobileHeader.qml | 16 +- components/NetworkStatusItem.qml | 22 +- components/NewPasswordDialog.qml | 29 +- components/Notifier.qml | 2 +- components/PassphraseDialog.qml | 24 +- components/PasswordDialog.qml | 29 +- components/PrivacyLevelSmall.qml | 8 +- components/ProcessingSplash.qml | 18 +- components/ProgressBar.qml | 42 +- components/QRCodeScanner.qml | 2 +- components/RadioButton.qml | 8 +- components/RemoteNodeEdit.qml | 16 +- components/Scroll.qml | 2 +- components/StandardButton.qml | 14 +- components/StandardDialog.qml | 27 +- components/StandardDropdown.qml | 32 +- components/Style.qml | 192 ++++++- components/TableDropdown.qml | 237 ++++++++ components/TextBlock.qml | 4 +- components/TextPlain.qml | 28 + components/TextPlainArea.qml | 48 ++ components/TipItem.qml | 8 +- components/TitleBar.qml | 466 ++++++++-------- components/WarningBox.qml | 10 +- components/effects/ColorTransition.qml | 58 ++ components/effects/GradientBackground.qml | 107 ++++ components/effects/ImageMask.qml | 84 +++ fonts/FontAwesome/FontAwesome.qml | 2 +- fonts/FontAwesome/Object.qml | 2 +- ...w-right-in-circle-outline-medium-white.svg | 8 + images/check-white.svg | 3 + images/clipboard.png | Bin 326 -> 0 bytes images/clipboard@2x.png | Bin 630 -> 0 bytes images/close.png | Bin 383 -> 0 bytes images/close.svg | 5 + images/close@2x.png | Bin 404 -> 0 bytes images/collapseRightPanel.png | Bin 408 -> 0 bytes images/copy.svg | 6 + images/copyToClipboard.png | Bin 454 -> 0 bytes images/dropdownCopy.png | Bin 444 -> 0 bytes images/dropdownCopy@2x.png | Bin 821 -> 0 bytes images/edit.svg | 7 + images/editIcon.png | Bin 612 -> 0 bytes images/editIcon@2x.png | Bin 1104 -> 0 bytes images/expand.png | Bin 360 -> 0 bytes images/expand@2x.png | Bin 347 -> 0 bytes images/fullscreen.png | Bin 335 -> 0 bytes images/fullscreen.svg | 6 + images/fullscreen@2x.png | Bin 291 -> 0 bytes images/middlePanelShadow.png | Bin 0 -> 98 bytes images/minimize.png | Bin 293 -> 0 bytes images/minimize.svg | 3 + images/minimize@2x.png | Bin 183 -> 0 bytes images/rename.png | Bin 517 -> 0 bytes images/rename@2x.png | Bin 1100 -> 0 bytes images/right.png | Bin 289 -> 0 bytes images/right.svg | 3 + images/right@2x.png | Bin 169 -> 0 bytes images/settings_local.png | Bin 651 -> 0 bytes images/settings_local.svg | 6 + images/settings_local@2x.png | Bin 1389 -> 0 bytes images/settings_navbar_side.png | Bin 15465 -> 0 bytes images/settings_navbar_side_active.png | Bin 15460 -> 0 bytes images/settings_remote.png | Bin 440 -> 0 bytes images/settings_remote.svg | 7 + images/settings_remote@2x.png | Bin 778 -> 0 bytes images/sidebar.svg | 6 + images/themes/white/Monero-Logo.svg | 65 +++ images/themes/white/close.svg | 6 + images/themes/white/expand.svg | 6 + images/themes/white/fullscreen.svg | 7 + images/themes/white/leftPanelBg.jpg | Bin 0 -> 5068 bytes images/themes/white/middlePanelBg.jpg | Bin 0 -> 4222 bytes images/themes/white/minimize.svg | 3 + images/themes/white/question.svg | 8 + images/themes/white/titlebarLogo.png | Bin 0 -> 2554 bytes images/themes/white/titlebarLogo@2x.png | Bin 0 -> 5095 bytes images/titlebarGradient.jpg | Bin 752 -> 0 bytes main.cpp | 10 + main.qml | 218 +++++--- monero-wallet-gui.pro | 1 + pages/Account.qml | 142 +++-- pages/AddressBook.qml | 92 ++-- pages/History.qml | 218 +++++--- pages/Keys.qml | 6 +- pages/Mining.qml | 6 +- pages/Receive.qml | 60 ++- pages/SharedRingDB.qml | 30 +- pages/Sign.qml | 6 +- pages/Transfer.qml | 15 +- pages/TxKey.qml | 15 +- pages/merchant/Merchant.qml | 40 +- pages/merchant/MerchantCheckbox.qml | 8 +- pages/merchant/MerchantTitlebar.qml | 197 +++++++ pages/merchant/MerchantTrackingList.qml | 14 +- pages/settings/Navbar.qml | 144 +++-- pages/settings/Settings.qml | 2 +- pages/settings/SettingsInfo.qml | 41 +- pages/settings/SettingsLayout.qml | 14 +- pages/settings/SettingsLog.qml | 22 +- pages/settings/SettingsNode.qml | 52 +- pages/settings/SettingsWallet.qml | 162 ++---- qml.qrc | 58 +- wizard/WizardAskPassword.qml | 27 +- wizard/WizardController.qml | 26 +- wizard/WizardCreateDevice1.qml | 8 +- wizard/WizardCreateWallet1.qml | 2 +- wizard/WizardCreateWallet2.qml | 2 +- wizard/WizardCreateWallet3.qml | 2 +- wizard/WizardCreateWallet4.qml | 2 +- wizard/WizardDaemonSettings.qml | 25 +- wizard/WizardHeader.qml | 11 +- wizard/WizardHome.qml | 14 +- wizard/WizardLang.qml | 25 +- wizard/WizardLanguage.qml | 14 +- wizard/WizardMenuItem.qml | 24 +- wizard/WizardModeBootstrap.qml | 12 +- wizard/WizardModeRemoteNodeWarning.qml | 18 +- wizard/WizardModeSelection.qml | 8 +- wizard/WizardNav.qml | 2 +- wizard/WizardNavProgressDot.qml | 4 +- wizard/WizardOpenWallet1.qml | 10 +- wizard/WizardRestoreWallet1.qml | 8 +- wizard/WizardRestoreWallet2.qml | 2 +- wizard/WizardRestoreWallet3.qml | 2 +- wizard/WizardRestoreWallet4.qml | 2 +- wizard/WizardSummary.qml | 2 +- wizard/WizardSummaryItem.qml | 2 +- wizard/WizardWalletInput.qml | 2 +- 151 files changed, 3425 insertions(+), 1352 deletions(-) create mode 100644 components/HistoryTable.qml create mode 100644 components/MenuButtonDivider.qml create mode 100644 components/TableDropdown.qml create mode 100644 components/TextPlain.qml create mode 100644 components/TextPlainArea.qml create mode 100644 components/effects/ColorTransition.qml create mode 100644 components/effects/GradientBackground.qml create mode 100644 components/effects/ImageMask.qml create mode 100644 images/arrow-right-in-circle-outline-medium-white.svg create mode 100644 images/check-white.svg delete mode 100755 images/clipboard.png delete mode 100755 images/clipboard@2x.png delete mode 100644 images/close.png create mode 100644 images/close.svg delete mode 100755 images/close@2x.png delete mode 100644 images/collapseRightPanel.png create mode 100644 images/copy.svg delete mode 100644 images/copyToClipboard.png delete mode 100644 images/dropdownCopy.png delete mode 100644 images/dropdownCopy@2x.png create mode 100644 images/edit.svg delete mode 100644 images/editIcon.png delete mode 100644 images/editIcon@2x.png delete mode 100644 images/expand.png delete mode 100755 images/expand@2x.png delete mode 100644 images/fullscreen.png create mode 100644 images/fullscreen.svg delete mode 100755 images/fullscreen@2x.png create mode 100644 images/middlePanelShadow.png delete mode 100644 images/minimize.png create mode 100644 images/minimize.svg delete mode 100755 images/minimize@2x.png delete mode 100755 images/rename.png delete mode 100755 images/rename@2x.png delete mode 100644 images/right.png create mode 100644 images/right.svg delete mode 100755 images/right@2x.png delete mode 100644 images/settings_local.png create mode 100644 images/settings_local.svg delete mode 100755 images/settings_local@2x.png delete mode 100755 images/settings_navbar_side.png delete mode 100755 images/settings_navbar_side_active.png delete mode 100644 images/settings_remote.png create mode 100644 images/settings_remote.svg delete mode 100755 images/settings_remote@2x.png create mode 100644 images/sidebar.svg create mode 100644 images/themes/white/Monero-Logo.svg create mode 100644 images/themes/white/close.svg create mode 100644 images/themes/white/expand.svg create mode 100644 images/themes/white/fullscreen.svg create mode 100755 images/themes/white/leftPanelBg.jpg create mode 100755 images/themes/white/middlePanelBg.jpg create mode 100644 images/themes/white/minimize.svg create mode 100644 images/themes/white/question.svg create mode 100644 images/themes/white/titlebarLogo.png create mode 100755 images/themes/white/titlebarLogo@2x.png delete mode 100755 images/titlebarGradient.jpg create mode 100644 pages/merchant/MerchantTitlebar.qml diff --git a/LeftPanel.qml b/LeftPanel.qml index c48f62d1..6cb6059e 100644 --- a/LeftPanel.qml +++ b/LeftPanel.qml @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2018, The Monero Project +// Copyright (c) 2014-2019, The Monero Project // // All rights reserved. // @@ -26,13 +26,15 @@ // 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.2 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import QtGraphicalEffects 1.0 import moneroComponents.Wallet 1.0 import moneroComponents.NetworkType 1.0 import moneroComponents.Clipboard 1.0 + import "components" as MoneroComponents +import "components/effects/" as MoneroEffects Rectangle { id: panel @@ -86,13 +88,18 @@ Rectangle { anchors.bottom: parent.bottom anchors.top: parent.top - Image { - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - height: panel.height - source: "images/leftPanelBg.jpg" - z: 1 + MoneroEffects.GradientBackground { + anchors.fill: parent + fallBackColor: MoneroComponents.Style.middlePanelBackgroundColor + initialStartColor: MoneroComponents.Style.leftPanelBackgroundGradientStart + initialStopColor: MoneroComponents.Style.leftPanelBackgroundGradientStop + blackColorStart: MoneroComponents.Style._b_leftPanelBackgroundGradientStart + blackColorStop: MoneroComponents.Style._b_leftPanelBackgroundGradientStop + whiteColorStart: MoneroComponents.Style._w_leftPanelBackgroundGradientStart + whiteColorStop: MoneroComponents.Style._w_leftPanelBackgroundGradientStop + posStart: 0.6 + start: Qt.point(0, 0) + end: Qt.point(height, width) } // card with monero logo @@ -107,7 +114,6 @@ Rectangle { anchors.topMargin: (persistentSettings.customDecorations)? 50 : 0 RowLayout { - visible: true Item { anchors.left: parent.left anchors.top: parent.top @@ -118,12 +124,27 @@ Rectangle { width: 260 * scaleRatio Image { - width: 260; height: 170 + id: card + visible: !isOpenGL || MoneroComponents.Style.blackTheme + width: 260 + height: 170 fillMode: Image.PreserveAspectFit - source: "images/card-background.png" + source: "qrc:///images/card-background.png" } - Text { + DropShadow { + visible: isOpenGL && !MoneroComponents.Style.blackTheme + anchors.fill: card + horizontalOffset: 3 + verticalOffset: 3 + radius: 10.0 + samples: 15 + color: "#3B000000" + source: card + cached: true + } + + MoneroComponents.TextPlain { id: testnetLabel visible: persistentSettings.nettype != NetworkType.MAINNET text: (persistentSettings.nettype == NetworkType.TESTNET ? qsTr("Testnet") : qsTr("Stagenet")) + translationManager.emptyString @@ -134,9 +155,10 @@ Rectangle { font.bold: true font.pixelSize: 12 color: "#f33434" + themeTransition: false } - Text { + MoneroComponents.TextPlain { id: viewOnlyLabel visible: viewOnly text: qsTr("View Only") + translationManager.emptyString @@ -147,6 +169,7 @@ Rectangle { font.pixelSize: 12 font.bold: true color: "#ff9323" + themeTransition: false } Rectangle { @@ -164,7 +187,7 @@ Rectangle { anchors.horizontalCenter: parent.horizontalCenter height: 16 * scaleRatio width: 13 * scaleRatio - source: "../images/logout.png" + source: "qrc:///images/logout.png" } MouseArea{ @@ -190,9 +213,10 @@ Rectangle { height: 490 * scaleRatio width: 50 * scaleRatio - Text { + MoneroComponents.TextPlain { visible: !isMobile id: balanceText + themeTransition: false anchors.left: parent.left anchors.leftMargin: 20 anchors.top: parent.top @@ -228,9 +252,10 @@ Rectangle { } } - Text { + MoneroComponents.TextPlain { id: unlockedBalanceText visible: true + themeTransition: false anchors.left: parent.left anchors.leftMargin: 20 anchors.top: parent.top @@ -270,17 +295,20 @@ Rectangle { id: unlockedBalanceLabel visible: true text: qsTr("Unlocked balance") + translationManager.emptyString + color: "white" fontSize: 14 anchors.left: parent.left anchors.leftMargin: 20 anchors.top: parent.top anchors.topMargin: 110 + themeTransition: false } MoneroComponents.Label { visible: !isMobile id: balanceLabel text: qsTr("Balance") + translationManager.emptyString + color: "white" fontSize: 14 anchors.left: parent.left anchors.leftMargin: 20 @@ -288,6 +316,7 @@ Rectangle { anchors.topMargin: 60 elide: Text.ElideRight textWidth: 238 + themeTransition: false } Item { //separator anchors.left: parent.left @@ -307,7 +336,6 @@ Rectangle { anchors.top: (isMobile)? parent.top : column1.bottom color: "transparent" - Flickable { id:flicker contentHeight: menuColumn.height @@ -317,7 +345,6 @@ Rectangle { clip: true Column { - id: menuColumn anchors.left: parent.left anchors.right: parent.right @@ -326,12 +353,10 @@ Rectangle { property var previousButton: transferButton // top border - Rectangle { + MoneroComponents.MenuButtonDivider { anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } // ------------- Account tab --------------- @@ -349,13 +374,11 @@ Rectangle { } } - Rectangle { + MoneroComponents.MenuButtonDivider { visible: accountButton.present anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } // ------------- Transfer tab --------------- @@ -373,13 +396,11 @@ Rectangle { } } - Rectangle { + MoneroComponents.MenuButtonDivider { visible: transferButton.present anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } // ------------- AddressBook tab --------------- @@ -399,13 +420,11 @@ Rectangle { } } - Rectangle { + MoneroComponents.MenuButtonDivider { visible: addressBookButton.present anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } // ------------- Receive tab --------------- @@ -422,13 +441,12 @@ Rectangle { panel.receiveClicked() } } - Rectangle { + + MoneroComponents.MenuButtonDivider { visible: receiveButton.present anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } // ------------- Merchant tab --------------- @@ -449,13 +467,11 @@ Rectangle { } } - Rectangle { + MoneroComponents.MenuButtonDivider { visible: merchantButton.present && appWindow.walletMode >= 2 anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } // ------------- History tab --------------- @@ -473,13 +489,12 @@ Rectangle { panel.historyClicked() } } - Rectangle { + + MoneroComponents.MenuButtonDivider { visible: historyButton.present anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } // ------------- Advanced tab --------------- @@ -497,13 +512,11 @@ Rectangle { } } - Rectangle { + MoneroComponents.MenuButtonDivider { visible: advancedButton.present && appWindow.walletMode >= 2 anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } // ------------- Mining tab --------------- @@ -523,14 +536,13 @@ Rectangle { } } - Rectangle { + MoneroComponents.MenuButtonDivider { visible: miningButton.present && appWindow.walletMode >= 2 anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: miningButton.checked || settingsButton.checked ? "#1C1C1C" : "#313131" - height: 1 } + // ------------- TxKey tab --------------- MoneroComponents.MenuButton { id: txkeyButton @@ -547,14 +559,14 @@ Rectangle { panel.txkeyClicked() } } - Rectangle { + + MoneroComponents.MenuButtonDivider { visible: txkeyButton.present && appWindow.walletMode >= 2 anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } + // ------------- Shared RingDB tab --------------- MoneroComponents.MenuButton { id: sharedringdbButton @@ -571,16 +583,14 @@ Rectangle { panel.sharedringdbClicked() } } - Rectangle { + + MoneroComponents.MenuButtonDivider { visible: sharedringdbButton.present && appWindow.walletMode >= 2 anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } - // ------------- Sign/verify tab --------------- MoneroComponents.MenuButton { id: signButton @@ -597,14 +607,14 @@ Rectangle { panel.signClicked() } } - Rectangle { + + MoneroComponents.MenuButtonDivider { visible: signButton.present && appWindow.walletMode >= 2 anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } + // ------------- Settings tab --------------- MoneroComponents.MenuButton { id: settingsButton @@ -619,14 +629,14 @@ Rectangle { panel.settingsClicked() } } - Rectangle { + + MoneroComponents.MenuButtonDivider { visible: settingsButton.present anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } + // ------------- Sign/verify tab --------------- MoneroComponents.MenuButton { id: keysButton @@ -643,13 +653,12 @@ Rectangle { panel.keysClicked() } } - Rectangle { - visible: settingsButton.present && appWindow.walletMode >= 2 + + MoneroComponents.MenuButtonDivider { + visible: settingsButton.present && settingsButton.checked && appWindow.walletMode >= 2 anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 16 - color: "#313131" - height: 1 } } // Column @@ -697,16 +706,5 @@ Rectangle { visible: networkStatus.connected height: 62 * scaleRatio } - } // menuRect - - - - // indicate disabled state -// Desaturate { -// anchors.fill: parent -// source: parent -// desaturation: panel.enabled ? 0.0 : 1.0 -// } - - + } } diff --git a/MiddlePanel.qml b/MiddlePanel.qml index 3643740b..015e53a8 100644 --- a/MiddlePanel.qml +++ b/MiddlePanel.qml @@ -28,18 +28,18 @@ import QtQml 2.0 -import QtQuick 2.2 +import QtQuick 2.9 import QtQuick.Controls 2.0 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.1 import QtGraphicalEffects 1.0 import moneroComponents.Wallet 1.0 -import "components" as MoneroComponents import "./pages" import "./pages/settings" import "./pages/merchant" -import "components" as MoneroComponents +import "./components" as MoneroComponents +import "./components/effects/" as MoneroEffects Rectangle { id: root @@ -54,7 +54,6 @@ Rectangle { property int minHeight: (appWindow.height > 800) ? appWindow.height : 800 * scaleRatio property alias contentHeight: mainFlickable.contentHeight property alias flickable: mainFlickable -// property int headerHeight: header.height property Transfer transferView: Transfer { } property Receive receiveView: Receive { } @@ -82,10 +81,18 @@ Rectangle { anchors.fill: parent } - Image { - anchors.fill: parent + MoneroEffects.GradientBackground { visible: currentView !== merchantView - source: "../images/middlePanelBg.jpg" + anchors.fill: parent + fallBackColor: MoneroComponents.Style.middlePanelBackgroundColor + initialStartColor: MoneroComponents.Style.middlePanelBackgroundGradientStart + initialStopColor: MoneroComponents.Style.middlePanelBackgroundGradientStop + blackColorStart: MoneroComponents.Style._b_middlePanelBackgroundGradientStart + blackColorStop: MoneroComponents.Style._b_middlePanelBackgroundGradientStop + whiteColorStart: MoneroComponents.Style._w_middlePanelBackgroundGradientStart + whiteColorStop: MoneroComponents.Style._w_middlePanelBackgroundGradientStop + start: Qt.point(0, 0) + end: Qt.point(height, width) } onCurrentViewChanged: { @@ -249,11 +256,28 @@ Rectangle { // border Rectangle { + id: borderLeft + visible: middlePanel.state !== "Merchant" anchors.top: styledRow.bottom anchors.bottom: parent.bottom anchors.left: parent.left width: 1 - color: "#313131" + color: MoneroComponents.Style.appWindowBorderColor + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } + } + + // border shadow + Image { + source: "qrc:///images/middlePanelShadow.png" + width: 12 + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.left: borderLeft.right } /* connect "payment" click */ diff --git a/RightPanel.qml b/RightPanel.qml index 03635409..43bca34c 100644 --- a/RightPanel.qml +++ b/RightPanel.qml @@ -26,7 +26,7 @@ // 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.2 +import QtQuick 2.9 import QtQuick.Controls 1.2 import QtQuick.Controls.Styles 1.2 import QtGraphicalEffects 1.0 diff --git a/components/CheckBox.qml b/components/CheckBox.qml index f341d730..15648d3e 100644 --- a/components/CheckBox.qml +++ b/components/CheckBox.qml @@ -26,16 +26,20 @@ // 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.Layouts 1.1 +import FontAwesome 1.0 -import "../components" as MoneroComponents +import "." as MoneroComponents +import "effects/" as MoneroEffects Item { id: checkBox property alias text: label.text - property string checkedIcon: "../images/checkedIcon-black.png" + property string checkedIcon: "qrc:///images/check-white.svg" property string uncheckedIcon + property int imgWidth: 13 * scaleRatio + property int imgHeight: 13 * scaleRatio property bool checked: false property alias background: backgroundRect.color property bool border: true @@ -63,6 +67,7 @@ Item { Rectangle { id: backgroundRect + visible: checkBox.border anchors.fill: parent radius: 3 color: "transparent" @@ -72,22 +77,26 @@ Item { } else { return MoneroComponents.Style.inputBorderColorInActive; } - visible: checkBox.border } - Image { + MoneroEffects.ImageMask { + id: img + visible: checkBox.checked || checkBox.uncheckedIcon != "" anchors.centerIn: parent - source: { - if (checkBox.checked || checkBox.uncheckedIcon == "") { + width: checkBox.imgWidth + height: checkBox.imgHeight + color: MoneroComponents.Style.defaultFontColor + fontAwesomeFallbackIcon: FontAwesome.plus + fontAwesomeFallbackSize: 14 + image: { + if (checkBox.checked || checkBox.uncheckedIcon == "") return checkBox.checkedIcon; - } return checkBox.uncheckedIcon; } - visible: checkBox.checked || checkBox.uncheckedIcon != "" } } - Text { + MoneroComponents.TextPlain { id: label font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: checkBox.fontSize diff --git a/components/CheckBox2.qml b/components/CheckBox2.qml index 39494001..899f1f1e 100644 --- a/components/CheckBox2.qml +++ b/components/CheckBox2.qml @@ -26,22 +26,22 @@ // 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.Layouts 1.1 import QtGraphicalEffects 1.0 +import FontAwesome 1.0 + import "." 1.0 +import "." as MoneroComponents +import "effects/" as MoneroEffects RowLayout { id: checkBox property alias text: label.text - property string checkedIcon: "../images/checkedIcon-black.png" - property string uncheckedIcon property bool checked: false - property string background: "backgroundRect.color" property int fontSize: 14 * scaleRatio property alias fontColor: label.color property int textMargin: 8 * scaleRatio - property bool darkDropIndicator: false signal clicked() height: 25 * scaleRatio @@ -58,7 +58,7 @@ RowLayout { width: (label.width + indicatorRect.width + checkBox.textMargin) color: "transparent" - Text { + MoneroComponents.TextPlain { id: label font.family: Style.fontLight.name font.pixelSize: checkBox.fontSize @@ -77,21 +77,27 @@ RowLayout { color: "transparent" rotation: checkBox.checked ? 180 * scaleRatio : 0 - Image { + MoneroEffects.ImageMask { id: indicatorImage anchors.centerIn: parent - source: "../images/whiteDropIndicator.png" - visible: !darkDropIndicator - } - ColorOverlay { - anchors.fill: indicatorImage - source: indicatorImage - color: "#FF000000" - visible: darkDropIndicator + width: 12 * scaleRatio + height: 8 * scaleRatio + image: "qrc:///images/whiteDropIndicator.png" + color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1 : 0.75 + fontAwesomeFallbackIcon: FontAwesome.arrowDown + fontAwesomeFallbackSize: 14 + + MoneroEffects.ColorTransition { + targetObj: indicatorImage + blackColor: "white" + whiteColor: "black" + duration: 500 + } } } - MouseArea{ + MouseArea { anchors.fill: parent hoverEnabled: true cursorShape: Qt.PointingHandCursor @@ -100,7 +106,5 @@ RowLayout { } } } - - } } diff --git a/components/DaemonConsole.qml b/components/DaemonConsole.qml index bed7dc39..a27abe79 100644 --- a/components/DaemonConsole.qml +++ b/components/DaemonConsole.qml @@ -26,14 +26,15 @@ // 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.Dialogs 1.2 import QtQuick.Layouts 1.1 import QtQuick.Controls.Styles 1.4 import QtQuick.Window 2.2 -import "../components" as MoneroComponents +import "." as MoneroComponents +import "effects/" as MoneroEffects import "../js/Windows.js" as Windows import "../js/Utils.js" as Utils @@ -64,10 +65,18 @@ Window { width: 480 height: 280 - // background gradient - Image { + // background + MoneroEffects.GradientBackground { anchors.fill: parent - source: "../images/middlePanelBg.jpg" + fallBackColor: MoneroComponents.Style.middlePanelBackgroundColor + initialStartColor: MoneroComponents.Style.middlePanelBackgroundGradientStart + initialStopColor: MoneroComponents.Style.middlePanelBackgroundGradientStop + blackColorStart: MoneroComponents.Style._b_middlePanelBackgroundGradientStart + blackColorStop: MoneroComponents.Style._b_middlePanelBackgroundGradientStop + whiteColorStart: MoneroComponents.Style._w_middlePanelBackgroundGradientStart + whiteColorStop: MoneroComponents.Style._w_middlePanelBackgroundGradientStop + start: Qt.point(0, 0) + end: Qt.point(height, width) } // Make window draggable @@ -111,20 +120,20 @@ Window { font.family: MoneroComponents.Style.defaultFontColor font.pixelSize: 14 * scaleRatio color: MoneroComponents.Style.defaultFontColor - selectionColor: MoneroComponents.Style.dimmedFontColor + selectionColor: MoneroComponents.Style.textSelectionColor wrapMode: TextEdit.Wrap readOnly: true function logCommand(msg){ - msg = log_color(msg, "lime"); + msg = log_color(msg, MoneroComponents.Style.blackTheme ? "lime" : "#009100"); textArea.append(msg); } function logMessage(msg){ msg = msg.trim(); - var color = "white"; + var color = MoneroComponents.Style.defaultFontColor; if(msg.toLowerCase().indexOf('error') >= 0){ - color = "red"; + color = MoneroComponents.Style.errorColor; } else if (msg.toLowerCase().indexOf('warning') >= 0){ - color = "yellow"; + color = MoneroComponents.Style.warningColor; } // format multi-lines diff --git a/components/DaemonManagerDialog.qml b/components/DaemonManagerDialog.qml index 92298e3e..697445d2 100644 --- a/components/DaemonManagerDialog.qml +++ b/components/DaemonManagerDialog.qml @@ -26,7 +26,7 @@ // 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 1.4 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.1 @@ -89,12 +89,14 @@ Window { } } - Text { + MoneroComponents.TextPlain { text: qsTr("Starting local node in %1 seconds").arg(countDown) + translationManager.emptyString; font.pixelSize: 18 Layout.alignment: Qt.AlignHCenter Layout.fillWidth: true horizontalAlignment: Text.AlignHCenter + themeTransition: false + color: "black" } } diff --git a/components/DatePicker.qml b/components/DatePicker.qml index f32ce8bc..b08d786e 100644 --- a/components/DatePicker.qml +++ b/components/DatePicker.qml @@ -26,18 +26,22 @@ // 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.2 +import QtQuick 2.9 import QtQuick.Controls 1.2 +import QtQuick.Layouts 1.2 +import QtGraphicalEffects 1.0 import QtQuick.Controls.Styles 1.2 -import "../components" as MoneroComponents +import "." as MoneroComponents +import "effects/" as MoneroEffects Item { id: datePicker + z: parent.z + 1 property bool expanded: false property date currentDate property bool showCurrentDate: true - property color backgroundColor : "#404040" + property color backgroundColor : MoneroComponents.Style.appWindowBorderColor property color errorColor : "red" property bool error: false property alias inputLabel: inputLabel @@ -67,7 +71,7 @@ Item { height: 22 width: parent.width - Text { + MoneroComponents.TextPlain { id: inputLabel anchors.top: parent.top anchors.topMargin: 2 @@ -77,6 +81,7 @@ Item { font.bold: false textFormat: Text.RichText color: MoneroComponents.Style.defaultFontColor + themeTransition: false MouseArea { anchors.fill: parent @@ -106,45 +111,14 @@ Item { color: datePicker.backgroundColor } - Item { - id: buttonItem - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.margins: 4 - width: height - - Image { - id: button - anchors.centerIn: parent - source: "../images/whiteDropIndicator.png" - rotation: datePicker.expanded ? 180 : 0 - } - - MouseArea { - anchors.fill: parent - onClicked: datePicker.expanded = !datePicker.expanded - hoverEnabled: true - cursorShape: Qt.PointingHandCursor - } - } - - Rectangle { - id: separator - anchors.verticalCenter: parent.verticalCenter - anchors.right: buttonItem.left - anchors.rightMargin: 4 - height: 16 - width: 1 - color: "#808080" - visible: datePicker.expanded - } - - Row { + RowLayout { id: dateInput anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left - anchors.leftMargin: 10 + anchors.leftMargin: 2 + anchors.right: parent.right + property string headerFontColor: MoneroComponents.Style.blackTheme ? "#e6e6e6" : "#333333" + spacing: 0 function setDate(date) { var day = date.getDate() @@ -164,12 +138,14 @@ Item { TextInput { id: dayInput readOnly: true - width: 22 + Layout.preferredWidth: childrenRect.width + 40 font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 - color: datePicker.error ? errorColor : MoneroComponents.Style.defaultFontColor - maximumLength: 2 + color: datePicker.error ? errorColor : parent.headerFontColor + selectionColor: MoneroComponents.Style.dimmedFontColor + selectByMouse: true horizontalAlignment: TextInput.AlignHCenter + maximumLength: 2 validator: IntValidator{bottom: 01; top: 31;} KeyNavigation.tab: monthInput @@ -187,22 +163,25 @@ Item { } } - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 color: datePicker.error ? errorColor : MoneroComponents.Style.defaultFontColor text: "-" + themeTransition: false } TextInput { id: monthInput readOnly: true - width: 22 + Layout.preferredWidth: childrenRect.width + 40 font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 - color: datePicker.error ? errorColor : MoneroComponents.Style.defaultFontColor - maximumLength: 2 + color: datePicker.error ? errorColor : parent.headerFontColor + selectionColor: MoneroComponents.Style.dimmedFontColor + selectByMouse: true horizontalAlignment: TextInput.AlignHCenter + maximumLength: 2 validator: IntValidator{bottom: 01; top: 12;} KeyNavigation.tab: yearInput text: { @@ -219,23 +198,27 @@ Item { } } - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 color: datePicker.error ? errorColor : MoneroComponents.Style.defaultFontColor text: "-" + themeTransition: false } TextInput { id: yearInput - width: 44 + Layout.preferredWidth: childrenRect.width + 60 font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 - color: datePicker.error ? errorColor : MoneroComponents.Style.defaultFontColor - maximumLength: 4 + color: datePicker.error ? errorColor : parent.headerFontColor + selectionColor: MoneroComponents.Style.dimmedFontColor + selectByMouse: true horizontalAlignment: TextInput.AlignHCenter + maximumLength: 4 validator: IntValidator{bottom: 1000; top: 9999;} text: if(datePicker.showCurrentDate) datePicker.currentDate.getFullYear() + onFocusChanged: { if(focus === false) { var d = new Date() @@ -245,6 +228,36 @@ Item { } } } + + Rectangle { + Layout.preferredHeight: parent.height + Layout.fillWidth: true + color: "transparent" + + Image { + id: button + anchors.right: parent.right + anchors.rightMargin: 10 * scaleRatio + anchors.verticalCenter: parent.verticalCenter + source: "qrc:///images/whiteDropIndicator.png" + visible: false + } + + ColorOverlay { + source: button + anchors.fill: button + color: MoneroComponents.Style.defaultFontColor + rotation: datePicker.expanded ? 180 : 0 + opacity: 1 + } + + MouseArea { + anchors.fill: parent + onClicked: datePicker.expanded = !datePicker.expanded + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + } + } } } @@ -253,12 +266,12 @@ Item { anchors.left: parent.left anchors.right: parent.right anchors.top: head.bottom - color: "#FFFFFF" + anchors.topMargin: 10 * scaleRatio + color: MoneroComponents.Style.middlePanelBackgroundColor border.width: 1 - border.color: "#DBDBDB" + border.color: MoneroComponents.Style.appWindowBorderColor height: datePicker.expanded ? calendar.height + 2 : 0 clip: true - //radius: 4 Behavior on height { NumberAnimation { duration: 100; easing.type: Easing.InQuad } @@ -270,7 +283,7 @@ Item { anchors.leftMargin: 1 anchors.rightMargin: 1 anchors.top: parent.top - color: "#FFFFFF" + color: MoneroComponents.Style.appWindowBorderColor height: 1 } @@ -280,40 +293,58 @@ Item { anchors.right: parent.right anchors.top: parent.top anchors.margins: 1 - height: 180 + anchors.bottomMargin: 10 * scaleRatio + height: 220 frameVisible: false style: CalendarStyle { gridVisible: false - background: Rectangle { color: "transparent" } + background: Rectangle { color: MoneroComponents.Style.middlePanelBackgroundColor } dayDelegate: Item { z: parent.z + 1 implicitHeight: implicitWidth implicitWidth: calendar.width / 7 Rectangle { + id: dayRect anchors.fill: parent radius: parent.implicitHeight / 2 - color: dayArea.pressed && styleData.visibleMonth ? "#FF6C3B" : "transparent" + color: { + if(dayArea.pressed && styleData.visibleMonth) + return MoneroComponents.Style.blackTheme ? "#20FFFFFF" : "#10000000" + return "transparent"; + } } - Text { + MoneroComponents.TextPlain { + id: dayText anchors.centerIn: parent - font.family: "Arial" - font.pixelSize: 12 - font.bold: dayArea.pressed + font.family: MoneroComponents.Style.fontMonoRegular.name + font.pixelSize: { + if(!styleData.visibleMonth) return 12 + return 14 + } + font.bold: { + if(dayArea.pressed || styleData.visibleMonth) return true; + return false; + } text: styleData.date.getDate() + themeTransition: false color: { - if(!styleData.visibleMonth) return "#DBDBDB" - if(dayArea.pressed) return "#FFFFFF" - if(styleData.today) return "#FF6C3B" - return "#4A4848" + if(!styleData.visibleMonth) return MoneroComponents.Style.lightGreyFontColor + if(dayArea.pressed) return MoneroComponents.Style.defaultFontColor + if(styleData.today) return MoneroComponents.Style.orange + return MoneroComponents.Style.defaultFontColor } } MouseArea { id: dayArea anchors.fill: parent + hoverEnabled: true + onEntered: dayRect.color = MoneroComponents.Style.blackTheme ? "#20FFFFFF" : "#10000000" + onExited: dayRect.color = "transparent" + cursorShape: Qt.PointingHandCursor onClicked: { if(styleData.visibleMonth) { currentDate = styleData.date @@ -325,7 +356,7 @@ Item { else calendar.showPreviousMonth() } - dateChanged(); + datePicker.dateChanged(); } } } @@ -334,12 +365,13 @@ Item { implicitHeight: 20 implicitWidth: calendar.width / 7 - Text { + MoneroComponents.TextPlain { anchors.centerIn: parent elide: Text.ElideRight - font.family: "Arial" - font.pixelSize: 9 - color: "#535353" + font.family: MoneroComponents.Style.fontMonoRegular.name + font.pixelSize: 12 + color: MoneroComponents.Style.lightGreyFontColor + themeTransition: false text: { var locale = Qt.locale() return locale.dayName(styleData.dayOfWeek, Locale.ShortFormat) @@ -348,29 +380,44 @@ Item { } navigationBar: Rectangle { + color: MoneroComponents.Style.middlePanelBackgroundColor implicitWidth: calendar.width implicitHeight: 30 - Text { + MoneroComponents.TextPlain { anchors.centerIn: parent - font.family: "Arial" - font.pixelSize: 12 - color: "#4A4646" + font.family: MoneroComponents.Style.fontMonoRegular.name + font.pixelSize: 14 + color: MoneroComponents.Style.dimmedFontColor + themeTransition: false text: styleData.title } + Item { anchors.left: parent.left + anchors.leftMargin: 4 * scaleRatio anchors.top: parent.top anchors.bottom: parent.bottom width: height Image { + id: prevMonthIcon anchors.centerIn: parent - source: "../images/prevMonth.png" + source: "qrc:///images/prevMonth.png" + visible: false + } + + ColorOverlay { + source: prevMonthIcon + anchors.fill: prevMonthIcon + color: MoneroComponents.Style.defaultFontColor + opacity: 0.5 } MouseArea { + hoverEnabled: true + cursorShape: Qt.PointingHandCursor anchors.fill: parent onClicked: calendar.showPreviousMonth() } @@ -378,18 +425,29 @@ Item { Item { anchors.right: parent.right + anchors.rightMargin: 4 * scaleRatio anchors.top: parent.top anchors.bottom: parent.bottom width: height Image { + id: nextMonthIcon anchors.centerIn: parent - source: "../images/prevMonth.png" - transformOrigin: Item.Center + source: "qrc:///images/prevMonth.png" + visible: false + } + + ColorOverlay { + source: nextMonthIcon + anchors.fill: nextMonthIcon + color: MoneroComponents.Style.defaultFontColor + opacity: 0.5 rotation: 180 } MouseArea { + hoverEnabled: true + cursorShape: Qt.PointingHandCursor anchors.fill: parent onClicked: calendar.showNextMonth() } diff --git a/components/HistoryTable.qml b/components/HistoryTable.qml new file mode 100644 index 00000000..949f944f --- /dev/null +++ b/components/HistoryTable.qml @@ -0,0 +1,506 @@ +// Copyright (c) 2014-2019, The Monero Project +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are +// permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of +// conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright notice, this list +// of conditions and the following disclaimer in the documentation and/or other +// materials provided with the distribution. +// +// 3. Neither the name of the copyright holder nor the names of its contributors may be +// used to endorse or promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +// 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.9 +import moneroComponents.Clipboard 1.0 +import moneroComponents.AddressBookModel 1.0 + +import "../components" as MoneroComponents +import "../js/TxUtils.js" as TxUtils + +ListView { + id: listView + clip: true + boundsBehavior: ListView.StopAtBounds + property var previousItem + property int rowSpacing: 12 + property var addressBookModel: null + + function buildTxDetailsString(tx_id, paymentId, tx_key,tx_note, destinations, rings, address, address_label) { + var trStart = '', + trMiddle = '', + trEnd = ""; + + return '' + + (tx_id ? trStart + qsTr("Tx ID:") + trMiddle + tx_id + trEnd : "") + + (address_label ? trStart + qsTr("Address label:") + trMiddle + address_label + trEnd : "") + + (address ? trStart + qsTr("Address:") + trMiddle + address + trEnd : "") + + (paymentId ? trStart + qsTr("Payment ID:") + trMiddle + paymentId + trEnd : "") + + (tx_key ? trStart + qsTr("Tx key:") + trMiddle + tx_key + trEnd : "") + + (tx_note ? trStart + qsTr("Tx note:") + trMiddle + tx_note + trEnd : "") + + (destinations ? trStart + qsTr("Destinations:") + trMiddle + destinations + trEnd : "") + + (rings ? trStart + qsTr("Rings:") + trMiddle + rings + trEnd : "") + + "
" + + translationManager.emptyString; + } + + function lookupPaymentID(paymentId) { + if (!addressBookModel) + return "" + var idx = addressBookModel.lookupPaymentID(paymentId) + if (idx < 0) + return "" + idx = addressBookModel.index(idx, 0) + return addressBookModel.data(idx, AddressBookModel.AddressBookDescriptionRole) + } + + footer: Rectangle { + height: 127 * scaleRatio + width: listView.width + color: "transparent" + + MoneroComponents.TextPlain { + anchors.centerIn: parent + font.family: "Arial" + font.pixelSize: 14 + color: "#545454" + text: qsTr("No more results") + translationManager.emptyString + } + } + + delegate: Rectangle { + id: delegate + property bool collapsed: index ? false : true + height: collapsed ? 180 * scaleRatio : 70 * scaleRatio + width: listView.width + color: "transparent" + + function collapse(){ + delegate.height = 180 * scaleRatio; + } + + // borders + Rectangle{ + anchors.right: parent.right + anchors.top: parent.top + anchors.bottom: parent.bottom + width: 1 + color: "#404040" + } + + Rectangle{ + anchors.left: parent.left + anchors.top: parent.top + anchors.bottom: parent.bottom + width: collapsed ? 2 : 1 + color: collapsed ? "#BBBBBB" : "#404040" + } + + Rectangle{ + anchors.right: parent.right + anchors.bottom: parent.top + anchors.left: parent.left + height: 1 + color: "#404040" + } + + Rectangle{ + anchors.right: parent.right + anchors.bottom: parent.bottom + anchors.left: parent.left + height: 1 + color: "#404040" + } + + Rectangle { + id: row1 + anchors.left: parent.left + anchors.leftMargin: 20 * scaleRatio + anchors.right: parent.right + anchors.rightMargin: 20 * scaleRatio + anchors.top: parent.top + anchors.topMargin: 15 * scaleRatio + height: 40 * scaleRatio + color: "transparent" + + Image { + id: arrowImage + source: isOut ? "qrc:///images/downArrow.png" : confirmationsRequired === 60 ? "qrc:///images/miningxmr.png" : "qrc:///images/upArrow-green.png" + height: 18 * scaleRatio + width: (confirmationsRequired === 60 ? 18 : 12) * scaleRatio + anchors.top: parent.top + anchors.topMargin: 12 * scaleRatio + } + + MoneroComponents.TextPlain { + id: txrxLabel + anchors.left: arrowImage.right + anchors.leftMargin: 18 * scaleRatio + font.family: MoneroComponents.Style.fontLight.name + font.pixelSize: 14 * scaleRatio + text: isOut ? qsTr("Sent") + translationManager.emptyString : qsTr("Received") + translationManager.emptyString + color: "#808080" + } + + MoneroComponents.TextPlain { + id: amountLabel + anchors.left: arrowImage.right + anchors.leftMargin: 18 * scaleRatio + anchors.top: txrxLabel.bottom + anchors.topMargin: 0 * scaleRatio + font.family: MoneroComponents.Style.fontBold.name + font.pixelSize: 18 * scaleRatio + font.bold: true + text: { + var _amount = amount; + if(_amount === 0){ + // *sometimes* amount is 0, while the 'destinations string' + // has the correct amount, so we try to fetch it from that instead. + _amount = TxUtils.destinationsToAmount(destinations); + _amount = (_amount *1); + } + + return _amount + " XMR"; + } + color: isOut ? MoneroComponents.Style.white : MoneroComponents.Style.green + + MouseArea { + hoverEnabled: true + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + onEntered: { + parent.color = MoneroComponents.Style.orange + } + onExited: { + parent.color = isOut ? MoneroComponents.Style.white : MoneroComponents.Style.green } + onClicked: { + console.log("Copied to clipboard"); + clipboard.setText(parent.text.split(" ")[0]); + appWindow.showStatusMessage(qsTr("Copied to clipboard"),3) + } + } + } + + Rectangle { + anchors.right: parent.right + width: 300 * scaleRatio + height: parent.height + color: "transparent" + + MoneroComponents.TextPlain { + id: dateLabel + anchors.left: parent.left + font.family: MoneroComponents.Style.fontRegular.name + font.pixelSize: 14 * scaleRatio + text: date + color: "#808080" + } + + MoneroComponents.TextPlain { + id: timeLabel + anchors.left: dateLabel.right + anchors.leftMargin: 7 * scaleRatio + anchors.top: parent.top + anchors.topMargin: 1 * scaleRatio + font.pixelSize: 12 * scaleRatio + text: time + color: "#808080" + } + + MoneroComponents.TextPlain { + id: toLabel + property string address: "" + color: "#BBBBBB" + anchors.left: parent.left + anchors.top: dateLabel.bottom + anchors.topMargin: 0 + font.family: MoneroComponents.Style.fontRegular.name + font.pixelSize: 16 * scaleRatio + text: { + if(isOut){ + address = TxUtils.destinationsToAddress(destinations); + if(address){ + var truncated = TxUtils.addressTruncate(address); + return qsTr("To ") + translationManager.emptyString + truncated; + } else { + return "Unknown recipient"; + } + } + return ""; + } + + MouseArea{ + visible: parent.address !== undefined + hoverEnabled: true + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + onEntered: { + toLabel.color = "white"; + } + onExited: { + toLabel.color = "#BBBBBB"; + } + onClicked: { + if(parent.address){ + console.log("Address copied to clipboard"); + clipboard.setText(parent.address); + appWindow.showStatusMessage(qsTr("Address copied to clipboard"),3) + } + } + } + } + + Rectangle { + height: 24 * scaleRatio + width: 24 * scaleRatio + color: "transparent" + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter + + Image { + id: dropdownImage + height: 8 * scaleRatio + width: 12 * scaleRatio + source: "qrc:///images/whiteDropIndicator.png" + rotation: delegate.collapsed ? 180 : 0 + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + } + + MouseArea{ + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onClicked: { + delegate.collapsed = !delegate.collapsed; + } + } + } + } + } + + Rectangle { + id: row2 + anchors.left: parent.left + anchors.leftMargin: 20 * scaleRatio + anchors.right: parent.right + anchors.rightMargin: 20 * scaleRatio + anchors.top: row1.bottom + anchors.topMargin: 15 * scaleRatio + height: 40 * scaleRatio + color: "transparent" + visible: delegate.collapsed + + // left column + MoneroComponents.HistoryTableInnerColumn{ + anchors.left: parent.left + anchors.leftMargin: 30 * scaleRatio + + labelHeader: qsTr("Transaction ID") + translationManager.emptyString + labelValue: hash.substring(0, 18) + "..." + copyValue: hash + } + + // right column + MoneroComponents.HistoryTableInnerColumn{ + anchors.right: parent.right + anchors.rightMargin: 100 * scaleRatio + width: 200 * scaleRatio + height: parent.height + color: "transparent" + + labelHeader: qsTr("Fee") + labelValue: { + if(!isOut && !fee){ + return "-"; + } else if(isOut && fee){ + return fee + " XMR"; + } else { + return "Unknown" + } + } + copyValue: { + if(isOut && fee){ return fee } + else { return "" } + } + } + + } + + Rectangle { + id: row3 + anchors.left: parent.left + anchors.leftMargin: 20 * scaleRatio + anchors.right: parent.right + anchors.rightMargin: 20 * scaleRatio + anchors.top: row2.bottom + anchors.topMargin: 15 * scaleRatio + height: 40 * scaleRatio + color: "transparent" + visible: delegate.collapsed + + // left column + MoneroComponents.HistoryTableInnerColumn{ + anchors.left: parent.left + anchors.leftMargin: 30 * scaleRatio + labelHeader: qsTr("Blockheight") + labelValue: { + if (!isPending) + if(confirmations < confirmationsRequired) + return blockHeight + " " + qsTr("(%1/%2 confirmations)").arg(confirmations).arg(confirmationsRequired); + else + return blockHeight; + if (!isOut) + return qsTr("UNCONFIRMED") + translationManager.emptyString + if (isFailed) + return qsTr("FAILED") + translationManager.emptyString + return qsTr("PENDING") + translationManager.emptyString + } + copyValue: labelValue.indexOf(" ") > 0 ? labelValue.slice(0, labelValue.indexOf(" ")) : labelValue + } + + // right column + MoneroComponents.HistoryTableInnerColumn { + anchors.right: parent.right + anchors.rightMargin: 80 * scaleRatio + width: 220 * scaleRatio + height: parent.height + color: "transparent" + hashValue: hash + labelHeader: qsTr("Description") + translationManager.emptyString + labelHeaderIconImageSource: "qrc:///images/editIcon.png" + + labelValue: { + var note = currentWallet.getUserNote(hash); + if(note){ + if(note.length > 28) { + return note.substring(0, 28) + "..."; + } else { + return note; + } + } else { + return qsTr("None") + translationManager.emptyString; + } + } + + copyValue: { + return currentWallet.getUserNote(hash); + } + } + + Rectangle { + id: proofButton + visible: isOut + color: "#404040" + height: 24 * scaleRatio + width: 24 * scaleRatio + anchors.right: parent.right + anchors.bottom: parent.bottom + anchors.bottomMargin: 36 + radius: 20 * scaleRatio + + MouseArea { + id: proofButtonMouseArea + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onClicked: { + var address = TxUtils.destinationsToAddress(destinations); + if(address === undefined){ + console.log('getProof: Error fetching address') + return; + } + + var checked = (TxUtils.checkTxID(hash) && TxUtils.checkAddress(address, appWindow.persistentSettings.nettype)); + if(!checked){ + console.log('getProof: Error checking TxId and/or address'); + } + + console.log("getProof: Generate clicked: txid " + hash + ", address " + address); + root.getProofClicked(hash, address, ''); + } + + onEntered: { + proofButton.color = "#656565"; + } + + onExited: { + proofButton.color = "#404040"; + } + } + + MoneroComponents.TextPlain { + color: MoneroComponents.Style.defaultFontColor + text: "P" + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + font.pixelSize: 14 * scaleRatio + } + } + + Rectangle { + id: detailsButton + color: "#404040" + height: 24 * scaleRatio + width: 24 * scaleRatio + anchors.right: parent.right + anchors.bottom: parent.bottom + anchors.bottomMargin: 6 + radius: 20 * scaleRatio + + MouseArea { + id: detailsButtonMouseArea + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onClicked: { + var tx_key = currentWallet.getTxKey(hash) + var tx_note = currentWallet.getUserNote(hash) + var rings = currentWallet.getRings(hash) + var address_label = subaddrIndex == 0 ? qsTr("Primary address") : currentWallet.getSubaddressLabel(subaddrAccount, subaddrIndex) + var address = currentWallet.address(subaddrAccount, subaddrIndex) + if (rings) + rings = rings.replace(/\|/g, '\n') + informationPopup.title = "Transaction details"; + informationPopup.content = buildTxDetailsString(hash,paymentId,tx_key,tx_note,destinations, rings, address, address_label); + informationPopup.onCloseCallback = null + informationPopup.open(); + } + + onEntered: { + detailsButton.color = "#656565"; + } + + onExited: { + detailsButton.color = "#404040"; + } + } + + MoneroComponents.TextPlain { + color: MoneroComponents.Style.defaultFontColor + text: "?" + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + font.pixelSize: 14 * scaleRatio + } + } + } + } + + Clipboard { id: clipboard } +} diff --git a/components/IconButton.qml b/components/IconButton.qml index ba6d1e94..5d4d8d19 100644 --- a/components/IconButton.qml +++ b/components/IconButton.qml @@ -26,55 +26,33 @@ // 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.9 +import "../components" as MoneroComponents +import "../components/effects" as MoneroEffects -import QtQuick 2.0 - -Item { - property alias image : buttonImage - property alias imageSource : buttonImage.source +MoneroEffects.ImageMask { + id: button + z: 666 + color: MoneroComponents.Style.defaultFontColor + image: "" signal clicked(var mouse) - id: button - width: parent.height - height: parent.height - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: parent.bottom - - Image { - id: buttonImage - source: "" - x : (parent.width - width) / 2 - y : (parent.height - height) / 2 - z: 100 - } - MouseArea { - id: buttonArea - anchors.fill: buttonImage + anchors.fill: parent hoverEnabled: true cursorShape: Qt.PointingHandCursor - onPressed: { - buttonImage.x = buttonImage.x + 2 - buttonImage.y = buttonImage.y + 2 - } - - onReleased: { - buttonImage.x = (parent.width - width) / 2 - buttonImage.y = (parent.height - height) / 2 + onEntered: { + button.width = button.width + 2 + button.height = button.height + 2 } onExited: { - if (pressed) { - buttonImage.x = (parent.width - width) / 2 - buttonImage.y = (parent.height - height) / 2 - } + button.width = button.width - 2 + button.height = button.height - 2 } - onClicked: { - parent.clicked(mouse) - } + onClicked: button.clicked(mouse) } } diff --git a/components/InlineButton.qml b/components/InlineButton.qml index 4741a701..5871a8ff 100644 --- a/components/InlineButton.qml +++ b/components/InlineButton.qml @@ -26,10 +26,12 @@ // 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.Layouts 1.1 +import QtGraphicalEffects 1.0 -import "../components" as MoneroComponents +import "." as MoneroComponents +import "./effects/" as MoneroEffects Item { id: inlineButton @@ -43,9 +45,9 @@ Item { property string pressedColor: "#FF4304" property string releasedColor: "#FF6C3C" property string icon: "" - property string textColor: "black" + property string textColor: MoneroComponents.Style.inlineButtonTextColor property int fontSize: small ? 14 * scaleRatio : 16 * scaleRatio - property int rectHeight: small ? 24 * scaleRatio : 28 * scaleRatio + property int rectHeight: small ? 24 * scaleRatio : 24 * scaleRatio property int rectHMargin: small ? 16 * scaleRatio : 22 * scaleRatio property alias text: inlineText.text property alias fontPixelSize: inlineText.font.pixelSize @@ -61,16 +63,16 @@ Item { Rectangle{ id: rect - color: MoneroComponents.Style.buttonBackgroundColorDisabled - border.color: "black" - height: 28 * scaleRatio - width: inlineText.text ? (inlineText.width + 22) * scaleRatio : inlineButton.icon ? (inlineImage.width + 16) * scaleRatio : rect.height + color: MoneroComponents.Style.buttonInlineBackgroundColor + height: 24 * scaleRatio + width: inlineText.text ? (inlineText.width + 16) * scaleRatio : inlineButton.icon ? (inlineImage.width + 16) * scaleRatio : rect.height radius: 4 anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right + anchors.rightMargin: 4 * scaleRatio - Text { + MoneroComponents.TextPlain { id: inlineText font.family: MoneroComponents.Style.fontBold.name font.bold: true @@ -78,6 +80,13 @@ Item { color: inlineButton.textColor anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter + themeTransition: false + + MoneroEffects.ColorTransition { + targetObj: inlineText + blackColor: MoneroComponents.Style._b_inlineButtonTextColor + whiteColor: MoneroComponents.Style._w_inlineButtonTextColor + } } Image { @@ -104,6 +113,18 @@ Item { } } + DropShadow { + visible: !MoneroComponents.Style.blackTheme + anchors.fill: rect + horizontalOffset: 2 + verticalOffset: 2 + radius: 7.0 + samples: 10 + color: "#1B000000" + cached: true + source: rect + } + Keys.onSpacePressed: doClick() Keys.onReturnPressed: doClick() } diff --git a/components/Input.qml b/components/Input.qml index b04c3c72..c3d345c4 100644 --- a/components/Input.qml +++ b/components/Input.qml @@ -27,7 +27,7 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import QtQuick.Controls 2.0 -import QtQuick 2.7 +import QtQuick 2.9 import "../components" as MoneroComponents @@ -38,8 +38,8 @@ TextField { horizontalAlignment: TextInput.AlignLeft selectByMouse: true color: MoneroComponents.Style.defaultFontColor - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor background: Rectangle { color: "transparent" diff --git a/components/InputDialog.qml b/components/InputDialog.qml index 26e1f18a..8b3414ed 100644 --- a/components/InputDialog.qml +++ b/components/InputDialog.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Controls 2.0 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.1 @@ -49,7 +49,7 @@ Item { inactiveOverlay.visible = true leftPanel.enabled = false middlePanel.enabled = false - titleBar.enabled = false + titleBar.state = "essentials" show() root.visible = true; input.focus = true; @@ -60,7 +60,7 @@ Item { inactiveOverlay.visible = false leftPanel.enabled = true middlePanel.enabled = true - titleBar.enabled = true + titleBar.state = "default" root.visible = false; } @@ -101,14 +101,14 @@ Item { leftPadding: 10 topPadding: 10 color: MoneroComponents.Style.defaultFontColor - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor background: Rectangle { radius: 2 - border.color: Qt.rgba(255, 255, 255, 0.35) + border.color: MoneroComponents.Style.inputBorderColorActive border.width: 1 - color: "black" + color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF" } Keys.onReturnPressed: { diff --git a/components/InputMulti.qml b/components/InputMulti.qml index e497e18b..4fea31c4 100644 --- a/components/InputMulti.qml +++ b/components/InputMulti.qml @@ -27,7 +27,7 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import QtQuick.Controls 2.0 -import QtQuick 2.7 +import QtQuick 2.9 import "../js/TxUtils.js" as TxUtils import "../components" as MoneroComponents @@ -48,8 +48,8 @@ TextArea { font.bold: fontBold horizontalAlignment: TextInput.AlignLeft selectByMouse: mouseSelection - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor property int minimumHeight: 100 * scaleRatio height: contentHeight > minimumHeight ? contentHeight : minimumHeight diff --git a/components/Label.qml b/components/Label.qml index 05c65da6..2ab9463d 100644 --- a/components/Label.qml +++ b/components/Label.qml @@ -26,7 +26,7 @@ // 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.5 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import "../components" as MoneroComponents @@ -43,15 +43,15 @@ Item { property string fontFamily: "" property alias wrapMode: label.wrapMode property alias horizontalAlignment: label.horizontalAlignment - property alias hoveredLink: label.hoveredLink property alias elide: label.elide property alias textWidth: label.width + property alias themeTransition: label.themeTransition signal linkActivated() height: label.height * scaleRatio width: label.width * scaleRatio Layout.topMargin: 10 * scaleRatio - Text { + MoneroComponents.TextPlain { id: label anchors.bottom: parent.bottom anchors.bottomMargin: 2 * scaleRatio diff --git a/components/LabelButton.qml b/components/LabelButton.qml index 532f4901..eaa51677 100644 --- a/components/LabelButton.qml +++ b/components/LabelButton.qml @@ -26,7 +26,7 @@ // 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.Layouts 1.1 import "../components" as MoneroComponents @@ -37,14 +37,14 @@ Rectangle { property alias text: labelButtonText.text id: labelButton - color: "#808080" + color: MoneroComponents.Style.buttonBackgroundColorDisabled radius: 3 height: 20 width: labelButtonText.width + 14 anchors.right: copyButton.left anchors.rightMargin: 6 - Text { + MoneroComponents.TextPlain { id: labelButtonText anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter @@ -52,7 +52,7 @@ Rectangle { font.pixelSize: 12 font.bold: true text: "" - color: "black" + color: MoneroComponents.Style.inlineButtonTextColor } MouseArea { @@ -61,11 +61,11 @@ Rectangle { hoverEnabled: true onClicked: labelButton.clicked() onEntered: { - labelButton.color = "#707070"; + labelButton.color = MoneroComponents.Style.buttonBackgroundColorDisabledHover; labelButtonText.opacity = 0.8; } onExited: { - labelButton.color = "#808080"; + labelButton.color = MoneroComponents.Style.buttonBackgroundColorDisabled; labelButtonText.opacity = 1.0; } } diff --git a/components/LabelSubheader.qml b/components/LabelSubheader.qml index 50288ecf..7a74a378 100644 --- a/components/LabelSubheader.qml +++ b/components/LabelSubheader.qml @@ -26,9 +26,10 @@ // 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 "../components" as MoneroComponents +import "../components/effects/" as MoneroEffects Label { id: item @@ -40,13 +41,12 @@ Label { anchors.left: parent.left anchors.right: parent.right height: 2 - color: MoneroComponents.Style.dividerColor - opacity: MoneroComponents.Style.dividerOpacity - } + color: MoneroComponents.Style.appWindowBorderColor - MouseArea { - anchors.fill: parent - acceptedButtons: Qt.NoButton - cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } } } diff --git a/components/LanguageSidebar.qml b/components/LanguageSidebar.qml index 7d45d68b..94957e0b 100644 --- a/components/LanguageSidebar.qml +++ b/components/LanguageSidebar.qml @@ -28,7 +28,7 @@ import "../components" as MoneroComponents -import QtQuick 2.7 +import QtQuick 2.9 import QtQuick.XmlListModel 2.0 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -79,7 +79,7 @@ Drawer { width: sideBar.width height: 32 * scaleRatio - Text { + MoneroComponents.TextPlain { anchors.left: parent.left anchors.leftMargin: 16 * scaleRatio font.bold: true @@ -101,7 +101,7 @@ Drawer { // button gradient while checked Image { anchors.fill: parent - source: "../images/menuButtonGradient.png" + source: "qrc:///images/menuButtonGradient.png" opacity: 0.65 visible: true diff --git a/components/LineEdit.qml b/components/LineEdit.qml index 95ba1369..f3016137 100644 --- a/components/LineEdit.qml +++ b/components/LineEdit.qml @@ -26,7 +26,8 @@ // 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 QtGraphicalEffects 1.0 import "../components" as MoneroComponents @@ -106,7 +107,7 @@ Item { } } - Text { + MoneroComponents.TextPlain { id: inputLabel anchors.top: parent.top anchors.left: parent.left @@ -146,7 +147,7 @@ Item { width: parent.width clip: true - Text { + MoneroComponents.TextPlain { id: placeholderLabel visible: input.text ? false : true anchors.verticalCenter: parent.verticalCenter @@ -192,7 +193,7 @@ Item { anchors.topMargin: 8 * scaleRatio anchors.left: parent.left anchors.leftMargin: 12 * scaleRatio - source: "../images/moneroIcon-28x28.png" + source: "qrc:///images/moneroIcon-28x28.png" visible: false } diff --git a/components/LineEditMulti.qml b/components/LineEditMulti.qml index 3689ad39..26d57509 100644 --- a/components/LineEditMulti.qml +++ b/components/LineEditMulti.qml @@ -26,7 +26,7 @@ // 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.Layouts 1.1 import "../components" as MoneroComponents @@ -72,7 +72,7 @@ ColumnLayout { property int labelFontSize: 16 * scaleRatio property bool labelButtonVisible: false - property string fontColor: "white" + property string fontColor: MoneroComponents.Style.defaultFontColor property bool fontBold: false property int fontSize: 16 * scaleRatio @@ -103,7 +103,7 @@ ColumnLayout { height: (inputLabel.height + 10) * scaleRatio visible: showingHeader ? true : false - Text { + MoneroComponents.TextPlain { id: inputLabel anchors.top: parent.top anchors.left: parent.left @@ -172,7 +172,7 @@ ColumnLayout { onEditingFinished: item.editingFinished() error: item.error - Text { + MoneroComponents.TextPlain { id: placeholderLabel visible: input.text ? false : true anchors.verticalCenter: parent.verticalCenter diff --git a/components/MenuButton.qml b/components/MenuButton.qml index b587c975..a4aa236f 100644 --- a/components/MenuButton.qml +++ b/components/MenuButton.qml @@ -26,9 +26,11 @@ // 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.5 +import QtQuick 2.9 +import QtGraphicalEffects 1.0 import "../components" as MoneroComponents +import "effects/" as MoneroEffects Rectangle { id: button @@ -46,7 +48,6 @@ Rectangle { clicked(); } - function getOffset() { var offset = 0 var item = button @@ -61,16 +62,27 @@ Rectangle { property bool present: !under || under.checked || checked || under.numSelectedChildren > 0 height: present ? ((appWindow.height >= 800) ? 44 * scaleRatio : 38 * scaleRatio ) : 0 - // button gradient while checked - Image { + LinearGradient { + visible: isOpenGL && button.checked height: parent.height width: 260 anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: -20 anchors.leftMargin: parent.getOffset() - source: "../images/menuButtonGradient.png" - visible: button.checked + start: Qt.point(width, 0) + end: Qt.point(0, 0) + gradient: Gradient { + GradientStop { position: 0.0; color: MoneroComponents.Style.menuButtonGradientStart } + GradientStop { position: 1.0; color: MoneroComponents.Style.menuButtonGradientStop } + } + } + + // fallback hover effect when opengl is not available + Rectangle { + visible: !isOpenGL && button.checked + anchors.fill: parent + color: MoneroComponents.Style.menuButtonFallbackBackgroundColor } // button decorations that are subject to leftMargin offsets @@ -79,7 +91,7 @@ Rectangle { anchors.leftMargin: parent.getOffset() + 20 * scaleRatio height: parent.height width: button.checked ? 20: 10 - color: "#00000000" + color: "transparent" // dot if unchecked Rectangle { @@ -93,43 +105,48 @@ Rectangle { Image { anchors.centerIn: parent anchors.left: parent.left - source: "../images/arrow-right-medium-white.png" + source: MoneroComponents.Style.menuButtonImageDotArrowSource visible: button.checked } } // button text - Text { + MoneroComponents.TextPlain { id: label + color: MoneroComponents.Style.menuButtonTextColor + themeTransitionBlackColor: MoneroComponents.Style._b_menuButtonTextColor + themeTransitionWhiteColor: MoneroComponents.Style._w_menuButtonTextColor anchors.verticalCenter: parent.verticalCenter anchors.left: parent.right anchors.leftMargin: 8 * scaleRatio - font.family: MoneroComponents.Style.fontMedium.name font.bold: true - font.pixelSize: 16 * scaleRatio - color: "#FFFFFF" + font.pixelSize: 14 * scaleRatio } } // menu button right arrow - Image { + MoneroEffects.ImageMask { anchors.verticalCenter: parent.verticalCenter + anchors.leftMargin: parent.getOffset() anchors.right: parent.right anchors.rightMargin: 20 * scaleRatio - anchors.leftMargin: parent.getOffset() - source: "../images/right.png" - opacity: button.checked ? 1.0 : 0.4 + height: 14 + width: 8 + image: MoneroComponents.Style.menuButtonImageRightSource + color: button.checked ? MoneroComponents.Style.menuButtonImageRightColorActive : MoneroComponents.Style.menuButtonImageRightColor + opacity: button.checked ? 0.8 : 0.25 } - Text { + MoneroComponents.TextPlain { id: symbolText anchors.right: parent.right anchors.rightMargin: 44 * scaleRatio anchors.verticalCenter: parent.verticalCenter font.pixelSize: 12 * scaleRatio font.bold: true - color: button.checked || buttonArea.containsMouse ? "#FFFFFF" : dot.color + color: button.checked || buttonArea.containsMouse ? MoneroComponents.Style.menuButtonTextColor : dot.color visible: appWindow.ctrlPressed + themeTransition: false } MouseArea { diff --git a/components/MenuButtonDivider.qml b/components/MenuButtonDivider.qml new file mode 100644 index 00000000..50d7c0f4 --- /dev/null +++ b/components/MenuButtonDivider.qml @@ -0,0 +1,15 @@ +import QtQuick 2.9 + +import "." as MoneroComponents +import "effects/" as MoneroEffects + +Rectangle { + color: MoneroComponents.Style.appWindowBorderColor + height: 1 + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } +} diff --git a/components/MobileHeader.qml b/components/MobileHeader.qml index 53a080ad..8b8431b9 100644 --- a/components/MobileHeader.qml +++ b/components/MobileHeader.qml @@ -1,4 +1,4 @@ -import QtQuick 2.2 +import QtQuick 2.9 import QtGraphicalEffects 1.0 import QtQuick.Layouts 1.1 @@ -21,7 +21,7 @@ Rectangle { anchors.verticalCenterOffset: -5 anchors.left: parent.left anchors.leftMargin: 50 * scaleRatio - source: "../images/moneroLogo2.png" + source: "qrc:///images/moneroLogo2.png" } Image { @@ -30,7 +30,7 @@ Rectangle { anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: 40 * scaleRatio - source: "../images/moneroIcon.png" + source: "qrc:///images/moneroIcon.png" } Grid { @@ -41,7 +41,7 @@ Rectangle { width: 256 * scaleRatio columns: 3 - Text { + MoneroComponents.TextPlain { id: balanceLabel width: 116 * scaleRatio height: 20 * scaleRatio @@ -55,7 +55,7 @@ Rectangle { text: leftPanel.balanceLabelText + ":" } - Text { + MoneroComponents.TextPlain { id: balanceText width: 110 * scaleRatio height: 20 * scaleRatio @@ -76,11 +76,11 @@ Rectangle { Image { anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left - source: "../images/lockIcon.png" + source: "qrc:///images/lockIcon.png" } } - Text { + MoneroComponents.TextPlain { width: 116 * scaleRatio height: 20 * scaleRatio font.family: "Arial" @@ -93,7 +93,7 @@ Rectangle { text: qsTr("Unlocked Balance:") } - Text { + MoneroComponents.TextPlain { id: availableBalanceText width: 110 * scaleRatio height: 20 * scaleRatio diff --git a/components/NetworkStatusItem.qml b/components/NetworkStatusItem.qml index a1994398..a5ca56fa 100644 --- a/components/NetworkStatusItem.qml +++ b/components/NetworkStatusItem.qml @@ -26,7 +26,7 @@ // 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.Layouts 1.1 import moneroComponents.Wallet 1.0 @@ -79,11 +79,11 @@ Rectangle { anchors.rightMargin: !appWindow.isMining ? 11 * scaleRatio : 0 source: { if(appWindow.isMining) { - return "../images/miningxmr.png" + return "qrc:///images/miningxmr.png" } else if(item.connected == Wallet.ConnectionStatus_Connected) { - return "../images/lightning.png" + return "qrc:///images/lightning.png" } else { - return "../images/lightning-white.png" + return "qrc:///images/lightning-white.png" } } MouseArea { @@ -105,7 +105,7 @@ Rectangle { height: 40 * scaleRatio width: 260 * scaleRatio - Text { + MoneroComponents.TextPlain { id: statusText anchors.left: parent.left anchors.top: parent.top @@ -113,20 +113,24 @@ Rectangle { font.family: MoneroComponents.Style.fontMedium.name font.bold: true font.pixelSize: 13 * scaleRatio - color: "white" - opacity: 0.5 + color: MoneroComponents.Style.dimmedFontColor + opacity: MoneroComponents.Style.blackTheme ? 0.65 : 0.5 text: qsTr("Network status") + translationManager.emptyString + themeTransition: false } - Text { + MoneroComponents.TextPlain { id: statusTextVal anchors.left: parent.left anchors.top: parent.top anchors.topMargin: 14 font.family: MoneroComponents.Style.fontMedium.name font.pixelSize: 20 * scaleRatio - color: "white" + color: MoneroComponents.Style.defaultFontColor text: getConnectionStatusString(item.connected) + translationManager.emptyString + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.7 + themeTransition: false + MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor diff --git a/components/NewPasswordDialog.qml b/components/NewPasswordDialog.qml index 11e31008..bb987fe9 100644 --- a/components/NewPasswordDialog.qml +++ b/components/NewPasswordDialog.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Controls 2.0 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.1 @@ -52,7 +52,9 @@ Item { inactiveOverlay.visible = true leftPanel.enabled = false middlePanel.enabled = false - titleBar.enabled = false + titleBar.state = "essentials" + + show(); root.visible = true; passwordInput1.text = ""; passwordInput2.text = ""; @@ -63,7 +65,7 @@ Item { inactiveOverlay.visible = false leftPanel.enabled = true middlePanel.enabled = true - titleBar.enabled = true + titleBar.state = "default" root.visible = false; closeCallback(); } @@ -123,22 +125,22 @@ Item { leftPadding: 10 topPadding: 10 color: MoneroComponents.Style.defaultFontColor - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor KeyNavigation.tab: passwordInput2 background: Rectangle { radius: 2 - border.color: Qt.rgba(255, 255, 255, 0.35) + border.color: MoneroComponents.Style.inputBorderColorInActive border.width: 1 - color: "black" + color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF" Image { width: 26 * scaleRatio height: 26 * scaleRatio opacity: 0.7 fillMode: Image.PreserveAspectFit - source: isHidden ? "../images/eyeShow.png" : "../images/eyeHide.png" + source: isHidden ? "qrc:///images/eyeShow.png" : "qrc:///images/eyeHide.png" anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 20 @@ -202,24 +204,25 @@ Item { leftPadding: 10 topPadding: 10 color: MoneroComponents.Style.defaultFontColor - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor background: Rectangle { radius: 2 - border.color: Qt.rgba(255, 255, 255, 0.35) + border.color: MoneroComponents.Style.inputBorderColorInActive border.width: 1 - color: "black" + color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF" Image { width: 26 * scaleRatio height: 26 * scaleRatio opacity: 0.7 fillMode: Image.PreserveAspectFit - source: isHidden ? "../images/eyeShow.png" : "../images/eyeHide.png" + source: isHidden ? "qrc:///images/eyeShow.png" : "qrc:///images/eyeHide.png" anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 20 + MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor diff --git a/components/Notifier.qml b/components/Notifier.qml index d14c1efe..1e842e84 100644 --- a/components/Notifier.qml +++ b/components/Notifier.qml @@ -26,7 +26,7 @@ // 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 1.4 import moneroComponents.Wallet 1.0 diff --git a/components/PassphraseDialog.qml b/components/PassphraseDialog.qml index a8b47f12..1a41d5db 100644 --- a/components/PassphraseDialog.qml +++ b/components/PassphraseDialog.qml @@ -58,7 +58,9 @@ Item { leftPanel.enabled = false middlePanel.enabled = false - titleBar.enabled = false + titleBar.state = "essentials" + + show(); root.visible = true; passphaseInput1.text = ""; passphaseInput2.text = ""; @@ -69,7 +71,7 @@ Item { inactiveOverlay.visible = false leftPanel.enabled = true middlePanel.enabled = true - titleBar.enabled = true + titleBar.state = "default" root.visible = false; closeCallback(); } @@ -155,22 +157,22 @@ Item { leftPadding: 10 topPadding: 10 color: MoneroComponents.Style.defaultFontColor - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor KeyNavigation.tab: passphaseInput2 background: Rectangle { radius: 2 - border.color: Qt.rgba(255, 255, 255, 0.35) + border.color: MoneroComponents.Style.inputBorderColorInActive border.width: 1 - color: "black" + color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF" Image { width: 26 * scaleRatio height: 26 * scaleRatio opacity: 0.7 fillMode: Image.PreserveAspectFit - source: isHidden ? "../images/eyeShow.png" : "../images/eyeHide.png" + source: isHidden ? "qrc:///images/eyeShow.png" : "qrc:///images/eyeHide.png" anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 20 @@ -207,7 +209,7 @@ Item { Layout.alignment: Qt.AlignHCenter height: 10 opacity: 0 - color: "black" + color: "transparent" } Label { @@ -239,16 +241,16 @@ Item { background: Rectangle { radius: 2 - border.color: Qt.rgba(255, 255, 255, 0.35) + border.color: MoneroComponents.Style.inputBorderColorInActive border.width: 1 - color: "black" + color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF" Image { width: 26 * scaleRatio height: 26 * scaleRatio opacity: 0.7 fillMode: Image.PreserveAspectFit - source: isHidden ? "../images/eyeShow.png" : "../images/eyeHide.png" + source: isHidden ? "qrc:///images/eyeShow.png" : "qrc:///images/eyeHide.png" anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 20 diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml index e292603b..eed71fa4 100644 --- a/components/PasswordDialog.qml +++ b/components/PasswordDialog.qml @@ -26,14 +26,15 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Controls 2.0 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.1 import QtQuick.Controls.Styles 1.4 import QtQuick.Window 2.0 -import "../components" as MoneroComponents +import "." as MoneroComponents +import "effects/" as MoneroEffects import "../js/Utils.js" as Utils Item { @@ -62,7 +63,9 @@ Item { errorTextLabel.text = errorText ? errorText : ""; leftPanel.enabled = false middlePanel.enabled = false - titleBar.enabled = false + + titleBar.state = "essentials" + show() root.visible = true; passwordInput.forceActiveFocus(); passwordInput.text = "" @@ -78,7 +81,8 @@ Item { inactiveOverlay.visible = false leftPanel.enabled = true middlePanel.enabled = true - titleBar.enabled = true + titleBar.state = "default" + root.visible = false; appWindow.hideBalanceForced = false; appWindow.updateBalance(); @@ -133,8 +137,8 @@ Item { leftPadding: 10 topPadding: 10 color: MoneroComponents.Style.defaultFontColor - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor onTextChanged: { var letter = text[passwordInput.text.length - 1]; @@ -149,19 +153,26 @@ Item { background: Rectangle { radius: 2 - border.color: Qt.rgba(255, 255, 255, 0.35) + color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF" + border.color: MoneroComponents.Style.inputBorderColorInActive border.width: 1 - color: "black" + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: "black" + whiteColor: "#A9FFFFFF" + } Image { width: 26 * scaleRatio height: 26 * scaleRatio opacity: 0.7 fillMode: Image.PreserveAspectFit - source: isHidden ? "../images/eyeShow.png" : "../images/eyeHide.png" + source: isHidden ? "qrc:///images/eyeShow.png" : "qrc:///images/eyeHide.png" anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 20 + MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor diff --git a/components/PrivacyLevelSmall.qml b/components/PrivacyLevelSmall.qml index d1d0edf6..4f1f1939 100644 --- a/components/PrivacyLevelSmall.qml +++ b/components/PrivacyLevelSmall.qml @@ -28,7 +28,7 @@ // @TODO: Remove component after wizard redesign -import QtQuick 2.0 +import QtQuick 2.9 Item { id: item @@ -89,7 +89,7 @@ Item { } } - Text { + MoneroComponents.TextPlain { anchors.verticalCenter: parent.verticalCenter font.family: "Arial" font.pixelSize: 15 @@ -98,7 +98,7 @@ Item { text: qsTr("Low") + translationManager.emptyString } - Text { + MoneroComponents.TextPlain { anchors.verticalCenter: parent.verticalCenter font.family: "Arial" font.pixelSize: 15 @@ -107,7 +107,7 @@ Item { text: qsTr("Medium") + translationManager.emptyString } - Text { + MoneroComponents.TextPlain { anchors.verticalCenter: parent.verticalCenter font.family: "Arial" font.pixelSize: 15 diff --git a/components/ProcessingSplash.qml b/components/ProcessingSplash.qml index 4ff5c410..47f441b6 100644 --- a/components/ProcessingSplash.qml +++ b/components/ProcessingSplash.qml @@ -26,16 +26,18 @@ // 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.Window 2.1 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.1 +import "../components" as MoneroComponents + Rectangle { id: root - color: "white" + color: MoneroComponents.Style.blackTheme ? "white" : "transparent" visible: false - z:11 + z: 11 property alias messageText: messageTitle.text property alias heightProgressText : heightProgress.text @@ -61,12 +63,14 @@ Rectangle { anchors.leftMargin: 30 * scaleRatio anchors.rightMargin: 30 * scaleRatio + spacing: 12 + BusyIndicator { running: parent.visible Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter } - Text { + MoneroComponents.TextPlain { id: messageTitle text: "Please wait..." font { @@ -75,10 +79,12 @@ Rectangle { horizontalAlignment: Text.AlignHCenter Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter Layout.fillWidth: true + themeTransition: false + color: "black" } - Text { + MoneroComponents.TextPlain { id: heightProgress font { pixelSize: 18 * scaleRatio @@ -86,6 +92,8 @@ Rectangle { horizontalAlignment: Text.AlignHCenter Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter Layout.fillWidth: true + themeTransition: false + color: "black" } } } diff --git a/components/ProgressBar.qml b/components/ProgressBar.qml index 94447fc2..491727d5 100644 --- a/components/ProgressBar.qml +++ b/components/ProgressBar.qml @@ -26,7 +26,7 @@ // 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 moneroComponents.Wallet 1.0 import "../components" as MoneroComponents @@ -46,8 +46,10 @@ Rectangle { fillLevel = progressLevel if(typeof statusTxt != "undefined" && statusTxt != "") { progressText.text = statusTxt; + progressTextValue.text = ""; } else { - progressText.text = syncText + remaining.toFixed(0); + progressText.text = syncText; + progressTextValue.text = remaining.toFixed(0); } } } @@ -59,31 +61,30 @@ Rectangle { anchors.rightMargin: 15 * scaleRatio anchors.fill: parent - Text { + MoneroComponents.TextPlain { id: progressText anchors.top: parent.top anchors.topMargin: 6 font.family: MoneroComponents.Style.fontMedium.name font.pixelSize: 13 * scaleRatio - font.bold: true - color: "white" + font.bold: MoneroComponents.Style.progressBarProgressTextBold + color: MoneroComponents.Style.defaultFontColor text: qsTr("Synchronizing %1").arg(syncType) + translationManager.emptyString height: 18 * scaleRatio } - Text { + MoneroComponents.TextPlain { id: progressTextValue anchors.top: parent.top anchors.topMargin: 6 anchors.right: parent.right font.family: MoneroComponents.Style.fontMedium.name font.pixelSize: 13 * scaleRatio - font.bold: true - color: "white" + font.bold: MoneroComponents.Style.progressBarProgressTextBold + color: MoneroComponents.Style.defaultFontColor height:18 * scaleRatio } - Rectangle { id: bar anchors.left: parent.left @@ -92,7 +93,24 @@ Rectangle { anchors.topMargin: 4 height: 8 * scaleRatio radius: 8 * scaleRatio - color: "#333333" // progressbar bg + color: MoneroComponents.Style.progressBarBackgroundColor + + states: [ + State { + name: "black"; + when: MoneroComponents.Style.blackTheme + PropertyChanges { target: bar; color: MoneroComponents.Style._b_progressBarBackgroundColor} + }, State { + name: "white"; + when: !MoneroComponents.Style.blackTheme + PropertyChanges { target: bar; color: MoneroComponents.Style._w_progressBarBackgroundColor} + } + ] + + transitions: Transition { + enabled: appWindow.themeTransition + ColorAnimation { properties: "color"; easing.type: Easing.InOutQuad; duration: 300 } + } Rectangle { id: fillRect @@ -103,7 +121,6 @@ Rectangle { property int maxWidth: bar.width * scaleRatio width: (maxWidth * fillLevel) / 100 radius: 8 - // could change color based on progressbar status; if(item.fillLevel < 99 ) color: "#FA6800" } @@ -116,7 +133,4 @@ Rectangle { } } - - - } diff --git a/components/QRCodeScanner.qml b/components/QRCodeScanner.qml index 162e6bf6..111e7ff6 100644 --- a/components/QRCodeScanner.qml +++ b/components/QRCodeScanner.qml @@ -26,7 +26,7 @@ // 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 QtMultimedia 5.4 import QtQuick.Dialogs 1.2 import moneroComponents.QRCodeScanner 1.0 diff --git a/components/RadioButton.qml b/components/RadioButton.qml index 09b79107..cde2bb90 100644 --- a/components/RadioButton.qml +++ b/components/RadioButton.qml @@ -26,7 +26,7 @@ // 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.Layouts 1.1 import "../components" as MoneroComponents @@ -41,8 +41,8 @@ Item { height: 26 * scaleRatio width: layout.width // legacy properties - property var checkedColor: "white" - property var borderColor: checked ? Qt.rgba(1, 1, 1, 0.35) : Qt.rgba(1, 1, 1, 0.25) + property var checkedColor: MoneroComponents.Style.blackTheme ? "white" : "#666666" + property var borderColor: checked ? MoneroComponents.Style.inputBorderColorActive : MoneroComponents.Style.inputBorderColorInActive function toggle(){ radioButton.checked = !radioButton.checked @@ -72,7 +72,7 @@ Item { } } - Text { + MoneroComponents.TextPlain { id: label Layout.leftMargin: (!isMobile ? 10 : 8) * scaleRatio color: MoneroComponents.Style.defaultFontColor diff --git a/components/RemoteNodeEdit.qml b/components/RemoteNodeEdit.qml index 46e9fe3c..0cec2171 100644 --- a/components/RemoteNodeEdit.qml +++ b/components/RemoteNodeEdit.qml @@ -28,7 +28,7 @@ import QtQuick.Controls 1.2 import QtQuick.Controls.Styles 1.2 -import QtQuick 2.2 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import "../js/Utils.js" as Utils @@ -47,16 +47,16 @@ GridLayout { // the wizards get redesigned to the black-theme property string placeholderFontFamily: MoneroComponents.Style.fontRegular.name property bool placeholderFontBold: false - property int placeholderFontSize: 18 * scaleRatio + property int placeholderFontSize: 15 * scaleRatio property string placeholderColor: MoneroComponents.Style.defaultFontColor property real placeholderOpacity: 0.35 + property int labelFontSize: 14 * scaleRatio - property string lineEditBorderColor: Qt.rgba(0, 0, 0, 0.15) - property string lineEditBackgroundColor: "white" - property string lineEditFontColor: "black" - property int lineEditFontSize: 18 * scaleRatio - property int labelFontSize: 16 * scaleRatio - property bool lineEditFontBold: true + property string lineEditBackgroundColor: "transparent" + property string lineEditBorderColor: MoneroComponents.Style.inputBorderColorInActive + property string lineEditFontColor: MoneroComponents.Style.defaultFontColor + property bool lineEditFontBold: false + property int lineEditFontSize: 15 * scaleRatio signal editingFinished() signal textChanged() diff --git a/components/Scroll.qml b/components/Scroll.qml index 67b0c304..679eb278 100644 --- a/components/Scroll.qml +++ b/components/Scroll.qml @@ -26,7 +26,7 @@ // 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 "." as MoneroComponents Item { diff --git a/components/StandardButton.qml b/components/StandardButton.qml index e9e9a92a..05ee16a0 100644 --- a/components/StandardButton.qml +++ b/components/StandardButton.qml @@ -26,7 +26,7 @@ // 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.Layouts 1.1 import "../components" as MoneroComponents @@ -50,8 +50,7 @@ Item { implicitHeight: height implicitWidth: width - function doClick() { - // Android workaround + function doClick(){ releaseFocus(); clicked(); } @@ -64,6 +63,7 @@ Item { state: button.enabled ? "active" : "disabled" Component.onCompleted: state = state + states: [ State { name: "hover" @@ -90,7 +90,9 @@ Item { } } ] + transitions: Transition { + enabled: appWindow.themeTransition ColorAnimation { duration: 100 } } } @@ -101,15 +103,16 @@ Item { spacing: 11 * scaleRatio anchors.centerIn: parent - Text { + MoneroComponents.TextPlain { id: label font.family: MoneroComponents.Style.fontBold.name font.bold: true font.pixelSize: button.fontSize color: !buttonArea.pressed ? button.textColor : "transparent" visible: text !== "" + themeTransition: false - Text { + MoneroComponents.TextPlain { anchors.centerIn: parent color: button.textColor font.bold: label.font.bold @@ -117,6 +120,7 @@ Item { font.pixelSize: label.font.pixelSize - 1 text: label.text opacity: buttonArea.pressed ? 1 : 0 + themeTransition: false } } diff --git a/components/StandardDialog.qml b/components/StandardDialog.qml index 15069a33..ba5b198e 100644 --- a/components/StandardDialog.qml +++ b/components/StandardDialog.qml @@ -26,7 +26,7 @@ // 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.Dialogs 1.2 import QtQuick.Layouts 1.1 @@ -34,6 +34,7 @@ import QtQuick.Controls.Styles 1.4 import QtQuick.Window 2.0 import "../components" as MoneroComponents +import "effects/" as MoneroEffects Rectangle { id: root @@ -56,12 +57,18 @@ Rectangle { signal rejected() signal closeCallback(); - Image { - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: parent.bottom - source: "../images/middlePanelBg.jpg" + // background + MoneroEffects.GradientBackground { + anchors.fill: parent + fallBackColor: MoneroComponents.Style.middlePanelBackgroundColor + initialStartColor: MoneroComponents.Style.middlePanelBackgroundGradientStart + initialStopColor: MoneroComponents.Style.middlePanelBackgroundGradientStop + blackColorStart: MoneroComponents.Style._b_middlePanelBackgroundGradientStart + blackColorStop: MoneroComponents.Style._b_middlePanelBackgroundGradientStop + whiteColorStart: MoneroComponents.Style._w_middlePanelBackgroundGradientStart + whiteColorStop: MoneroComponents.Style._w_middlePanelBackgroundGradientStop + start: Qt.point(0, 0) + end: Qt.point(height, width) } // Make window draggable @@ -188,11 +195,13 @@ Rectangle { height: 48 * scaleRatio color: "transparent" - Image { + MoneroEffects.ImageMask { anchors.centerIn: parent width: 16 * scaleRatio height: 16 * scaleRatio - source: "../images/close.png" + image: MoneroComponents.Style.titleBarCloseSource + color: MoneroComponents.Style.defaultFontColor + opacity: 0.75 } MouseArea { diff --git a/components/StandardDropdown.qml b/components/StandardDropdown.qml index 783d1d14..0eeab407 100644 --- a/components/StandardDropdown.qml +++ b/components/StandardDropdown.qml @@ -26,9 +26,11 @@ // 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 QtGraphicalEffects 1.0 import "../components" as MoneroComponents +import "../components/effects/" as MoneroEffects Item { id: dropdown @@ -36,9 +38,9 @@ Item { property alias dataModel: repeater.model property string shadowPressedColor property string shadowReleasedColor - property string pressedColor - property string releasedColor - property string textColor: "#FFFFFF" + property string pressedColor: MoneroComponents.Style.appWindowBorderColor + property string releasedColor: MoneroComponents.Style.titleBarButtonHoverColor + property string textColor: MoneroComponents.Style.defaultFontColor property alias currentIndex: columnid.currentIndex property bool expanded: false property int dropdownHeight: 42 @@ -81,14 +83,14 @@ Item { height: dropdown.dropdownHeight Rectangle { - color: dropdown.colorHeaderBackground + color: "transparent" border.width: dropdown.headerBorder ? 1 : 0 border.color: dropdown.colorBorder radius: 4 anchors.fill: parent } - Text { + MoneroComponents.TextPlain { id: firstColText anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left @@ -97,7 +99,7 @@ Item { font.family: MoneroComponents.Style.fontRegular.name font.bold: dropdown.headerFontBold font.pixelSize: dropdown.fontHeaderSize - color: "#FFFFFF" + color: dropdown.textColor } Item { @@ -108,9 +110,18 @@ Item { width: 32 * scaleRatio Image { + id: dropdownIcon anchors.centerIn: parent - source: "../images/whiteDropIndicator.png" + source: "qrc:///images/whiteDropIndicator.png" + visible: false + } + + ColorOverlay { + source: dropdownIcon + anchors.fill: dropdownIcon + color: MoneroComponents.Style.defaultFontColor rotation: dropdown.expanded ? 180 * scaleRatio : 0 + opacity: 1 } } @@ -131,7 +142,6 @@ Item { clip: true height: dropdown.expanded ? columnid.height : 0 color: dropdown.pressedColor - //radius: 4 Rectangle { anchors.left: parent.left @@ -180,7 +190,7 @@ Item { //radius: index === repeater.count - 1 ? 4 : 0 color: itemArea.containsMouse || index === columnid.currentIndex || itemArea.containsMouse ? dropdown.releasedColor : dropdown.pressedColor - Text { + MoneroComponents.TextPlain { id: col1Text anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left @@ -194,7 +204,7 @@ Item { text: qsTr(column1) + translationManager.emptyString } - Text { + MoneroComponents.TextPlain { id: col2Text anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right diff --git a/components/Style.qml b/components/Style.qml index 8555cb5e..37c2f9ce 100644 --- a/components/Style.qml +++ b/components/Style.qml @@ -3,6 +3,7 @@ pragma Singleton import QtQuick 2.5 QtObject { + property bool blackTheme: true property QtObject fontMedium: FontLoader { id: _fontMedium; source: "qrc:/fonts/Roboto-Medium.ttf"; } property QtObject fontBold: FontLoader { id: _fontBold; source: "qrc:/fonts/Roboto-Bold.ttf"; } property QtObject fontLight: FontLoader { id: _fontLight; source: "qrc:/fonts/Roboto-Light.ttf"; } @@ -18,27 +19,176 @@ QtObject { property string white: "#FFFFFF" property string green: "#2EB358" property string moneroGrey: "#4C4C4C" + property string warningColor: "orange" - property string defaultFontColor: "white" - property string dimmedFontColor: "#BBBBBB" - property string lightGreyFontColor: "#DFDFDF" - property string greyFontColor: "#808080" - property string warningColor: "#963E00" - property string errorColor: "#FA6800" - property string inputBoxBackground: "black" - property string inputBoxBackgroundError: "#FFDDDD" - property string inputBoxColor: "white" - property string legacy_placeholderFontColor: "#BABABA" - property string inputBorderColorActive: Qt.rgba(255, 255, 255, 0.38) - property string inputBorderColorInActive: Qt.rgba(255, 255, 255, 0.32) - property string inputBorderColorInvalid: Qt.rgba(255, 0, 0, 0.40) + property string defaultFontColor: blackTheme ? _b_defaultFontColor : _w_defaultFontColor + property string dimmedFontColor: blackTheme ? _b_dimmedFontColor : _w_dimmedFontColor + property string lightGreyFontColor: blackTheme ? _b_lightGreyFontColor : _w_lightGreyFontColor + property string errorColor: blackTheme ? _b_errorColor : _w_errorColor + property string textSelectionColor: blackTheme ? _b_textSelectionColor : _w_textSelectionColor + property string textSelectedColor: blackTheme ? _b_textSelectedColor : _w_textSelectedColor - property string buttonBackgroundColor: "#FA6800" - property string buttonBackgroundColorHover: "#E65E00" - property string buttonBackgroundColorDisabled: "#707070" - property string buttonBackgroundColorDisabledHover: "#808080" - property string buttonTextColor: "white" - property string buttonTextColorDisabled: "black" - property string dividerColor: "white" - property real dividerOpacity: 0.20 + property string inputBoxBackground: blackTheme ? _b_inputBoxBackground : _w_inputBoxBackground + property string inputBoxBackgroundError: blackTheme ? _b_inputBoxBackgroundError : _w_inputBoxBackgroundError + property string inputBoxColor: blackTheme ? _b_inputBoxColor : _w_inputBoxColor + property string legacy_placeholderFontColor: blackTheme ? _b_legacy_placeholderFontColor : _w_legacy_placeholderFontColor + property string inputBorderColorActive: blackTheme ? _b_inputBorderColorActive : _w_inputBorderColorActive + property string inputBorderColorInActive: blackTheme ? _b_inputBorderColorInActive : _w_inputBorderColorInActive + property string inputBorderColorInvalid: blackTheme ? _b_inputBorderColorInvalid : _w_inputBorderColorInvalid + + property string buttonBackgroundColor: blackTheme ? _b_buttonBackgroundColor : _w_buttonBackgroundColor + property string buttonBackgroundColorHover: blackTheme ? _b_buttonBackgroundColorHover : _w_buttonBackgroundColorHover + property string buttonBackgroundColorDisabled: blackTheme ? _b_buttonBackgroundColorDisabled : _w_buttonBackgroundColorDisabled + property string buttonBackgroundColorDisabledHover: blackTheme ? _b_buttonBackgroundColorDisabledHover : _w_buttonBackgroundColorDisabledHover + property string buttonInlineBackgroundColor: blackTheme ? _b_buttonInlineBackgroundColor : _w_buttonInlineBackgroundColor + property string buttonTextColor: blackTheme ? _b_buttonTextColor : _w_buttonTextColor + property string buttonTextColorDisabled: blackTheme ? _b_buttonTextColorDisabled : _w_buttonTextColorDisabled + property string dividerColor: blackTheme ? _b_dividerColor : _w_dividerColor + property real dividerOpacity: blackTheme ? _b_dividerOpacity : _w_dividerOpacity + + property string titleBarBackgroundGradientStart: blackTheme ? _b_titleBarBackgroundGradientStart : _w_titleBarBackgroundGradientStart + property string titleBarBackgroundGradientStop: blackTheme ? _b_titleBarBackgroundGradientStop : _w_titleBarBackgroundGradientStop + property string titleBarBackgroundBorderColor: blackTheme ? _b_titleBarBackgroundBorderColor : _w_titleBarBackgroundBorderColor + property string titleBarLogoSource: blackTheme ? _b_titleBarLogoSource : _w_titleBarLogoSource + property string titleBarMinimizeSource: blackTheme ? _b_titleBarMinimizeSource : _w_titleBarMinimizeSource + property string titleBarExpandSource: blackTheme ? _b_titleBarExpandSource : _w_titleBarExpandSource + property string titleBarFullscreenSource: blackTheme ? _b_titleBarFullscreenSource : _w_titleBarFullscreenSource + property string titleBarCloseSource: blackTheme ? _b_titleBarCloseSource : _w_titleBarCloseSource + property string titleBarButtonHoverColor: blackTheme ? _b_titleBarButtonHoverColor : _w_titleBarButtonHoverColor + + property string wizardBackgroundGradientStart: blackTheme ? _b_wizardBackgroundGradientStart : _w_wizardBackgroundGradientStart + property string middlePanelBackgroundGradientStart: blackTheme ? _b_middlePanelBackgroundGradientStart : _w_middlePanelBackgroundGradientStart + property string middlePanelBackgroundGradientStop: blackTheme ? _b_middlePanelBackgroundGradientStop : _w_middlePanelBackgroundGradientStop + property string middlePanelBackgroundColor: blackTheme ? _b_middlePanelBackgroundColor : _w_middlePanelBackgroundColor + property string menuButtonFallbackBackgroundColor: blackTheme ? _b_menuButtonFallbackBackgroundColor : _w_menuButtonFallbackBackgroundColor + property string menuButtonGradientStart: blackTheme ? _b_menuButtonGradientStart : _w_menuButtonGradientStart + property string menuButtonGradientStop: blackTheme ? _b_menuButtonGradientStop : _w_menuButtonGradientStop + property string menuButtonTextColor: blackTheme ? _b_menuButtonTextColor : _w_menuButtonTextColor + property string menuButtonImageRightColorActive: blackTheme ? _b_menuButtonImageRightColorActive : _w_menuButtonImageRightColorActive + property string menuButtonImageRightColor: blackTheme ? _b_menuButtonImageRightColor : _w_menuButtonImageRightColor + property string menuButtonImageRightSource: blackTheme ? _b_menuButtonImageRightSource : _w_menuButtonImageRightSource + property string menuButtonImageDotArrowSource: blackTheme ? _b_menuButtonImageDotArrowSource : _w_menuButtonImageDotArrowSource + property string inlineButtonTextColor: blackTheme ? _b_inlineButtonTextColor : _w_inlineButtonTextColor + property string inlineButtonBorderColor: blackTheme ? _b_inlineButtonBorderColor : _w_inlineButtonBorderColor + property string appWindowBackgroundColor: blackTheme ? _b_appWindowBackgroundColor : _w_appWindowBackgroundColor + property string appWindowBorderColor: blackTheme ? _b_appWindowBorderColor : _w_appWindowBorderColor + property bool progressBarProgressTextBold: blackTheme ? _b_progressBarProgressTextBold : _w_progressBarProgressTextBold + property string progressBarBackgroundColor: blackTheme ? _b_progressBarBackgroundColor : _w_progressBarBackgroundColor + property string leftPanelBackgroundGradientStart: blackTheme ? _b_leftPanelBackgroundGradientStart : _w_leftPanelBackgroundGradientStart + property string leftPanelBackgroundGradientStop: blackTheme ? _b_leftPanelBackgroundGradientStop : _w_leftPanelBackgroundGradientStop + property string historyHeaderTextColor: blackTheme ? _b_historyHeaderTextColor : _w_historyHeaderTextColor + + property string _b_defaultFontColor: "white" + property string _b_dimmedFontColor: "#BBBBBB" + property string _b_lightGreyFontColor: "#DFDFDF" + property string _b_errorColor: "#FA6800" + property string _b_textSelectionColor: "#BBBBBB" + property string _b_textSelectedColor: "white" + + property string _b_inputBoxBackground: "black" + property string _b_inputBoxBackgroundError: "#FFDDDD" + property string _b_inputBoxColor: "white" + property string _b_legacy_placeholderFontColor: "#BABABA" + property string _b_inputBorderColorActive: Qt.rgba(255, 255, 255, 0.38) + property string _b_inputBorderColorInActive: Qt.rgba(255, 255, 255, 0.32) + property string _b_inputBorderColorInvalid: Qt.rgba(255, 0, 0, 0.40) + + property string _b_buttonBackgroundColor: "#FA6800" + property string _b_buttonBackgroundColorHover: "#E65E00" + property string _b_buttonBackgroundColorDisabled: "#707070" + property string _b_buttonBackgroundColorDisabledHover: "#808080" + property string _b_buttonInlineBackgroundColor: "#707070" + property string _b_buttonTextColor: "white" + property string _b_buttonTextColorDisabled: "black" + property string _b_dividerColor: "white" + property real _b_dividerOpacity: 0.20 + + property string _b_titleBarBackgroundGradientStart: "#262626"; + property string _b_titleBarBackgroundGradientStop: "#191919" + property string _b_titleBarBackgroundBorderColor: "#2f2f2f" + property string _b_titleBarLogoSource: "qrc:///images/titlebarLogo.png" + property string _b_titleBarMinimizeSource: "qrc:///images/minimize.svg" + property string _b_titleBarExpandSource: "qrc:///images/sidebar.svg" + property string _b_titleBarFullscreenSource: "qrc:///images/fullscreen.svg" + property string _b_titleBarCloseSource: "qrc:///images/close.svg" + property string _b_titleBarButtonHoverColor: "#10FFFFFF" + + property string _b_wizardBackgroundGradientStart: "#1e1e1e" + property string _b_middlePanelBackgroundGradientStart: "#232323" + property string _b_middlePanelBackgroundGradientStop: "#101010" + property string _b_middlePanelBackgroundColor: "#181818" + property string _b_menuButtonFallbackBackgroundColor: "#09FFFFFF" + property string _b_menuButtonGradientStart: "#11FFFFFF" + property string _b_menuButtonGradientStop: "#00000000" + property string _b_menuButtonTextColor: "white" + property string _b_menuButtonImageRightColorActive: "white" + property string _b_menuButtonImageRightColor: "white" + property string _b_menuButtonImageRightSource: "qrc:///images/right.svg" + property string _b_menuButtonImageDotArrowSource: "qrc:///images/arrow-right-medium-white.png" + property string _b_inlineButtonTextColor: "black" + property string _b_inlineButtonBorderColor: "black" + property string _b_appWindowBackgroundColor: "white" + property string _b_appWindowBorderColor: "#313131" + property bool _b_progressBarProgressTextBold: true + property string _b_progressBarBackgroundColor: "#24FFFFFF" + property string _b_leftPanelBackgroundGradientStart: "#222222" + property string _b_leftPanelBackgroundGradientStop: "#1a1a1a" + property string _b_historyHeaderTextColor: "#C0C0C0" + + property string _w_defaultFontColor: "black" + property string _w_dimmedFontColor: "#3f3f3f" + property string _w_lightGreyFontColor: "#515151" + property string _w_errorColor: "#FA6800" + property string _w_textSelectionColor: "#BBBBBB" + property string _w_textSelectedColor: "black" + + property string _w_inputBoxBackground: "white" + property string _w_inputBoxBackgroundError: "#FFDDDD" + property string _w_inputBoxColor: "black" + property string _w_legacy_placeholderFontColor: "#BABABA" + property string _w_inputBorderColorActive: Qt.rgba(0, 0, 0, 0.30) + property string _w_inputBorderColorInActive: Qt.rgba(0, 0, 0, 0.16) + property string _w_inputBorderColorInvalid: Qt.rgba(255, 0, 0, 0.50) + + property string _w_buttonBackgroundColor: "#FA6800" + property string _w_buttonBackgroundColorHover: "#E65E00" + property string _w_buttonBackgroundColorDisabled: "#bbbbbb" + property string _w_buttonBackgroundColorDisabledHover: "#D1D1D1" + property string _w_buttonInlineBackgroundColor: "#bbbbbb" + property string _w_buttonTextColor: "white" + property string _w_buttonTextColorDisabled: "black" + property string _w_dividerColor: "black" + property real _w_dividerOpacity: 0.20 + + property string _w_titleBarBackgroundGradientStart: "#fcfcfc" + property string _w_titleBarBackgroundGradientStop: "#FBFBFB" + property string _w_titleBarBackgroundBorderColor: "#DEDEDE" + property string _w_titleBarLogoSource: "qrc:///images/themes/white/titlebarLogo.png" + property string _w_titleBarMinimizeSource: "qrc:///images/themes/white/minimize.svg" + property string _w_titleBarExpandSource: "qrc:///images/themes/white/expand.svg" + property string _w_titleBarFullscreenSource: "qrc:///images/themes/white/fullscreen.svg" + property string _w_titleBarCloseSource: "qrc:///images/themes/white/close.svg" + property string _w_titleBarButtonHoverColor: "#11000000" + + property string _w_wizardBackgroundGradientStart: "white" + property string _w_middlePanelBackgroundGradientStart: "white" + property string _w_middlePanelBackgroundGradientStop: "#ededed" + property string _w_middlePanelBackgroundColor: "#f5f5f5" + property string _w_menuButtonFallbackBackgroundColor: "#09000000" + property string _w_menuButtonGradientStart: "#08000000" + property string _w_menuButtonGradientStop: "#10FFFFFF" + property string _w_menuButtonTextColor: "#787878" + property string _w_menuButtonImageRightSource: "qrc:///images/right.svg" + property string _w_menuButtonImageRightColorActive: "#FA6800" + property string _w_menuButtonImageRightColor: "#808080" + property string _w_menuButtonImageDotArrowSource: "qrc:///images/arrow-right-medium-white.png" + property string _w_inlineButtonTextColor: "white" + property string _w_inlineButtonBorderColor: "transparent" + property string _w_appWindowBackgroundColor: "black" + property string _w_appWindowBorderColor: "#dedede" + property bool _w_progressBarProgressTextBold: false + property string _w_progressBarBackgroundColor: "#24000000" + property string _w_leftPanelBackgroundGradientStart: "white" + property string _w_leftPanelBackgroundGradientStop: "#f5f5f5" + property string _w_historyHeaderTextColor: "#515151" } diff --git a/components/TableDropdown.qml b/components/TableDropdown.qml new file mode 100644 index 00000000..50a296a7 --- /dev/null +++ b/components/TableDropdown.qml @@ -0,0 +1,237 @@ +// Copyright (c) 2014-2018, The Monero Project +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are +// permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of +// conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright notice, this list +// of conditions and the following disclaimer in the documentation and/or other +// materials provided with the distribution. +// +// 3. Neither the name of the copyright holder nor the names of its contributors may be +// used to endorse or promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +// 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.9 + +Item { + id: dropdown + property bool expanded: false + property alias dataModel: repeater.model + signal collapsed() + signal optionClicked(int option) + width: 72 + height: 37 + + onExpandedChanged: if(expanded) appWindow.currentItem = dropdown + function hide() { dropdown.expanded = false } + function containsPoint(px, py) { + if(px < 0) + return false + if(px > width) + return false + if(py < 0) + return false + if(py > height + dropArea.height) + return false + return true + } + + Item { + id: head + anchors.fill: parent + + Rectangle { + anchors.left: parent.left + anchors.right: parent.right + height: parent.height - 1 + y: dropdown.expanded || dropArea.height > 0 ? 0 : 1 + //radius: 3 + color: dropdown.expanded || dropArea.height > 0 ? "#888888" : "#DBDBDB" + } + + Rectangle { + anchors.left: parent.left + anchors.right: parent.right + height: parent.height - 1 + y: dropdown.expanded || dropArea.height > 0 ? 1 : 0 + //radius: 3 + color: dropdown.expanded || dropArea.height > 0 ? "#DBDBDB" : "#F0EEEE" + } + + Rectangle { + anchors.left: parent.left + anchors.bottom: parent.bottom + height: 3 + width: 3 + color: "#DBDBDB" + visible: dropdown.expanded || dropArea.height > 0 + } + + Rectangle { + anchors.right: parent.right + anchors.bottom: parent.bottom + height: 3 + width: 3 + color: "#DBDBDB" + visible: dropdown.expanded || dropArea.height > 0 + } + + Image { + anchors.verticalCenter: parent.verticalCenter + anchors.left: parent.left + anchors.leftMargin: 10 + source: "qrc:///images/tableOptions.png" + } + + Rectangle { + anchors.centerIn: parent + anchors.horizontalCenterOffset: 1 + height: 23 + width: 1 + color: dropdown.expanded || dropArea.height > 0 ? "#FFFFFF" : "#DBDBDB" + } + + Image { + anchors.verticalCenter: parent.verticalCenter + anchors.right: parent.right + anchors.rightMargin: 10 + source: "qrc:///images/dropIndicator.png" + } + } + + Timer { + id: timer + interval: 50 + repeat: true + running: false + onTriggered: { + if(((appWindow.toolTip.visible && !appWindow.toolTip.containsMouse) || !appWindow.toolTip.visible) && !mouseArea.containsMouse) { + appWindow.toolTip.visible = false + dropdown.expanded = false + currentIndex = -1 + timer.stop() + } + } + } + + MouseArea { + id: mouseArea + anchors.left: head.left + anchors.right: head.right + anchors.top: head.top + height: head.height + dropArea.height + hoverEnabled: true + onEntered: dropdown.expanded = true + + property int currentIndex: -1 + onMouseYChanged: { + if(mouseY > head.height) { + var posY = parseInt((mouseY - head.height) / 30) + currentIndex = posY + } else { + currentIndex = -1 + } + } + + onClicked: { + optionClicked(currentIndex) + } + + onExited: timer.start() + preventStealing: true + z: 1 + + Item { + id: dropArea + anchors.left: parent.left + anchors.right: parent.right + y: head.height + height: dropdown.expanded ? column.height : 0 + onHeightChanged: if(height === 0) dropdown.collapsed() + clip: true + + Behavior on height { + NumberAnimation { duration: 100; easing.type: Easing.InQuad } + } + + Column { + id: column + anchors.left: parent.left + anchors.right: parent.right + anchors.top: parent.top + + Repeater { + id: repeater + + // Workaround for translations in listElements. All translated strings needs to be listed in this file. + property string stringCopy: qsTr("Copy address to clipboard") + translationManager.emptyString + property string stringSend: qsTr("Send to this address") + translationManager.emptyString + property string stringFind: qsTr("Find similar transactions") + translationManager.emptyString + property string stringRemove: qsTr("Remove from address book") + translationManager.emptyString + + delegate: Rectangle { + id: delegate + property bool containsMouse: index === mouseArea.currentIndex + anchors.left: parent.left + anchors.right: parent.right + height: 30 + color: containsMouse ? "#F0EEEE" : "#DBDBDB" + //radius: index === repeater.count - 1 ? 5 : 0 + Rectangle { + anchors.left: parent.left + anchors.top: parent.top + width: 5 + height: 5 + color: delegate.color + } + + Rectangle { + anchors.right: parent.right + anchors.top: parent.top + width: 5 + height: 5 + color: delegate.color + } + + Image { + anchors.verticalCenter: parent.verticalCenter + anchors.left: parent.left + anchors.leftMargin: 10 + source: icon + } + + onContainsMouseChanged: { + if(containsMouse) { + var pos = rootItem.mapFromItem(delegate, 30, -25) + appWindow.toolTip.text = qsTr(name) + translationManager.emptyString + appWindow.toolTip.x = pos.x - appWindow.toolTip.width +// if(appWindow.toolTip.height > 30) +// pos.y -= appWindow.toolTip.height - 30 + appWindow.toolTip.y = pos.y + appWindow.toolTip.visible = true + appWindow.toolTip.z = 3 + + } + } + + } + } + } + } + } +} diff --git a/components/TextBlock.qml b/components/TextBlock.qml index aec20892..9d1d0cf4 100644 --- a/components/TextBlock.qml +++ b/components/TextBlock.qml @@ -1,11 +1,11 @@ -import QtQuick 2.0 +import QtQuick 2.9 import "../components" as MoneroComponents TextEdit { color: MoneroComponents.Style.defaultFontColor font.family: MoneroComponents.Style.fontRegular.name - selectionColor: MoneroComponents.Style.dimmedFontColor + selectionColor: MoneroComponents.Style.textSelectionColor wrapMode: Text.Wrap readOnly: true selectByMouse: true diff --git a/components/TextPlain.qml b/components/TextPlain.qml new file mode 100644 index 00000000..2bc05042 --- /dev/null +++ b/components/TextPlain.qml @@ -0,0 +1,28 @@ +import QtQuick 2.9 + +import "." as MoneroComponents +import "effects/" as MoneroEffects + +Text { + // When using this component, please note that if you use a color different + // than `defaultFontColor`, you are required to also define `themeTransitionXColor`. + // If you do not set these the component will receive the wrong color after a transition. + // If you do not want to set these, use `themeTransition: false`. + id: root + property bool themeTransition: true + property string themeTransitionBlackColor: "" + property string themeTransitionWhiteColor: "" + font.family: MoneroComponents.Style.fontMedium.name + font.bold: false + font.pixelSize: 14 * scaleRatio + textFormat: Text.PlainText + + MoneroEffects.ColorTransition { + enabled: root.themeTransition + themeTransition: root.themeTransition + targetObj: root + duration: 750 + blackColor: root.themeTransitionBlackColor !== "" ? root.themeTransitionBlackColor : MoneroComponents.Style._b_defaultFontColor + whiteColor: root.themeTransitionWhiteColor !== "" ? root.themeTransitionWhiteColor : MoneroComponents.Style._w_defaultFontColor + } +} diff --git a/components/TextPlainArea.qml b/components/TextPlainArea.qml new file mode 100644 index 00000000..700e674f --- /dev/null +++ b/components/TextPlainArea.qml @@ -0,0 +1,48 @@ +import QtQuick 2.9 +import QtQuick.Controls 2.0 + +import "." as MoneroComponents + +TextArea { + id: textArea + property bool themeTransition: true + property string colorWhiteTheme: "" + property string colorBlackTheme: "" + color: MoneroComponents.Style.defaultFontColor + font.family: MoneroComponents.Style.fontRegular.name + font.pixelSize: 14 * scaleRatio + selectByMouse: false + wrapMode: Text.WordWrap; + textMargin: 0 + leftPadding: 0 + topPadding: 0 + readOnly: true + textFormat: TextEdit.PlainText + + states: [ + State { + name: "black"; + when: textArea.themeTransition && MoneroComponents.Style.blackTheme + PropertyChanges { + target: textArea + color: { + return textArea.colorBlackTheme ? textArea.colorBlackTheme : MoneroComponents.Style._b_defaultFontColor + } + } + }, State { + name: "white"; + when: textArea.themeTransition && !MoneroComponents.Style.blackTheme + PropertyChanges { + target: textArea + color: { + return textArea.colorWhiteTheme ? textArea.colorWhiteTheme : MoneroComponents.Style._w_defaultFontColor + } + } + } + ] + + transitions: Transition { + enabled: appWindow.themeTransition + ColorAnimation { properties: "color"; easing.type: Easing.InOutQuad; duration: 750 } + } +} diff --git a/components/TipItem.qml b/components/TipItem.qml index 6cb1a58f..2fe39597 100644 --- a/components/TipItem.qml +++ b/components/TipItem.qml @@ -26,9 +26,11 @@ // 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.2 +import QtQuick 2.9 import QtQuick.Window 2.1 +import "../components" as MoneroComponents + Window { property alias text: content.text property alias containsMouse: tipArea.containsMouse @@ -55,10 +57,10 @@ Window { anchors.top: parent.bottom anchors.left: parent.left anchors.leftMargin: 5 - source: "../images/tip.png" + source: "qrc:///images/tip.png" } - Text { + MoneroComponents.TextPlain { id: content anchors.horizontalCenter: parent.horizontalCenter y: 6 diff --git a/components/TitleBar.qml b/components/TitleBar.qml index be1ef37c..e48feae8 100644 --- a/components/TitleBar.qml +++ b/components/TitleBar.qml @@ -26,304 +26,320 @@ // 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.5 +import QtQuick 2.9 import QtQuick.Window 2.0 -import QtQuick.Layouts 1.1 +import QtGraphicalEffects 1.0 +import QtQuick.Layouts 1.2 + +import FontAwesome 1.0 +import "." as MoneroComponents +import "effects/" as MoneroEffects Rectangle { - id: titleBar - - height: { - if(!customDecorations || isMobile){ - return 0; - } - - if(small) return 38 * scaleRatio; - else return 50 * scaleRatio; - } - y: -height - z: 1 - - property string title + id: root property int mouseX: 0 - property bool containsMouse: false property bool basicButtonVisible: false property bool customDecorations: persistentSettings.customDecorations - property bool showWhatIsButton: true - property bool showMinimizeButton: false - property bool showMaximizeButton: false + property bool showMinimizeButton: true + property bool showMaximizeButton: true property bool showCloseButton: true - property bool showMoneroLogo: false - property bool small: false - property alias titleBarGradientImageOpacity: titleBarGradientImage.opacity - property bool orange: false - property string buttonHoverColor: "#262626" - property string buttonHoverColorOrange: "#44FFFFFF" + + height: { + if(!persistentSettings.customDecorations || isMobile) return 0; + return 50 * scaleRatio; + } + + z: 1 + color: "transparent" signal closeClicked signal maximizeClicked signal minimizeClicked + signal languageClicked signal goToBasicVersion(bool yes) - Item { - // Background gradient - width: parent.width - height: parent.height - z: parent.z + 1 - - Image { - id: titleBarGradientImage - visible: !titleBar.orange - anchors.fill: parent - height: titleBar.height - width: titleBar.width - source: "../images/titlebarGradient.jpg" + state: "default" + states: [ + State { + name: "default"; + PropertyChanges { target: btnSidebarCollapse; visible: true} + PropertyChanges { target: btnLanguageToggle; visible: true} + }, State { + // show only theme switcher and window controls + name: "essentials"; + PropertyChanges { target: btnSidebarCollapse; visible: false} + PropertyChanges { target: btnLanguageToggle; visible: false} } + ] - Rectangle { - visible: titleBar.orange - width: parent.width - height: parent.height - color: "#ff6600" - } - } - - Item { - id: titlebarlogo - width: 125 - height: parent.height - anchors.centerIn: parent - visible: customDecorations - z: parent.z + 1 - - Image { - visible: !isMobile && showMoneroLogo && !titleBar.orange - anchors.left: parent.left - anchors.top: parent.top - anchors.topMargin: 11 - width: 125 - height: 28 - source: "../images/titlebarLogo.png" - } - - Image { - visible: !isMobile && showMoneroLogo && titleBar.orange - anchors.left: parent.left - anchors.top: parent.top - anchors.topMargin: 11 - width: 132 - height: 22 - source: "../images/moneroLogo_white.png" - } - } - - Label { - id: titleLabel - visible: !showMoneroLogo && customDecorations && titleBar.title !== '' - anchors.centerIn: parent - fontSize: 18 - text: titleBar.title - z: parent.z + 1 + MoneroEffects.GradientBackground { + anchors.fill: parent + duration: 300 + fallBackColor: MoneroComponents.Style.middlePanelBackgroundColor + initialStartColor: MoneroComponents.Style.titleBarBackgroundGradientStart + initialStopColor: MoneroComponents.Style.titleBarBackgroundGradientStop + blackColorStart: MoneroComponents.Style._b_titleBarBackgroundGradientStart + blackColorStop: MoneroComponents.Style._b_titleBarBackgroundGradientStop + whiteColorStart: MoneroComponents.Style._w_titleBarBackgroundGradientStart + whiteColorStop: MoneroComponents.Style._w_titleBarBackgroundGradientStop + start: Qt.point(width, 0) + end: Qt.point(0, 0) } RowLayout { - anchors.left: parent.left - anchors.top: parent.top - width: 40 - height: parent.height - spacing: 0 z: parent.z + 2 + spacing: 0 + anchors.fill: parent + // collapse sidebar Rectangle { + id: btnSidebarCollapse + visible: root.basicButtonVisible + color: "transparent" + Layout.preferredWidth: parent.height Layout.preferredHeight: parent.height - Layout.preferredWidth: Layout.preferredHeight - id: goToBasicVersionButton - property bool containsMouse: titleBar.mouseX >= x && titleBar.mouseX <= x + width - property bool checked: false - color: "transparent" - height: titleBar.height - width: height - visible: !titleBar.orange && titleBar.basicButtonVisible - - Image { - width: 14 + MoneroEffects.ImageMask { + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter height: 14 - anchors.centerIn: parent - source: "../images/expand.png" + width: 14 + image: MoneroComponents.Style.titleBarExpandSource + color: MoneroComponents.Style.defaultFontColor + fontAwesomeFallbackIcon: FontAwesome.cube + fontAwesomeFallbackSize: 14 + fontAwesomeFallbackOpacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.9 + opacity: 0.75 } MouseArea { - id: basicMouseArea - hoverEnabled: true anchors.fill: parent + hoverEnabled: true cursorShape: Qt.PointingHandCursor - onEntered: { goToBasicVersionButton.color = titleBar.orange ? titleBar.buttonHoverColorOrange : titleBar.buttonHoverColor } - onExited: goToBasicVersionButton.color = "transparent"; - onClicked: { - releaseFocus() - parent.checked = !parent.checked - titleBar.goToBasicVersion(leftPanel.visible) - } + onEntered: parent.color = MoneroComponents.Style.titleBarButtonHoverColor + onExited: parent.color = "transparent" + onClicked: root.goToBasicVersion(leftPanel.visible) } } // language selection Rectangle { - Layout.preferredHeight: parent.height - Layout.preferredWidth: Layout.preferredHeight - visible: !titleBar.orange && persistentSettings.customDecorations - - id: languageSelection - property bool containsMouse: titleBar.mouseX >= x && titleBar.mouseX <= x + width - property bool checked: false - color: "transparent" - height: titleBar.height - width: height - z: parent.z + 2 - - Image { - width: 14 - height: 14 - anchors.centerIn: parent - source: "../images/langFlagGrey.png" - } - - MouseArea { - hoverEnabled: true - anchors.fill: parent - cursorShape: Qt.PointingHandCursor - onEntered: parent.color = "#262626"; - onExited: parent.color = "transparent"; - onClicked: { - releaseFocus(); - appWindow.toggleLanguageView(); - } - } - } - } - - Row { - id: row - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: parent.bottom - visible: parent.customDecorations - z: parent.z + 2 - - Rectangle { - id: minimizeButton - visible: showMinimizeButton - anchors.top: parent.top - anchors.bottom: parent.bottom - width: 42 + id: btnLanguageToggle color: "transparent" + Layout.preferredWidth: parent.height + Layout.preferredHeight: parent.height - Image { - anchors.centerIn: parent - source: "../images/minimize.png" + Text { + text: FontAwesome.globe + font.family: FontAwesome.fontFamily + font.pixelSize: 16 * scaleRatio + color: MoneroComponents.Style.defaultFontColor + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + opacity: 0.75 } MouseArea { - id: minimizeArea anchors.fill: parent hoverEnabled: true cursorShape: Qt.PointingHandCursor - onEntered: { - if(titleBar.orange){ - minimizeButton.color = titleBar.buttonHoverColorOrange; - } else { - minimizeButton.color = titleBar.buttonHoverColor; - } - } - onExited: minimizeButton.color = "transparent"; - onClicked: minimizeClicked(); + onEntered: parent.color = MoneroComponents.Style.titleBarButtonHoverColor + onExited: parent.color = "transparent" + onClicked: root.languageClicked() } } + // switch theme Rectangle { - id: maximizeButton - visible: showMaximizeButton - anchors.top: parent.top - anchors.bottom: parent.bottom - width: 42 - color: "transparent"; + color: "transparent" + Layout.preferredWidth: parent.height + Layout.preferredHeight: parent.height - Image { - anchors.centerIn: parent - height: 16 - width: 16 - source: appWindow.visibility === Window.FullScreen ? "../images/backToWindowIcon.png" : - "../images/fullscreen.png" + Text { + text: MoneroComponents.Style.blackTheme ? FontAwesome.lightbulbO : FontAwesome.moonO + font.family: FontAwesome.fontFamily + font.pixelSize: 16 * scaleRatio + color: MoneroComponents.Style.defaultFontColor + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + opacity: 0.75 } MouseArea { - id: maximizeArea anchors.fill: parent hoverEnabled: true cursorShape: Qt.PointingHandCursor - onEntered: { - if(titleBar.orange){ - maximizeButton.color = titleBar.buttonHoverColorOrange; - } else { - maximizeButton.color = titleBar.buttonHoverColor; - } + onEntered: parent.color = MoneroComponents.Style.titleBarButtonHoverColor + onExited: parent.color = "transparent" + onClicked: { + MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme; + persistentSettings.blackTheme = MoneroComponents.Style.blackTheme; } - onExited: maximizeButton.color = "transparent"; - onClicked: maximizeClicked(); } } - Rectangle { - id: closeButton - visible: showCloseButton - anchors.top: parent.top - anchors.bottom: parent.bottom - width: 42 - color: containsMouse ? "#E04343" : "#00000000" + Item { + // make dummy space when hiding buttons when titlebar + // state is 'essentials' in order for the + // monero logo to still be centered + Layout.preferredWidth: parent.height * 2 // amount of buttons we hide + Layout.preferredHeight: parent.height + visible: root.state == "essentials" + } + + // monero logo + Item { + Layout.fillWidth: true + Layout.preferredHeight: parent.height Image { - anchors.centerIn: parent - width: 16 - height: 16 - source: "../images/close.png" + id: imgLogo + width: 125 + height: 28 + + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + + source: MoneroComponents.Style.titleBarLogoSource + visible: { + if(!isOpenGL) return true; + if(!MoneroComponents.Style.blackTheme) return true; + return false; + } + } + + Colorize { + visible: isOpenGL && MoneroComponents.Style.blackTheme + anchors.fill: imgLogo + source: imgLogo + saturation: 0.0 + } + } + + // minimize + Rectangle { + color: "transparent" + visible: root.showMinimizeButton + Layout.preferredWidth: parent.height + Layout.preferredHeight: parent.height + + MoneroEffects.ImageMask { + anchors.bottom: parent.bottom + anchors.bottomMargin: 18 + anchors.horizontalCenter: parent.horizontalCenter + height: 3 + width: 15 + image: MoneroComponents.Style.titleBarMinimizeSource + color: MoneroComponents.Style.defaultFontColor + fontAwesomeFallbackIcon: FontAwesome.minus + fontAwesomeFallbackSize: 18 + fontAwesomeFallbackOpacity: MoneroComponents.Style.blackTheme ? 0.8 : 0.6 + opacity: 0.75 } MouseArea { anchors.fill: parent - onClicked: closeClicked(); hoverEnabled: true cursorShape: Qt.PointingHandCursor - onEntered: { - if(titleBar.orange){ - closeButton.color = titleBar.buttonHoverColorOrange; - } else { - closeButton.color = titleBar.buttonHoverColor; - } - } - onExited: closeButton.color = "transparent"; + onEntered: parent.color = MoneroComponents.Style.titleBarButtonHoverColor + onExited: parent.color = "transparent" + onClicked: root.minimizeClicked(); + } + } + + // maximize + Rectangle { + id: test + visible: root.showMaximizeButton + color: "transparent" + Layout.preferredWidth: parent.height + Layout.preferredHeight: parent.height + + Image { + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + source: MoneroComponents.Style.titleBarFullscreenSource + sourceSize.width: 16 + sourceSize.height: 16 + smooth: true + mipmap: true + opacity: 0.75 + rotation: appWindow.visibility === Window.FullScreen ? 180 : 0 + } + + MouseArea { + id: buttonArea + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onEntered: parent.color = MoneroComponents.Style.titleBarButtonHoverColor + onExited: parent.color = "transparent" + onClicked: root.maximizeClicked(); + } + } + + // close + Rectangle { + visible: root.showCloseButton + color: "transparent" + Layout.preferredWidth: parent.height + Layout.preferredHeight: parent.height + + MoneroEffects.ImageMask { + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + height: 16 + width: 16 + image: MoneroComponents.Style.titleBarCloseSource + color: MoneroComponents.Style.defaultFontColor + fontAwesomeFallbackIcon: FontAwesome.timesRectangle + fontAwesomeFallbackSize: 18 + fontAwesomeFallbackOpacity: MoneroComponents.Style.blackTheme ? 0.8 : 0.6 + opacity: 0.75 + } + + MouseArea { + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onEntered: parent.color = MoneroComponents.Style.titleBarButtonHoverColor + onExited: parent.color = "transparent" + onClicked: root.closeClicked(); } } } - // window borders Rectangle { - visible: !titleBar.orange + z: parent.z + 3 anchors.bottom: parent.bottom - anchors.right: parent.right anchors.left: parent.left - height: 1 - color: "#2F2F2F" - z: parent.z + 1 + anchors.right: parent.right + height: MoneroComponents.Style.blackTheme ? 1 : 1 + color: MoneroComponents.Style.titleBarBackgroundBorderColor + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_titleBarBackgroundBorderColor + whiteColor: MoneroComponents.Style._w_titleBarBackgroundBorderColor + } } - Rectangle { - visible: titleBar.small && !titleBar.orange - anchors.top: parent.top - anchors.right: parent.right - anchors.left: parent.left - height: 1 - color: "#2F2F2F" - z: parent.z + 1 + MouseArea { + enabled: persistentSettings.customDecorations + property var previousPosition + anchors.fill: parent + propagateComposedEvents: true + onPressed: previousPosition = globalCursor.getPosition() + onPositionChanged: { + if (pressedButtons == Qt.LeftButton) { + var pos = globalCursor.getPosition() + var dx = pos.x - previousPosition.x + var dy = pos.y - previousPosition.y + + appWindow.x += dx + appWindow.y += dy + previousPosition = pos + } + } } } diff --git a/components/WarningBox.qml b/components/WarningBox.qml index bc85975c..9c7a1a91 100644 --- a/components/WarningBox.qml +++ b/components/WarningBox.qml @@ -1,4 +1,4 @@ -import QtQuick 2.7 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 @@ -13,7 +13,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: warningLayout.height - color: "#09FFFFFF" + color: MoneroComponents.Style.titleBarButtonHoverColor radius: 4 border.color: MoneroComponents.Style.inputBorderColorInActive border.width: 1 @@ -34,7 +34,7 @@ Rectangle { Layout.leftMargin: 18 * scaleRatio Layout.topMargin: 12 * scaleRatio Layout.bottomMargin: 12 * scaleRatio - source: "../images/warning.png" + source: "qrc:///images/warning.png" } TextArea { @@ -55,8 +55,8 @@ Rectangle { readOnly: true onLinkActivated: root.linkActivated(); - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor } } } diff --git a/components/effects/ColorTransition.qml b/components/effects/ColorTransition.qml new file mode 100644 index 00000000..b73af906 --- /dev/null +++ b/components/effects/ColorTransition.qml @@ -0,0 +1,58 @@ +// Copyright (c) 2014-2019, The Monero Project +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are +// permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of +// conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright notice, this list +// of conditions and the following disclaimer in the documentation and/or other +// materials provided with the distribution. +// +// 3. Neither the name of the copyright holder nor the names of its contributors may be +// used to endorse or promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +// 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.9 +import QtGraphicalEffects 1.0 + +import "../" as MoneroComponents + +Item { + id: root + property var targetObj + property string blackColor: "" + property string whiteColor: "" + property int duration: 300 + property bool themeTransition: true + + states: [ + State { + name: "black"; + when: MoneroComponents.Style.blackTheme && root.themeTransition + PropertyChanges { target: root.targetObj; color: root.blackColor} + }, State { + name: "white"; + when: !MoneroComponents.Style.blackTheme && root.themeTransition + PropertyChanges { target: root.targetObj; color: root.whiteColor} + } + ] + + transitions: Transition { + enabled: appWindow.themeTransition + ColorAnimation { properties: "color"; easing.type: Easing.InOutQuad; duration: root.duration } + } +} diff --git a/components/effects/GradientBackground.qml b/components/effects/GradientBackground.qml new file mode 100644 index 00000000..bb106896 --- /dev/null +++ b/components/effects/GradientBackground.qml @@ -0,0 +1,107 @@ +// Copyright (c) 2014-2019, The Monero Project +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are +// permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of +// conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright notice, this list +// of conditions and the following disclaimer in the documentation and/or other +// materials provided with the distribution. +// +// 3. Neither the name of the copyright holder nor the names of its contributors may be +// used to endorse or promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +// 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.9 +import QtGraphicalEffects 1.0 + +import "../" as MoneroComponents + +Item { + id: root + property string fallBackColor: "" + property string blackColorStart: "" + property string blackColorStop: "" + property string whiteColorStart: "" + property string whiteColorStop: "" + property string initialStartColor: "" + property string initialStopColor: "" + property double posStart: 0.1 + property double posStop: 1.0 + property int duration: 300 + property variant start + property variant end + anchors.fill: parent + + // background software renderer + Rectangle { + visible: !isOpenGL + anchors.fill: parent + color: root.fallBackColor + } + + // background opengl + LinearGradient { + visible: isOpenGL + anchors.fill: parent + start: root.start + end: root.end + gradient: Gradient { + GradientStop { + id: gradientStart + position: root.posStart + color: root.initialStartColor + } + GradientStop { + id: gradientStop + position: root.posStop + color: root.initialStopColor + } + } + + states: [ + State { + name: "black"; + when: isOpenGL && MoneroComponents.Style.blackTheme + PropertyChanges { + target: gradientStart + color: root.blackColorStart + } + PropertyChanges { + target: gradientStop + color: root.blackColorStop + } + }, State { + name: "white"; + when: isOpenGL && !MoneroComponents.Style.blackTheme + PropertyChanges { + target: gradientStart + color: root.whiteColorStart + } + PropertyChanges { + target: gradientStop + color: root.whiteColorStop + } + } + ] + + transitions: Transition { + enabled: appWindow.themeTransition + ColorAnimation { properties: "color"; easing.type: Easing.InOutQuad; duration: root.duration } + } + } +} diff --git a/components/effects/ImageMask.qml b/components/effects/ImageMask.qml new file mode 100644 index 00000000..df24f738 --- /dev/null +++ b/components/effects/ImageMask.qml @@ -0,0 +1,84 @@ +// Copyright (c) 2014-2019, The Monero Project +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are +// permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of +// conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright notice, this list +// of conditions and the following disclaimer in the documentation and/or other +// materials provided with the distribution. +// +// 3. Neither the name of the copyright holder nor the names of its contributors may be +// used to endorse or promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +// 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.9 +import QtGraphicalEffects 1.0 + +import "../" as MoneroComponents +import FontAwesome 1.0 + +Item { + // Use this component to color+opacity change images with transparency (svg/png) + // Does not work in low graphics mode, use fontAwesome fallback option. + + id: root + property string image: "" + property string color: "" + property bool fontAwesomeFallbackEnabled: true + property var fontAwesomeFallbackIcon: "" + property int fontAwesomeFallbackSize: 16 + property double fontAwesomeFallbackOpacity: 0.8 + property string fontAwesomeFallbackColor: MoneroComponents.Style.defaultFontColor + + property alias fontAwesomeFallback: fontAwesomeFallback + property alias svgMask: svgMask + property alias imgMockColor: imgMockColor + + width: 0 + height: 0 + + Image { + id: svgMask + source: root.image + sourceSize.width: root.width + sourceSize.height: root.height + smooth: true + mipmap: true + visible: false + } + + ColorOverlay { + id: imgMockColor + anchors.fill: root + source: svgMask + color: root.color + visible: isOpenGL + } + + Text { + id: fontAwesomeFallback + visible: !isOpenGL && root.fontAwesomeFallback + text: !isOpenGL ? root.fontAwesomeFallbackIcon : "" + font.family: FontAwesome.fontFamily + font.pixelSize: root.fontAwesomeFallbackSize + color: root.fontAwesomeFallbackColor + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + opacity: root.fontAwesomeFallbackOpacity + } +} diff --git a/fonts/FontAwesome/FontAwesome.qml b/fonts/FontAwesome/FontAwesome.qml index 6d978cf6..136f8a6d 100644 --- a/fonts/FontAwesome/FontAwesome.qml +++ b/fonts/FontAwesome/FontAwesome.qml @@ -1,5 +1,5 @@ pragma Singleton -import QtQuick 2.0 +import QtQuick 2.9 Object { diff --git a/fonts/FontAwesome/Object.qml b/fonts/FontAwesome/Object.qml index 3e2c6cf2..8e4738d5 100644 --- a/fonts/FontAwesome/Object.qml +++ b/fonts/FontAwesome/Object.qml @@ -1,4 +1,4 @@ -import QtQuick 2.0 +import QtQuick 2.9 QtObject { id: object diff --git a/images/arrow-right-in-circle-outline-medium-white.svg b/images/arrow-right-in-circle-outline-medium-white.svg new file mode 100644 index 00000000..256b2ddd --- /dev/null +++ b/images/arrow-right-in-circle-outline-medium-white.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/images/check-white.svg b/images/check-white.svg new file mode 100644 index 00000000..179be07c --- /dev/null +++ b/images/check-white.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/clipboard.png b/images/clipboard.png deleted file mode 100755 index 8ab3d8de35fbce86775b2917d67db96098388599..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 326 zcmV-M0lEH(P)Px$07*naR5%gsl(7xMFc3u(icrwevH%ql4IMNTh!GfpHIUMU73diNMqvby5DO%Y zdFSLJ$2L+VDkM(&zVrS69oveWB#|)2T!0^!h%`x1<)Boxh_v>z$B8FT8A^yuNQsmX zV?FDR5w02_v1TD98q2k7wKIE!TGi^Z_G^wg;tgB6OWDC!@k0x6<~=wC=atKl2neSE zJqJ%P(KfY>_NQ@(k=Bw?4Z#iUy#B`p4lq*{Qy;-u=bEjXA-01BecA3BtiTZl-S|xJP)00001b5ch_0Itp) z=>Px%FiAu~R9Fe^SUpPvK@d#>Nn|xVb9y0Jue917A7-0``(*jlKUW~l5+KWy(X*!^DV+O zm9lymL^Z`ta~-uZ7&TZ6)-`PDjgZV~Vh@jMQO#P3gH%nA&|i72G8DQfGGhwazKlgV zs$`$J_DWtv4LF6BLWy3qyo${vqFmzqUc|mI#!4-UZDOJU8zAn`nS_!^|i6Q;zT8>#~R|W=`zX4R8}4M8054 zu7dU%k>m<$fSag5U=K#cckKecy(~^~=9f}%>v(~E^%b + + + + diff --git a/images/close@2x.png b/images/close@2x.png deleted file mode 100755 index ad41e91ada5220c7aa25cf25db7e38670b16ab2b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 404 zcmV;F0c-w=P)Px$PDw;TR9FekSJ4rJAPmKh&?)@z!yO#kbB8X{UN^8W6i%7~CV;iMqc$da?-5WB zv#x88F}pFCgAF`Gz}Fk+;9~8L-|;97gpENQ-sTGA-+?XXb zAEeyT0BUkMPu7c^DigO-rLXDpW4osqrC`_j2L|8mM9l%vVIZ*NluX%4X`FxB&Gzg zq$Vn+2B@aiim3(wN-;)pVWf|0EOkMIl;09#iW515z~9A2!np?%2%v*$XzgF6=oAQI yZ_}@{;RCr-*L62RcU374b3zeuYzAeg9?xH2({aw_d3e(R0000 + + + + + diff --git a/images/copyToClipboard.png b/images/copyToClipboard.png deleted file mode 100644 index 69774fb093b6c1bebfbaf66516a7f79f84e34f7b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 454 zcmeAS@N?(olHy`uVBq!ia0vp^d_XM3!VDy57JXs@QY`6?zK#qG8~eHcB(ehe3dtTp zz6=aiY77hwEes65fI?NMQuI!IkIRyDx3#6uP1PVEMx;Tb#Tu)9&NDxSAU=Zhc_~_B02Td-{u96Qn=_N?2 z-11~~(r(C57gblAutQjQ0=H0jLemQ7RYeEa$-B&M&`f7oTqjW|zxzub&@{0U*N775 zqSVBa%=|oskj&gv1_KLyBSU>dlaCe|Q9u={AQdTzC8<`)AZ4ixMh1o!x(24Y21X%9 z2396!Rwf4821Zr}1{}XG@S|wR%}>cptHiCLa(TvPpavO`4Z-H(@_@O1TaS?83{1OPQ?gUA2? diff --git a/images/dropdownCopy.png b/images/dropdownCopy.png deleted file mode 100644 index 134fb0d5ff0e18e6ccb0fad4c796b97be7382c3b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 444 zcmV;t0YmPx$c1c7*R5%fxlCe(1Fc5})PC<-p1ty+=CtzV>O7^l4c6f#g2_z5;5=<<>P>>J; zCw>7&Bo<&|D+59>M07%c5}W^mTqO-nrFw|(?*Bjg9Ge725Cn5l%1MMhV@yj}dtj~g zSR4LhmT8yT}yu8_dl=5s@2MfDKzN zA2!Qj!l?S#V5QZ;ox(7jN|NLR^?e-U*6Aa61k{GPTZ9-c?TCla#6^EArFtwPU&5U( z&I+;2d2y6LhO#WPx%?@2^KR9Fe^SI=t`Q4r4C-IUZ?3+7ULso=p=(KL!6g4K%(yW2zv;z5j6q}m>( zSN#LL6)F~mt%Zn0Vv;S2C%t*7RncP+ss}6BRH{@O*&lvW`obpeZZ;+rlqczGa~RkE$ql06S;fcAFcVG4>Ps>7uS*aP6Q)3i0|w4xj=EiDxR=nff%6GwBz5V}mu zs@1#7ge8M%7|)yl6T)(-vEOH|@e@YNV zjmtDzmbK!P{pK7iO42covrID$j`JiFm&6V0BV!9xC{7&}0jl&aboHwgSn_qoK+z3= zsS>i9u%fP>Y?OQ5lCSo1muL_F>a#`I@^t^(Da8@EqA1F7zqGV$g@dwu22Fl~+4j(; z6JljOXz$dMR|QGB?nfBt;QIwwx7jvzqMZU`!{{>a{qRkvRF&mn^vIJT#-0>({k9(& z*_tB6hjtITygzZL?K+j{_J%NluD&U%P{W2)`7Ran#<)D-Eg%!&lMtI z7Ybn#oqjf6%)_=Y+S3W=_mQ-4CleFCqLJ2X3P5jLB_-~9jo zlrlw@(LgHC2b{5miqwjUZSO{yULHz9iz=aeL^l+@Xv!5M2eoP>F4{w_RRIIU(WL%( zeC*BK+zYgj1Ni@r1aN8?f<0TqKjF*$@%W=(qHz8xNsETl00000NkvXXu0mjfs%wLa diff --git a/images/edit.svg b/images/edit.svg new file mode 100644 index 00000000..43d36a47 --- /dev/null +++ b/images/edit.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/editIcon.png b/images/editIcon.png deleted file mode 100644 index 6dfca388c278782a030c75ca9dc9771188aa84be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 612 zcmV-q0-ODbP)Px%9!W$&R5%f}l+SAuK@`VlCX)p(0U;j!0|awOx70&X1b;v=n{1FAJa}m>sMsDv z5D|41>OopOhp)Cs*2*Q(rj2(e77Ad8EXcLgLN{DGn=_&N>^hM8Gv_Qo|;aL(W zY_(=E_87j{^Slz0uX4wk?BTUR%`a3sy=j36rI(UG&}Ovmd)|Z~4e=0N>#v<}D#^dtaaHkZq-bi3WBijcKt6g@I| zdbgekqnt8Mh6$C+<>S5W?K$-B%1A!{_4CrwJes>XGCF!669aE|Ss;x6<*w^rb1%a_ zhU0J?$F~67a$Was5Cj7sCdD|{^!L^ez+K;APx(3Q0skR9Fe^m`!X{RTRhHeKgPjkr+#mL=ub%s4-M&*oYsA2}UWeoi?eBtxY;g zAR%c80fn%Ts*46N#)U>P#tLeb4V}I>N~EI1k!=#(-*TYkMv%7Kg#TiA&W9e~6t+%5~$u?_Z2! z(=CH(t|J)nF9&Nb+m`u)n~SC}vsf*%?FNuk!W1Nvm2oWyy&XFwWYQwr6Nc`ocFzHl zkX3CR9UYHU6<8KWMn=*WQKV%np#03twMdrkB44W6zkfoel&VVzspu8`g<~8l#s#hMSYov zp-`UT?tOx_mF7BY2Rc1(v#ePeGB-pW!*0pAxeqWK3i!`d^ zFEYMh1q6*7O@s4|q5Myqj^}xgQ?(PwS2;?xjt0R5_WuH0z}hm|2ctKnw*rF3KSUuy ztNNHAXVzhB0*|X`nN7LhJYR^gMhs zlNsX){50=OJ7Mb^Ewch5F`v{*QG0Qi#UcBi0?gZi@BgH2^!D~Xl*wd%W&SK+_LyKq zr|uyWhuLga95$0wdx9YNRvbx#wUycF>9bVV7J%*p%onqg|9HOE#!l2&%G4qpN6M}QeJ zWmA)rXP9pzghPP&P|K?IHHU0)aIk?;oCeJ6gyLh0;eG9>B6FPWu=a_cOdi%UTW@8E zlm2eo#QJ5C;m}Q`Qr`n6hQrTc=3Tu9)|OmIrG7AE`?YMY-U^75zA)EDkpX5q4!Z$! zikuqY5Tz|;pu@=CfVHnp*?cx@3K;-iD>(?m_3?PT^h_eD70i4Em_ERK*V59m8$JCM zG9RAW?n5O0t9ZB#h?l6a5veAs^E2k}0OoXKV`Ch)iu0l{6cpc3vSF5MLr`rTVFn>PuYhULRO+oPPm= WcZ|*94~;(n0000Ghzry3ApIDcw`>kr0Sw8`2w`z%NL`h0wNvc(H zQ7VvPFfuT-&^0jCH82V>GO#i+vobNzHZZa>FyQ!gfgeRfZhlH;S|x4`mCG|W12r&s My85}Sb4q9e0E;_r0ssI2 diff --git a/images/expand@2x.png b/images/expand@2x.png deleted file mode 100755 index 70e3ba416fe5ebb494a57c77bc829ff67577c859..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 347 zcmV-h0i^zkP)Px$6-h)vR9Fe^mrV-7Fc5_k(QCMJ(X+U7A>!VXxzmNNdKZx%L=cScl?Kw-rZF_L z%D|W(r<2b&L#Wyqvr|f);It>)w6p1t7edZj>&J9xAOZk2Jk^>&>Zq?4QBfI#mdH)n zx8522Wi|Zc?Yqmi1nx%4oB%^L-(Y_YKcL3%l*F;m_$6>_%I3VFIaaaBQsR67%6@ke zWry$qSo4DiW0UliV{T$tAHI#PZTAr0(K1a1pk-F*a*Zi t>V;$u#F6(2rRPZgPYx(S+4tQu*Dr;97unB`!hQe%002ovPDHLkV1kz+nbQCO diff --git a/images/fullscreen.png b/images/fullscreen.png deleted file mode 100644 index 0b989cec9f25d99bdde7e8c1d137ad6eba91d1a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 335 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mSkfJR9T^xl_H+M9WCijSl0AZa z85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+ueoXe|!I#{Xiaj ziKnkC`y*BkL4MW(sc9R5LgAh+jv*T7lmFa5mvFE_eon%l{qq|Y5|q}oc)05D@bK76 z)IA71c<{i%LkA8N%-G1geb)a_o^@A>FRxH~Bx3mQ{=pCP9vaDs?&4|c`F~haNb<%< zjbA4XGO#i+vobNz oHZZa>FyQ!gfgeRfZhlH;S|x4`mCG|W12r&sy85}Sb4q9e01>Te-~a#s diff --git a/images/fullscreen.svg b/images/fullscreen.svg new file mode 100644 index 00000000..25280d24 --- /dev/null +++ b/images/fullscreen.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/fullscreen@2x.png b/images/fullscreen@2x.png deleted file mode 100755 index 7d11b4717aa4a5e6a171af1b9bfc54384f18206a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 291 zcmV+;0o?wHP)Px#-AP12R9Fe^n869cKoCW<5;q3VcE;SXm$=W zFfhAA@*jUEhiuaz%xpx?$OXA|P?OptS<tJOI)$utrAO_7a4*q0M_T_6nJfSR002ovPDHLkV1mMab1MJ< diff --git a/images/middlePanelShadow.png b/images/middlePanelShadow.png new file mode 100644 index 0000000000000000000000000000000000000000..db89a0d554dcf6bebe036ee46dab0e1676281101 GIT binary patch literal 98 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CI!3HE>z4o^RQk(@Ik;M!Q+(IDCcz20;HH2ZhYck3TldH1j;jby85}Sb4q9e0In<+ga7~l literal 0 HcmV?d00001 diff --git a/images/minimize.png b/images/minimize.png deleted file mode 100644 index 4347c558dd657339066d516b644e33182ff30d3b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 293 zcmeAS@N?(olHy`uVBq!ia0vp^LO{&I!2%>TJ(fp-IO&eQjtmSN`?>!lvI6-E$sR$z z3=CCj3=9n|3=F@3LJcn%7)lKo7+xhXFj&oCU=S~uvn$XBD8ZEE?e4RdP`(kYX@0FtpG$Fx53M3NbRU uGBL9_;rCFMMG|WN@iLmZVi>oGd2S?FnGH9xvX + + diff --git a/images/minimize@2x.png b/images/minimize@2x.png deleted file mode 100755 index 6a98596f038c086c078c408a6c71ee848bdca747..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 183 zcmeAS@N?(olHy`uVBq!ia0vp^DnQJ^!3HEJ=EYtGQjEnx?oJHr&dIz4atb|N978Mw z&rUkXc|bwL`ETEa=!3HVY+?hh7qq?$_;O7&hsn0$!yOX=j*lM>9T!+&=+=fQec zwVR#MZ+O)|9dlYCo%4J_PXR~!nHPr~dC%HyKXhlYz&@AafY^N*r+)4Bmp%LDkfDrT hfw)YY&!)N2a-LV`N4|+{2nJft;OXk;vd$@?2>^enM}+_Y diff --git a/images/rename.png b/images/rename.png deleted file mode 100755 index 25a9bf64c7edd7eafba5b14c5a5b2044fbd6cb4c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 517 zcmV+g0{Z=lP)Sg700001b5ch_0Itp) z=>Px$zez+vR5%f>l{-iSK@f&>LA12B5wy|9CI~8Mz#s$!u@DQv#z&(dh^<;F>1?$W z3kxe78?n{SN(2!>0t(vrPL&{>-yE5+w|jR<)Pawg`Db=+vKNw+@B0NPL$fAl3aJG1 zXed)}P3TD~RXopYi*3+#V;f=$jhsuzoc$NM#h$`O3$|wFT*JPZC&hB-zBF*i6R)|% zQD*mP9@Xn?PE*61*#lWDi?#w!uoY}tZ(DnaPoy$xmUK+7Wpd@g>|in^&J2>o`<1nlkVTb1D+A!V3&Vz0lBR zddT)1?n66+4K_ZII@%I$6LM(R&gRlo&lu7J&#cq3~4g;zM9w9IlH8;Ic>qIZYwxLavf55P6HIEpW3M98SQbX&2JJ>OLC&}e2m{Tp} zDFhZ0BNCc+;ap3^;~<0csyUuwU{1jjXnKHen1L~n!4p5-QxgT>z9 z3#P)8+)RGYPx(21!IgR9Fe^nN3I)Q547D>%%gm=tJlWj0zMA+!RqsLf;=0t#T7awP+L7CWID7 zi%MxDxoHzfA5hTBA~TSn3|d4beLzG}VM-Zcl4NAQerLS%ymP(tX5NgNg$Mp~&OPUU z&OPtGduQfpB9%(zfGW@iMoMHZnKLI5RaAkIYS^5oDr(8c}etH7?# zv`RrS4pK!BhdHLfX#~=&+%-0n*Md%2O`ldvz|Mqn*2y_P*vsD zx7Cg58vh>fTk)=-ou_@^9;Zm)9@QrbV>7wTdkt&>y`YS}+<^87yxlnJfHZp@l*8*o zJEvBCn11Crhw;KJxG#uH!Q;UsydU$XA!(A4W=-KNGF#z&OzINTaNE;bx_eZ2{$fQMi^yl%8z zNbrcs@&q#s%sh8YN~M-|()H___;S#xc#qK2^|;km#J=n!s%E8mwnecc8m5+&S1^xi-<&kV8 S0dCO%0000(i2wz diff --git a/images/right.png b/images/right.png deleted file mode 100644 index b20a03b61e5641cf5e2e030f617ee25c8acb8893..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 289 zcmeAS@N?(olHy`uVBq!ia0vp^96-#+!2%?A#7~t4QY`6?zK#qG8~eHcB(ehe3dtTp zz6=aiY77hwEes65fI&ZXf|G3}JDEa66@Bgpsc~%AROl|!$L!yAu zM0ZKy#kqa&EE$%2T2z$pl@$SMQY~?fC`m~yNwrEYN(E93Mh1o!x(24Y21X%92396! rRwf4821Zr}1{}XG@S|wR%}>cptHiCLa(TvPpaup{S3j3^P6 + + diff --git a/images/right@2x.png b/images/right@2x.png deleted file mode 100755 index 50bbae73dacd6f1a35aadc34fc407c4820dddb95..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 169 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRo!3HEV4DF?W6k~CayA#8@b22Z1oMcZI#}Es_ zzopr0Oh7PMF0Q* diff --git a/images/settings_local.png b/images/settings_local.png deleted file mode 100644 index 6d25a9e34288905b90fb34f45dc7c1d5699fe286..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 651 zcmV;60(AX}P)Px%MM*?KR7efAmc1_oK^TXv6I>)DD0~%i6cVA+ah;M#6bjM%8#FpZr6&@Vl4z6& z5)u+0jfPWPP#_@@-#O23jEQx($KBaCc``dQ@B4dqcHfy@uP8@LrBWq?Ov4jgz!7YF zp7&0h)f8BSzz|Jc2G2u8)-#NkG1d-!&<1yCEYVKle?}W@IIhCMHx9Xegt_3T&l!BG zVFWhe8D=2*Tb!B4u@)5g0P}wevQGH-Ljv}o>1S;5_W>N5>F+{0tic2P*?5F2ICp{K zc77&w$(YdlTZD6ng9;#LBjGhcy>JT4=(LBW>PB{0qT@Py>@bA+oo^ zJE*#halHUjU;TVq;`I(yG%*)1QP_6_T+puom3TphhKlX8s<|kED;Ovx0ya3MXb8}rFAs4r{+YJC%VcBEtVX3`{>h=RVb8&I0&ki&rDt&a5E z_sl23L=z;fV_qvHRx8pCODFBuAX7r!Q37&$hw`^^if{A@2X%1NBh@=p(WshKz8UwS z#_hcPvi@CpK?yZZu&QVb2A~Rbdh5h7XC19h2J_!Yy9^VY@`3-2S(6cLjHKF--OvF_ lV9q*PB|e5NlKlEd`~e&6&s?xHmE!;a002ovPDHLkV1jzK9IyZY diff --git a/images/settings_local.svg b/images/settings_local.svg new file mode 100644 index 00000000..2159cd2a --- /dev/null +++ b/images/settings_local.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/settings_local@2x.png b/images/settings_local@2x.png deleted file mode 100755 index 8679878a39bd0a4c1a54dec9555bfd6e689e6745..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1389 zcmV-z1(N!SP)Px)CrLy>RA>d=noWxxMHGg;lf+F(Of*7ZBq+fcM2)CRiJFA06pSt+=*Cr+0}jDO z2$L)XC8&%10l|$M!5<(Ivebp6M2H^=6JZo|G2@I;&?MLA>D0NYJNNr*dfFG>Th&$7 z=e*~3_pRzvw|3V$p?p?(E^3%`ID z2=qtF>cGI@pRgC^888cXjT&9!iec;w#@>Ka0~kHRw|upq@!0oPd>U?pJK@7{KRgI` zz#QJL=imp}zn*stRLAKQ`~wb(M+S1#W-t!7z{Bu7{2Au>m4g#-bDLAUHsx3BMMk~~ zyIrw+=syDES=rAw`aQ>E13?_d*t_tV%;dr399I??y)i z=WRLIGsg)}!M~yS9X_aGLA|uVl7FvU+?M{JxJ>H}25yGmK=ChpK0k}&QUg;98hqyB z2jvp=-t!!T-iCowc~Hq{>47C3b0L!Q#9EzA#|)T;f29-rCbl#U;DEM`5|~p#%yX_# zV$rZxav}PC1_YjM9Z`&VJPlZ;>};&v$zyKAzms_2bX)WE?u4sp)aPvnrAEd)1|R4) zW)l2CGGP~!fD)-IxNmM zbyna2&A##ke9vpVqP&#p|1_&trTSSW^iZQts2`WsDgGE6|O?WCrXc($|qAC zUsouehE!faZ*XuiH9TQyO2A3@(bQPUz>@aMsoYCUo4jK8!dPJ}q|Pc9k-EDZ@zVyD zXNZ=o7*W!^lxg4oe+tZ$U0|Dm$-u3sRJ}B)rbsIskcrs9s)4yd5HLeqRpi=N3~Uj) zK_H6d$n9$7K0~{)EKV`Gxs~IthcK63RfP5{#uPssZsmxBOm4mN2e-#=n9roy%?(k+ z5`notC7jcqD{9sHP;<=3MJy56g)EMjvwBskx#m2UBA4N&n{el`Qc!cDyk4IV;c>-0 z{x~)I(&<)CC6Ki4Nn#_0JK7m=KQtjCOprA8&hCubST!{!trQ)SIZCGUv?CIZZ>%s{ z)u6L?`Yi>vmBA(-g~`ZxooTgNa*NuMMv6jn_Z%mK-1800m8`#`djy^dk(Aw2+*)Cf z`2*A2!o>fvj@C=+P*c)IQE2UNQNiGSFp?u~*&HY-h8DMKfoc-{ZzF{zPC5$RToVg$ zcl4E2sv&8iD6|c>@fX55c}5Ef23OjZ(>GK@U?y}9RbnO2vU&@w`!lCc7`GqQ`e>W$ z@l9aJD;Kw=KPYo>;!}Y>k}rJzpBB&@a=riZT8gQO-f*kt_MVraCJ_7n4?wN`p zI+Ymq*YZ+$N~O!Mv8^q&1!K=ExhQ=0w~5|Ke6MyqInOzX#|kB!yTbN)R9JuW3eFsx z&hgw>rBf}S4}JA*FZ2(68{y0)%v6Y@-+Xt# z9F9E)NBdh}ZgJ2$0q%mcFy7~=4vq2u5p&Rh+Kne1ufiet0(947FEp3l4io+B?9jJj vJEd#e2y_!|{#9u^jN8@Q%v|O~|Lpu9vlaiN?H9ep00000NkvXXu0mjf&4!?7 diff --git a/images/settings_navbar_side.png b/images/settings_navbar_side.png deleted file mode 100755 index b57695fb9bb99236cc505bf2de8f73b55d9bf5bf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15465 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 I!lgI=0){iN82|tP diff --git a/images/settings_remote.png b/images/settings_remote.png deleted file mode 100644 index ed7087de8d7a94ae042d8a60288815d9b4392fd8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 440 zcmV;p0Z0CcP)Px$a!Eu%R7efomb*&CKoo{2UeLl)u+QANV)?A50e0 zr8$&UY$k%L)xGi^Wpgb9+-f7p$A+4_Bgl&Szy-V7MGyXCqM=$81;?P i5jZZ`Y~s>wjsF0GLxK@nC~7$X0000 + + + + + + diff --git a/images/settings_remote@2x.png b/images/settings_remote@2x.png deleted file mode 100755 index 462af75f76110af1fb25e4441b6ce3f91d5d22e1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 778 zcmV+l1NHogP)Px%#7RU!RA>e5non!gKp4h1RzVSzib7FA6v2ak5PR@Y^wO%}&6}UWi=V|WAYS|m z3W|!W9ux{Hco7j1K@oMKR!UV|e-F$+GTUa7nb~9)^1{PpllOh+w@+u2Y&Y3(ILvyz z-YjY=R~KMWUL+nMm7XLmSBR@W|CiwpUw6M#v^qmY-35t;q&MdI)wT_ zA7iW*BscBws>qo4FnW&^U(kt4#3Z%?Y@iP^|68Q^hR%4QNooz)K+nPO1}O&UY$-Ge ztpXe9eQ>-)iWPKjQ)mvh4s4)jVR?ZRI+HAI2+e_s05;IO;CYG^Yv}R_G&?5-*g)@u z=^;|Aqbmhyc1#qof!+bvU8MMfu3Bi_{4^cg0JvUZ();8bKqt{{YPNG3zoip+(+)Fb zQ2e86casjU;M5&dH)bffgml9+)0o3`DQ!Nk7FIwTH$RpoXzYN4Y^zb!In0M-uTDQT zOskce)M3Fg`vY`uY|u0=oHlB`-CVL@(JN%*IUCVV)1$~YvLgpkb(0=>SY44MMKm-$ z(gM>k536qsHh!9oC}?`51EyIX_6M&o8b}R`C>oj`X@F_u!p^f#-_LC5zIFjcK~oFUi + + + + + diff --git a/images/themes/white/Monero-Logo.svg b/images/themes/white/Monero-Logo.svg new file mode 100644 index 00000000..ad4d4154 --- /dev/null +++ b/images/themes/white/Monero-Logo.svg @@ -0,0 +1,65 @@ + + + + diff --git a/images/themes/white/close.svg b/images/themes/white/close.svg new file mode 100644 index 00000000..a888809d --- /dev/null +++ b/images/themes/white/close.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/themes/white/expand.svg b/images/themes/white/expand.svg new file mode 100644 index 00000000..065fbbe4 --- /dev/null +++ b/images/themes/white/expand.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/themes/white/fullscreen.svg b/images/themes/white/fullscreen.svg new file mode 100644 index 00000000..d732d086 --- /dev/null +++ b/images/themes/white/fullscreen.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/themes/white/leftPanelBg.jpg b/images/themes/white/leftPanelBg.jpg new file mode 100755 index 0000000000000000000000000000000000000000..d3fc1ee56ea259f807cc5e2a2f64179aea2c3226 GIT binary patch literal 5068 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 L7vQJ4mWKZWp4<3S literal 0 HcmV?d00001 diff --git a/images/themes/white/middlePanelBg.jpg b/images/themes/white/middlePanelBg.jpg new file mode 100755 index 0000000000000000000000000000000000000000..a0cfebcab11a618612b225267cf6b7b0df8e3909 GIT binary patch literal 4222 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 + + diff --git a/images/themes/white/question.svg b/images/themes/white/question.svg new file mode 100644 index 00000000..fce612d6 --- /dev/null +++ b/images/themes/white/question.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/images/themes/white/titlebarLogo.png b/images/themes/white/titlebarLogo.png new file mode 100644 index 0000000000000000000000000000000000000000..af86b71663c434d3d64dcdfe5b52702007bffad0 GIT binary patch literal 2554 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 JPDHLkV1nz--3b5y literal 0 HcmV?d00001 diff --git a/images/titlebarGradient.jpg b/images/titlebarGradient.jpg deleted file mode 100755 index 34b35316278600280b0a791ef616a8e52dca3c68..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 752 zcmex=& zF#x5Q*_k*PIT^UP1sIqZnOPW_nL#dMV&g1jWMXC!WEEmlWEWOq;4l<%G*TAj40IAp zR52D0Dr}TUnyBi$aN`FxlOit3gBMNJ9|oH>eVnw&C8XHZ&D=d%BQz{rYSW=hk3OX| zmrQO+UA+15<;R*9X`f5AEUi2|y&@u`(lau%%E~J$t6JOIJ370jOr17;#>`numM&Yq zV&$qWTeofBv2)jvqsNY)IC<*I)oa&p+`RSV>9glAUcUPB_1pI!KYsze&&bTg!otkT z!otGF#+nOsvLK715UU{@gOadgAiGhbNFj$)qw+-2poK|d#+(~f4qkLF`XK(W$wYNh zutc)U$3>geOeI6iTvOD!ikm09m4MtEnpzrW-qH$o@Mle_DND8-x$@-8)TLXGUVZvi z!#zCBqO5J&vTet%J^Pkk-adW#_T$%|fA@&UsOXrnV#kRaFMe2hMrKxa&Rn_kWSU*zsdi;zPmR+Kh9p@wbeiS>+&D%zS!(LxApmT(_j2w|1&(YeY@-a^vKDd{~f;T zA8O+s$^QHOx99i%+FyNnwLj+i>wmZZzN!8m_2u=Xf9t>9e;@b#_4RhsetContextProperty("isWindows", isWindows); engine.rootContext()->setContextProperty("isIOS", isIOS); engine.rootContext()->setContextProperty("isAndroid", isAndroid); + engine.rootContext()->setContextProperty("isOpenGL", isOpenGL); + engine.rootContext()->setContextProperty("isLinux", isLinux); engine.rootContext()->setContextProperty("screenWidth", geo.width()); engine.rootContext()->setContextProperty("screenHeight", geo.height()); diff --git a/main.qml b/main.qml index 229979e5..38700ec4 100644 --- a/main.qml +++ b/main.qml @@ -26,7 +26,7 @@ // 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.2 +import QtQuick 2.9 import QtQuick.Window 2.0 import QtQuick.Controls 1.1 import QtQuick.Controls.Styles 1.1 @@ -39,6 +39,8 @@ import moneroComponents.NetworkType 1.0 import "components" import "components" as MoneroComponents +import "components/effects" as MoneroEffects +import "pages/merchant" as MoneroMerchant import "wizard" import "js/Utils.js" as Utils import "js/Windows.js" as Windows @@ -87,6 +89,8 @@ ApplicationWindow { property alias viewState: rootItem.state property string prevSplashText; property bool splashDisplayedBeforeButtonRequest; + property int appEpoch: Math.floor((new Date).getTime() / 1000) + property bool themeTransition: false property string remoteNodeService: { // support user-defined remote node aggregators @@ -1019,12 +1023,22 @@ ApplicationWindow { splash.messageText = message splash.heightProgressText = "" } - splash.show() + + leftPanel.enabled = false; + middlePanel.enabled = false; + titleBar.enabled = false; + inactiveOverlay.visible = true; + splash.show(); } function hideProcessingSplash() { console.log("Hiding processing splash") - splash.close() + splash.close(); + + leftPanel.enabled = true + middlePanel.enabled = true + titleBar.enabled = true + inactiveOverlay.visible = false; } // close wallet and show wizard @@ -1056,9 +1070,9 @@ ApplicationWindow { objectName: "appWindow" visible: true -// width: screenWidth //rightPanelExpanded ? 1269 : 1269 - 300 -// height: 900 //300//maxWindowHeight; - color: "#FFFFFF" + width: screenWidth > 980 ? 980 : 800 + height: screenHeight > maxWindowHeight ? maxWindowHeight : 700 + color: MoneroComponents.Style.appWindowBackgroundColor flags: persistentSettings.customDecorations ? Windows.flagsCustomDecorations : Windows.flags onWidthChanged: x -= 0 @@ -1163,6 +1177,11 @@ ApplicationWindow { property string remoteNodeService: "" property int lockOnUserInActivityInterval: 10 // minutes property bool showPid: false + property bool blackTheme: false + + Component.onCompleted: { + MoneroComponents.Style.blackTheme = persistentSettings.blackTheme + } } // Information dialog @@ -1371,15 +1390,9 @@ ApplicationWindow { PropertyChanges { target: rightPanel; visible: false } PropertyChanges { target: middlePanel; visible: false } PropertyChanges { target: wizard; visible: true } - PropertyChanges { target: appWindow; width: (screenWidth < 969 || isAndroid || isIOS)? screenWidth : 969 } //rightPanelExpanded ? 1269 : 1269 - 300; - PropertyChanges { target: appWindow; height: maxWindowHeight; } PropertyChanges { target: resizeArea; visible: true } -// PropertyChanges { target: frameArea; blocked: true } PropertyChanges { target: mobileHeader; visible: false } - PropertyChanges { target: titleBar; basicButtonVisible: false } - PropertyChanges { target: titleBar; showMaximizeButton: true } - PropertyChanges { target: titleBar; visible: true } - PropertyChanges { target: titleBar; title: qsTr("Monero") + translationManager.emptyString } + PropertyChanges { target: titleBar; state: "essentials" } }, State { name: "normal" PropertyChanges { target: leftPanel; visible: (isMobile)? false : true } @@ -1387,14 +1400,8 @@ ApplicationWindow { PropertyChanges { target: middlePanel; visible: true } PropertyChanges { target: titleBar; basicButtonVisible: true } PropertyChanges { target: wizard; visible: false } - PropertyChanges { target: appWindow; width: (screenWidth < 969 || isAndroid || isIOS)? screenWidth : 969 } //rightPanelExpanded ? 1269 : 1269 - 300; - PropertyChanges { target: appWindow; height: maxWindowHeight; } PropertyChanges { target: resizeArea; visible: true } - PropertyChanges { target: titleBar; showMaximizeButton: true } -// PropertyChanges { target: frameArea; blocked: true } - PropertyChanges { target: titleBar; visible: true } -// PropertyChanges { target: titleBar; y: 0 } - PropertyChanges { target: titleBar; title: qsTr("Monero") + translationManager.emptyString } + PropertyChanges { target: titleBar; state: "default" } PropertyChanges { target: mobileHeader; visible: isMobile ? true : false } } ] @@ -1552,12 +1559,6 @@ ApplicationWindow { state: "Transfer" } - TipItem { - id: tipItem - text: qsTr("send to the same destination") + translationManager.emptyString - visible: false - } - SequentialAnimation { id: goToBasicAnimation // PropertyAction { @@ -1674,21 +1675,20 @@ ApplicationWindow { id: resizeArea enabled: persistentSettings.customDecorations hoverEnabled: true + cursorShape: persistentSettings.customDecorations ? Qt.PointingHandCursor : Qt.ArrowCursor anchors.right: parent.right anchors.bottom: parent.bottom - height: 30 - width: 30 + height: 34 + width: 34 - Rectangle { - anchors.fill: parent - color: parent.containsMouse || parent.pressed ? "#111111" : "transparent" - } - - Image { + MoneroEffects.ImageMask { anchors.centerIn: parent visible: persistentSettings.customDecorations - source: parent.containsMouse || parent.pressed ? "images/resizeHovered.png" : - "images/resize.png" + image: "qrc:///images/resize.png" + color: MoneroComponents.Style.defaultFontColor + width: 12 + height: 12 + opacity: (parent.containsMouse || parent.pressed) ? 0.5 : 1.0 } property var previousPosition @@ -1717,19 +1717,12 @@ ApplicationWindow { TitleBar { id: titleBar - x: 0 - y: 0 + visible: persistentSettings.customDecorations && middlePanel.state !== "Merchant" anchors.left: parent.left anchors.right: parent.right - showMinimizeButton: true - showMaximizeButton: true - showWhatIsButton: false - showMoneroLogo: true onCloseClicked: appWindow.close(); - onMaximizeClicked: { - appWindow.visibility = appWindow.visibility !== Window.Maximized ? Window.Maximized : - Window.Windowed - } + onLanguageClicked: appWindow.toggleLanguageView(); + onMaximizeClicked: appWindow.visibility = appWindow.visibility !== Window.Maximized ? Window.Maximized : Window.Windowed onMinimizeClicked: appWindow.visibility = Window.Minimized onGoToBasicVersion: { if (yes) { @@ -1740,25 +1733,16 @@ ApplicationWindow { goToProAnimation.start() } } + } - MouseArea { - enabled: persistentSettings.customDecorations - property var previousPosition - anchors.fill: parent - propagateComposedEvents: true - onPressed: previousPosition = globalCursor.getPosition() - onPositionChanged: { - if (pressedButtons == Qt.LeftButton) { - var pos = globalCursor.getPosition() - var dx = pos.x - previousPosition.x - var dy = pos.y - previousPosition.y - - appWindow.x += dx - appWindow.y += dy - previousPosition = pos - } - } - } + MoneroMerchant.MerchantTitlebar { + id: titleBarOrange + visible: middlePanel.state === "Merchant" + anchors.left: parent.left + anchors.right: parent.right + onCloseClicked: appWindow.close(); + onMaximizeClicked: appWindow.visibility = appWindow.visibility !== Window.Maximized ? Window.Maximized : Window.Windowed + onMinimizeClicked: appWindow.visibility = Window.Minimized } // new ToolTip @@ -1776,10 +1760,10 @@ ApplicationWindow { anchors.top: parent.bottom anchors.right: parent.right anchors.rightMargin: 5 - source: "../images/tip.png" + source: "qrc:///images/tip.png" } - Text { + MoneroComponents.TextPlain { id: content anchors.horizontalCenter: parent.horizontalCenter y: 6 @@ -1823,6 +1807,15 @@ ApplicationWindow { onTriggered: checkInUserActivity() } + Timer { + // enables theme transition animations after 500ms + id: appThemeTransition + running: true + repeat: false + interval: 500 + onTriggered: appWindow.themeTransition = true; + } + function checkSimpleModeConnection(){ // auto-connection mechanism for simple mode if(persistentSettings.nettype != NetworkType.MAINNET) return; @@ -1875,14 +1868,15 @@ ApplicationWindow { anchors.bottom: parent.bottom width: statusMessageText.contentWidth + 20 * scaleRatio anchors.horizontalCenter: parent.horizontalCenter - color: "black" + color: MoneroComponents.Style.blackTheme ? "black" : "white" height: 40 * scaleRatio - Text { + MoneroComponents.TextPlain { id: statusMessageText anchors.fill: parent anchors.margins: 10 * scaleRatio font.pixelSize: 14 * scaleRatio - color: "white" + color: MoneroComponents.Style.defaultFontColor + themeTransition: false } } @@ -1979,15 +1973,6 @@ ApplicationWindow { onTriggered: checkUpdates() } - function titlebarToggleOrange(flag){ - // toggle titlebar orange style - if(flag !== undefined){ - titleBar.orange = flag; - } else { - titleBar.orange = !titleBar.orange; - } - } - function releaseFocus() { // Workaround to release focus from textfield when scrolling (https://bugreports.qt.io/browse/QTBUG-34867) if(isAndroid) { @@ -2066,13 +2051,84 @@ ApplicationWindow { } } - // background gradient Rectangle { id: inactiveOverlay visible: false anchors.fill: parent - color: "black" - opacity: 0.8 + anchors.topMargin: titleBar.height + color: MoneroComponents.Style.blackTheme ? "black" : "white" + opacity: MoneroComponents.Style.blackTheme ? 0.8 : 0.9 + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: "black" + whiteColor: "white" + } + } + + // borders on white theme + linux + Rectangle { + visible: isLinux && !MoneroComponents.Style.blackTheme && middlePanel.state !== "Merchant" + z: parent.z + 1 + anchors.left: parent.left + anchors.top: parent.top + anchors.bottom: parent.bottom + width: 1 + color: MoneroComponents.Style.appWindowBorderColor + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } + } + + Rectangle { + visible: isLinux && !MoneroComponents.Style.blackTheme && middlePanel.state !== "Merchant" + z: parent.z + 1 + anchors.right: parent.right + anchors.top: parent.top + anchors.bottom: parent.bottom + width: 1 + color: MoneroComponents.Style.appWindowBorderColor + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } + } + + Rectangle { + visible: isLinux && !MoneroComponents.Style.blackTheme && middlePanel.state !== "Merchant" + z: parent.z + 1 + anchors.right: parent.right + anchors.top: parent.top + anchors.left: parent.left + height: 1 + color: MoneroComponents.Style.appWindowBorderColor + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } + } + + Rectangle { + visible: isLinux && !MoneroComponents.Style.blackTheme && middlePanel.state !== "Merchant" + z: parent.z + 1 + anchors.right: parent.right + anchors.bottom: parent.bottom + anchors.left: parent.left + height: 1 + color: MoneroComponents.Style.appWindowBorderColor + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } } // @TODO: QML type 'Drawer' has issues with buildbot; debug after Qt 5.9 migration diff --git a/monero-wallet-gui.pro b/monero-wallet-gui.pro index e8efdb76..c06dcb3c 100644 --- a/monero-wallet-gui.pro +++ b/monero-wallet-gui.pro @@ -105,6 +105,7 @@ CONFIG(DISABLE_PASS_STRENGTH_METER) { lupdate_only { SOURCES = *.qml \ components/*.qml \ + components/effects/*.qml \ pages/*.qml \ pages/settings/*.qml \ pages/merchant/*.qml \ diff --git a/pages/Account.qml b/pages/Account.qml index 00ac4919..0185b80c 100644 --- a/pages/Account.qml +++ b/pages/Account.qml @@ -26,13 +26,15 @@ // 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.Controls.Styles 1.4 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.2 import "../components" as MoneroComponents +import "../components/effects/" as MoneroEffects + import moneroComponents.Clipboard 1.0 import moneroComponents.Wallet 1.0 import moneroComponents.WalletManager 1.0 @@ -84,32 +86,32 @@ Rectangle { RowLayout { Layout.topMargin: 22 * scaleRatio - Text { + + MoneroComponents.TextPlain { text: qsTr("Total balance: ") + translationManager.emptyString Layout.fillWidth: true - color: "#757575" + color: MoneroComponents.Style.defaultFontColor font.pixelSize: 14 font.family: MoneroComponents.Style.fontRegular.name } - Text { + + MoneroComponents.TextPlain { id: balanceAll font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 - color: MoneroComponents.Style.white + color: MoneroComponents.Style.dimmedFontColor + themeTransition: false + MouseArea { hoverEnabled: true anchors.fill: parent cursorShape: Qt.PointingHandCursor - onEntered: { - parent.color = MoneroComponents.Style.orange - } - onExited: { - parent.color = MoneroComponents.Style.white - } + onEntered: parent.color = MoneroComponents.Style.orange + onExited: parent.color = MoneroComponents.Style.defaultFontColor onClicked: { - console.log("Copied to clipboard"); - clipboard.setText(parent.text); - appWindow.showStatusMessage(qsTr("Copied to clipboard"),3) + console.log("Copied to clipboard"); + clipboard.setText(parent.text); + appWindow.showStatusMessage(qsTr("Copied to clipboard"),3) } } } @@ -117,32 +119,33 @@ Rectangle { RowLayout { Layout.topMargin: 10 * scaleRatio - Text { + + MoneroComponents.TextPlain { text: qsTr("Total unlocked balance: ") + translationManager.emptyString Layout.fillWidth: true - color: "#757575" + color: MoneroComponents.Style.defaultFontColor font.pixelSize: 14 font.family: MoneroComponents.Style.fontRegular.name + themeTransition: false } - Text { + + MoneroComponents.TextPlain { id: unlockedBalanceAll font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 - color: MoneroComponents.Style.white + color: MoneroComponents.Style.dimmedFontColor + themeTransition: false + MouseArea { hoverEnabled: true anchors.fill: parent cursorShape: Qt.PointingHandCursor - onEntered: { - parent.color = MoneroComponents.Style.orange - } - onExited: { - parent.color = MoneroComponents.Style.white - } + onEntered: parent.color = MoneroComponents.Style.orange + onExited: parent.color = MoneroComponents.Style.defaultFontColor onClicked: { - console.log("Copied to clipboard"); - clipboard.setText(parent.text); - appWindow.showStatusMessage(qsTr("Copied to clipboard"),3) + console.log("Copied to clipboard"); + clipboard.setText(parent.text); + appWindow.showStatusMessage(qsTr("Copied to clipboard"),3) } } } @@ -174,19 +177,27 @@ Rectangle { anchors.fill: parent clip: true boundsBehavior: ListView.StopAtBounds + delegate: Rectangle { id: tableItem2 height: subaddressAccountListRow.subaddressAccountListItemHeight width: parent.width Layout.fillWidth: true color: "transparent" + Rectangle { + color: MoneroComponents.Style.appWindowBorderColor anchors.right: parent.right anchors.left: parent.left anchors.top: parent.top height: 1 - color: "#404040" visible: index !== 0 + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } } Rectangle { @@ -197,18 +208,19 @@ Rectangle { MoneroComponents.Label { id: idLabel - color: index === appWindow.current_subaddress_account_table_index ? "white" : "#757575" + color: index === appWindow.current_subaddress_account_table_index ? MoneroComponents.Style.defaultFontColor : "#757575" anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: 6 * scaleRatio fontSize: 14 * scaleRatio fontBold: true text: "#" + index + themeTransition: false } MoneroComponents.Label { id: nameLabel - color: "#a5a5a5" + color: MoneroComponents.Style.dimmedFontColor anchors.verticalCenter: parent.verticalCenter anchors.left: idLabel.right anchors.leftMargin: 6 * scaleRatio @@ -217,22 +229,24 @@ Rectangle { text: label elide: Text.ElideRight textWidth: addressLabel.x - nameLabel.x - 1 + themeTransition: false } MoneroComponents.Label { id: addressLabel - color: "white" + color: MoneroComponents.Style.defaultFontColor anchors.verticalCenter: parent.verticalCenter anchors.left: balanceLabel.left anchors.leftMargin: (mainLayout.width < 510 ? -70 : -125) * scaleRatio fontSize: 14 * scaleRatio fontBold: true text: TxUtils.addressTruncate(address, mainLayout.width < 510 ? 3 : 6) + themeTransition: false } MoneroComponents.Label { id: balanceLabel - color: "white" + color: MoneroComponents.Style.defaultFontColor anchors.verticalCenter: parent.verticalCenter anchors.left: parent.right anchors.leftMargin: (mainLayout.width < 510 ? -120 : -180) * scaleRatio @@ -240,49 +254,55 @@ Rectangle { fontBold: true text: qsTr("Balance: ") + balance elide: mainLayout.width < 510 ? Text.ElideRight : Text.ElideNone - textWidth: 120 + textWidth: 120 + themeTransition: false } MouseArea { cursorShape: Qt.PointingHandCursor anchors.fill: parent hoverEnabled: true - onEntered: { - tableItem2.color = "#26FFFFFF" - } - onExited: { - tableItem2.color = "transparent" - } + onEntered: tableItem2.color = MoneroComponents.Style.titleBarButtonHoverColor + onExited: tableItem2.color = "transparent" onClicked: { - if (index == subaddressAccountListView.currentIndex && selectAndSend) { + if (index == subaddressAccountListView.currentIndex && selectAndSend) appWindow.showPageRequest("Transfer"); - } subaddressAccountListView.currentIndex = index; } } } - MoneroComponents.IconButton { - id: renameButton - imageSource: "../images/editIcon.png" + RowLayout { + anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right - anchors.rightMargin: 30 * scaleRatio - anchors.topMargin: 1 * scaleRatio + anchors.rightMargin: 6 + height: 21 + spacing: 10 - onClicked: { - renameSubaddressAccountLabel(index); + MoneroComponents.IconButton { + id: renameButton + image: "qrc:///images/edit.svg" + color: MoneroComponents.Style.defaultFontColor + opacity: 0.5 + Layout.preferredWidth: 23 + Layout.preferredHeight: 21 + + onClicked: pageAccount.renameSubaddressAccountLabel(index); } - } - MoneroComponents.IconButton { - id: copyButton - imageSource: "../images/dropdownCopy.png" - anchors.right: parent.right + MoneroComponents.IconButton { + id: copyButton + image: "qrc:///images/copy.svg" + color: MoneroComponents.Style.defaultFontColor + opacity: 0.5 + Layout.preferredWidth: 16 + Layout.preferredHeight: 21 - 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); + } } } } @@ -302,9 +322,15 @@ Rectangle { } Rectangle { - color: "#404040" + color: MoneroComponents.Style.appWindowBorderColor Layout.fillWidth: true height: 1 + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } } MoneroComponents.CheckBox { 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 diff --git a/pages/History.qml b/pages/History.qml index 8acd423d..7794a4f7 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -29,6 +29,7 @@ import QtQuick 2.0 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.2 +import QtGraphicalEffects 1.0 import moneroComponents.Wallet 1.0 import moneroComponents.WalletManager 1.0 import moneroComponents.TransactionHistory 1.0 @@ -36,6 +37,8 @@ import moneroComponents.TransactionInfo 1.0 import moneroComponents.TransactionHistoryModel 1.0 import moneroComponents.Clipboard 1.0 import FontAwesome 1.0 + +import "../components/effects/" as MoneroEffects import "../components" as MoneroComponents import "../js/Utils.js" as Utils import "../js/TxUtils.js" as TxUtils @@ -96,7 +99,7 @@ Rectangle { Layout.preferredHeight: 15 spacing: 8 * scaleRatio - Text { + MoneroComponents.TextPlain { Layout.alignment: Qt.AlignVCenter font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio @@ -113,12 +116,16 @@ Rectangle { } } - Image { + MoneroEffects.ImageMask { + id: sortCollapsedIcon Layout.alignment: Qt.AlignVCenter height: 8 * scaleRatio width: 12 * scaleRatio - source: "../images/whiteDropIndicator.png" - rotation: parent.collapsed ? 0 : 180 + image: "qrc:///images/whiteDropIndicator.png" + fontAwesomeFallbackIcon: FontAwesome.arrowDown + fontAwesomeFallbackSize: 14 + rotation: sortAndFilter.collapsed ? 0 : 180 + color: MoneroComponents.Style.defaultFontColor MouseArea { anchors.fill: parent @@ -215,7 +222,7 @@ Rectangle { Layout.preferredWidth: childrenRect.width + 38 * scaleRatio Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Sort by") + ":" @@ -235,21 +242,25 @@ Rectangle { clip: true anchors.fill: parent - Text { + MoneroComponents.TextPlain { id: sortBlockheightText font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Blockheight") + translationManager.emptyString color: root.sortBy === "blockheight" ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor anchors.verticalCenter: parent.verticalCenter + themeTransition: false } - Image { + MoneroEffects.ImageMask { height: 8 * scaleRatio width: 12 * scaleRatio visible: root.sortBy === "blockheight" ? true : false - opacity: root.sortBy === "blockheight" ? 1 : 0.6 - source: "../images/whiteDropIndicator.png" + opacity: root.sortBy === "blockheight" ? 1 : 0.2 + image: "qrc:///images/whiteDropIndicator.png" + fontAwesomeFallbackIcon: FontAwesome.arrowDown + fontAwesomeFallbackSize: 14 + color: MoneroComponents.Style.defaultFontColor rotation: { if(root.sortBy === "blockheight"){ return root.sortDirection ? 0 : 180 @@ -291,21 +302,25 @@ Rectangle { clip: true anchors.fill: parent - Text { + MoneroComponents.TextPlain { id: sortDateText font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Date") + translationManager.emptyString color: root.sortBy === "timestamp" ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor + themeTransition: false anchors.verticalCenter: parent.verticalCenter } - Image { + MoneroEffects.ImageMask { height: 8 * scaleRatio width: 12 * scaleRatio visible: root.sortBy === "timestamp" ? true : false - opacity: root.sortBy === "timestamp" ? 1 : 0.6 - source: "../images/whiteDropIndicator.png" + opacity: root.sortBy === "timestamp" ? 1 : 0.2 + image: "qrc:///images/whiteDropIndicator.png" + fontAwesomeFallbackIcon: FontAwesome.arrowDown + fontAwesomeFallbackSize: 14 + color: MoneroComponents.Style.defaultFontColor rotation: { if(root.sortBy === "timestamp"){ return root.sortDirection ? 0 : 180 @@ -347,21 +362,25 @@ Rectangle { clip: true anchors.fill: parent - Text { + MoneroComponents.TextPlain { id: sortAmountText font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Amount") + translationManager.emptyString color: root.sortBy === "amount" ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor + themeTransition: false anchors.verticalCenter: parent.verticalCenter } - Image { + MoneroEffects.ImageMask { height: 8 * scaleRatio width: 12 * scaleRatio visible: root.sortBy === "amount" ? true : false - opacity: root.sortBy === "amount" ? 1 : 0.6 - source: "../images/whiteDropIndicator.png" + opacity: root.sortBy === "amount" ? 1 : 0.2 + image: "qrc:///images/whiteDropIndicator.png" + fontAwesomeFallbackIcon: FontAwesome.arrowDown + fontAwesomeFallbackSize: 14 + color: MoneroComponents.Style.defaultFontColor rotation: { if(root.sortBy === "amount"){ return root.sortDirection ? 0 : 180 @@ -397,7 +416,7 @@ Rectangle { visible: !sortAndFilter.collapsed Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { // status message font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio @@ -424,7 +443,7 @@ Rectangle { Layout.preferredWidth: childrenRect.width + 2 * scaleRatio Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Page") + ":" @@ -439,10 +458,10 @@ Rectangle { Layout.leftMargin: 4 * scaleRatio Layout.preferredHeight: 20 * scaleRatio - Text { + MoneroComponents.TextPlain { id: paginationText text: root.txPage + "/" + Math.ceil(root.txCount / root.txMax) - color: "white" + color: MoneroComponents.Style.defaultFontColor anchors.verticalCenter: parent.verticalCenter MouseArea { @@ -480,15 +499,19 @@ Rectangle { Layout.preferredWidth: 18 * scaleRatio Layout.preferredHeight: 20 * scaleRatio color: "transparent" - opacity: enabled ? 1.0 : 0.6 + opacity: enabled ? 1.0 : 0.2 enabled: false - Image { + MoneroEffects.ImageMask { + id: prevIcon anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left height: 8 * scaleRatio width: 12 * scaleRatio - source: "../images/whiteDropIndicator.png" + image: "qrc:///images/whiteDropIndicator.png" + fontAwesomeFallbackIcon: FontAwesome.arrowDown + fontAwesomeFallbackSize: 14 + color: MoneroComponents.Style.defaultFontColor rotation: 90 } @@ -508,16 +531,20 @@ Rectangle { Layout.preferredWidth: 18 * scaleRatio Layout.preferredHeight: 20 * scaleRatio color: "transparent" - opacity: enabled ? 1.0 : 0.6 + opacity: enabled ? 1.0 : 0.2 enabled: false - Image { + MoneroEffects.ImageMask { + id: nextIcon anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right height: 8 * scaleRatio width: 12 * scaleRatio - source: "../images/whiteDropIndicator.png" + image: "qrc:///images/whiteDropIndicator.png" + fontAwesomeFallbackIcon: FontAwesome.arrowDown + fontAwesomeFallbackSize: 14 rotation: 270 + color: MoneroComponents.Style.defaultFontColor } MouseArea { @@ -550,7 +577,10 @@ Rectangle { if(isout && delegate.address !== "") return 320; return 220; } - color: collapsed ? "#06FFFFFF" : "transparent" + color: { + if(!collapsed) return "transparent" + return MoneroComponents.Style.blackTheme ? "#06FFFFFF" : "#04000000" + } Rectangle { anchors.top: parent.top @@ -601,12 +631,14 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio - text: (isout ? qsTr("Sent") : qsTr("Received")) + translationManager.emptyString - color: "#C0C0C0" + text: isout ? qsTr("Sent") : qsTr("Received") + translationManager.emptyString + color: MoneroComponents.Style.historyHeaderTextColor anchors.verticalCenter: parent.verticalCenter + themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor + themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor } } @@ -615,7 +647,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: _amount + " XMR" @@ -649,11 +681,13 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio - text: (isout ? qsTr("Fee") : confirmationsRequired === 60 ? qsTr("Mined") : qsTr("Fee")) + translationManager.emptyString - color: "#C0C0C0" + text: isout ? qsTr("Fee") : confirmationsRequired === 60 ? qsTr("Mined") : qsTr("Fee") + translationManager.emptyString + color: MoneroComponents.Style.historyHeaderTextColor + themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor + themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor anchors.verticalCenter: parent.verticalCenter } } @@ -663,7 +697,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: { @@ -708,11 +742,13 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Blockheight") + translationManager.emptyString - color: "#C0C0C0" + color: MoneroComponents.Style.historyHeaderTextColor + themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor + themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor anchors.verticalCenter: parent.verticalCenter } } @@ -722,7 +758,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 * scaleRatio text: blockheight > 0 ? blockheight : qsTr('Pending') + translationManager.emptyString; @@ -757,11 +793,13 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Confirmations") + translationManager.emptyString - color: "#C0C0C0" + color: MoneroComponents.Style.historyHeaderTextColor + themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor + themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor anchors.verticalCenter: parent.verticalCenter } } @@ -771,7 +809,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { property bool confirmed: confirmations < confirmationsRequired ? false : true font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio @@ -812,11 +850,13 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio - text: qsTr("Date") + translationManager.emptyString - color: "#C0C0C0" + text: qsTr("Date") + color: MoneroComponents.Style.historyHeaderTextColor + themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor + themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor anchors.verticalCenter: parent.verticalCenter } } @@ -826,7 +866,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: persistentSettings.historyHumanDates ? dateHuman : date + " " + time @@ -867,6 +907,9 @@ Rectangle { anchors.fill: parent hoverEnabled: true z: parent.z + 1 + + onEntered: parent.opacity = 0.8; + onExited: parent.opacity = 1.0; } } @@ -894,6 +937,9 @@ Rectangle { anchors.fill: parent hoverEnabled: true z: parent.z + 1 + + onEntered: parent.opacity = 0.8; + onExited: parent.opacity = 1.0; } } } @@ -910,11 +956,13 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Description") + translationManager.emptyString - color: "#C0C0C0" + color: MoneroComponents.Style.historyHeaderTextColor + themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor + themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor anchors.verticalCenter: parent.verticalCenter } } @@ -924,7 +972,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { id: txNoteText font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio @@ -941,26 +989,25 @@ Rectangle { } } - Image { + MoneroEffects.ImageMask { anchors.top: parent.top anchors.left: txNoteText.right anchors.leftMargin: 12 * scaleRatio - source: "../images/editIcon.png" - opacity: 1 - width: 18 - height: 18 + image: "qrc:///images/edit.svg" + fontAwesomeFallbackIcon: FontAwesome.pencilSquare + fontAwesomeFallbackSize: 22 + color: MoneroComponents.Style.defaultFontColor + opacity: 0.75 + width: 23 + height: 21 MouseArea { id: txNoteArea state: "set_tx_note" anchors.fill: parent hoverEnabled: true - onEntered: { - parent.opacity = 0.7; - } - onExited: { - parent.opacity = 1.0; - } + onEntered: parent.opacity = 0.4; + onExited: parent.opacity = 0.75; cursorShape: Qt.PointingHandCursor } } @@ -977,11 +1024,13 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Transaction ID") + translationManager.emptyString - color: "#C0C0C0" + color: MoneroComponents.Style.historyHeaderTextColor + themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor + themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor anchors.verticalCenter: parent.verticalCenter } } @@ -991,7 +1040,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: hash @@ -1019,11 +1068,13 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Transaction key") + translationManager.emptyString - color: "#C0C0C0" + color: MoneroComponents.Style.historyHeaderTextColor + themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor + themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor anchors.verticalCenter: parent.verticalCenter } } @@ -1033,7 +1084,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: { @@ -1067,11 +1118,13 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: qsTr("Address sent to") + translationManager.emptyString - color: "#C0C0C0" + color: MoneroComponents.Style.historyHeaderTextColor + themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor + themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor anchors.verticalCenter: parent.verticalCenter } } @@ -1082,7 +1135,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 20 - Text { + MoneroComponents.TextPlain { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 15 * scaleRatio text: { @@ -1164,15 +1217,16 @@ Rectangle { color: "transparent" - Image { + MoneroEffects.ImageMask { + id: collapsedIcon anchors.top: parent.top anchors.topMargin: 24 * scaleRatio anchors.horizontalCenter: parent.horizontalCenter - height: 8 * scaleRatio width: 12 * scaleRatio - source: "../images/whiteDropIndicator.png" + image: "qrc:///images/whiteDropIndicator.png" rotation: delegate.collapsed ? 180 : 0 + color: MoneroComponents.Style.defaultFontColor } } @@ -1181,7 +1235,13 @@ Rectangle { anchors.right: parent.right anchors.top: parent.top height: 1 - color: "#2b2b2b" + color: MoneroComponents.Style.appWindowBorderColor + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } } Rectangle { @@ -1189,7 +1249,13 @@ Rectangle { anchors.right: parent.right anchors.top: parent.bottom height: 1 - color: "#2b2b2b" + color: MoneroComponents.Style.appWindowBorderColor + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } } } } @@ -1201,7 +1267,7 @@ Rectangle { Layout.leftMargin: sideMargin Layout.rightMargin: sideMargin - Text { + MoneroComponents.TextPlain { // status message Layout.fillWidth: true Layout.alignment: Qt.AlignHCenter @@ -1209,6 +1275,8 @@ Rectangle { font.pixelSize: 15 * scaleRatio text: root.historyStatusMessage; color: MoneroComponents.Style.dimmedFontColor + themeTransitionBlackColor: MoneroComponents.Style._b_dimmedFontColor + themeTransitionWhiteColor: MoneroComponents.Style._w_dimmedFontColor } } diff --git a/pages/Keys.qml b/pages/Keys.qml index 9baa5ce8..e46b038d 100644 --- a/pages/Keys.qml +++ b/pages/Keys.qml @@ -26,7 +26,7 @@ // 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 1.4 import QtQuick.Controls.Styles 1.4 import QtQuick.Layouts 1.1 @@ -92,7 +92,7 @@ Rectangle { addressValidation: false readOnly: true wrapMode: Text.WordWrap - fontColor: "white" + fontColor: MoneroComponents.Style.defaultFontColor } } @@ -208,7 +208,7 @@ Rectangle { fillMode: Image.PreserveAspectFit } - Text { + MoneroComponents.TextPlain { Layout.fillWidth: true font.bold: true font.pixelSize: 16 * scaleRatio diff --git a/pages/Mining.qml b/pages/Mining.qml index 89710d9f..db980888 100644 --- a/pages/Mining.qml +++ b/pages/Mining.qml @@ -26,7 +26,7 @@ // 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.Layouts 1.1 import QtQuick.Dialogs 1.2 import "../components" as MoneroComponents @@ -65,7 +65,7 @@ Rectangle { visible: walletManager.isDaemonLocal(appWindow.currentDaemonAddress) && !appWindow.daemonSynced } - Text { + MoneroComponents.TextPlain { id: soloMainLabel text: qsTr("Mining with your computer helps strengthen the Monero network. The more that people mine, the harder it is for the network to be attacked, and every little bit helps.

Mining also gives you a small chance to earn some Monero. Your computer will create hashes looking for block solutions. If you find a block, you will get the associated reward. Good luck!") + translationManager.emptyString wrapMode: Text.Wrap @@ -112,7 +112,7 @@ Rectangle { validator: IntValidator { bottom: 1; top: idealThreadCount } } - Text { + MoneroComponents.TextPlain { id: numAvailableThreadsText text: qsTr("Max # of CPU threads available for mining: ") + idealThreadCount + translationManager.emptyString wrapMode: Text.WordWrap diff --git a/pages/Receive.qml b/pages/Receive.qml index f0392a55..e31a79d7 100644 --- a/pages/Receive.qml +++ b/pages/Receive.qml @@ -26,13 +26,15 @@ // 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.Controls.Styles 1.4 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.2 import "../components" as MoneroComponents +import "../components/effects/" as MoneroEffects + import moneroComponents.Clipboard 1.0 import moneroComponents.Wallet 1.0 import moneroComponents.WalletManager 1.0 @@ -113,8 +115,14 @@ Rectangle { anchors.left: parent.left anchors.top: parent.top height: 1 - color: "#404040" + color: MoneroComponents.Style.appWindowBorderColor visible: index !== 0 + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } } Rectangle { @@ -125,18 +133,19 @@ Rectangle { MoneroComponents.Label { id: idLabel - color: index === appWindow.current_subaddress_table_index ? "white" : "#757575" + color: index === appWindow.current_subaddress_table_index ? MoneroComponents.Style.defaultFontColor : "#757575" anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: 6 * scaleRatio fontSize: 14 * scaleRatio fontBold: true text: "#" + index + themeTransition: false } MoneroComponents.Label { id: nameLabel - color: "#a5a5a5" + color: MoneroComponents.Style.dimmedFontColor anchors.verticalCenter: parent.verticalCenter anchors.left: idLabel.right anchors.leftMargin: 6 * scaleRatio @@ -145,42 +154,42 @@ Rectangle { text: label elide: Text.ElideRight textWidth: addressLabel.x - nameLabel.x - 1 + themeTransition: false } MoneroComponents.Label { id: addressLabel - color: "white" + color: MoneroComponents.Style.defaultFontColor anchors.verticalCenter: parent.verticalCenter anchors.left: parent.right anchors.leftMargin: (mainLayout.width < 510 ? -130 : -190) * scaleRatio fontSize: 14 * scaleRatio fontBold: true text: TxUtils.addressTruncate(address, mainLayout.width < 510 ? 6 : 10) + themeTransition: false } MouseArea { cursorShape: Qt.PointingHandCursor anchors.fill: parent hoverEnabled: true - onEntered: { - tableItem2.color = "#26FFFFFF" - } - onExited: { - tableItem2.color = "transparent" - } - onClicked: { - subaddressListView.currentIndex = index; - } + onEntered: tableItem2.color = MoneroComponents.Style.titleBarButtonHoverColor + onExited: tableItem2.color = "transparent" + onClicked: subaddressListView.currentIndex = index; } } MoneroComponents.IconButton { id: renameButton - imageSource: "../images/editIcon.png" + image: "qrc:///images/edit.svg" + color: MoneroComponents.Style.defaultFontColor + opacity: 0.5 anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 30 * scaleRatio anchors.topMargin: 1 * scaleRatio + width: 23 + height: 21 visible: index !== 0 onClicked: { @@ -190,10 +199,13 @@ Rectangle { MoneroComponents.IconButton { id: copyButton - imageSource: "../images/dropdownCopy.png" + image: "qrc:///images/copy.svg" + color: MoneroComponents.Style.defaultFontColor + opacity: 0.5 anchors.verticalCenter: parent.verticalCenter - anchors.top: undefined anchors.right: parent.right + width: 16 + height: 21 onClicked: { console.log("Address copied to clipboard"); @@ -214,9 +226,15 @@ Rectangle { } Rectangle { - color: "#404040" + color: MoneroComponents.Style.appWindowBorderColor Layout.fillWidth: true height: 1 + + MoneroEffects.ColorTransition { + targetObj: parent + blackColor: MoneroComponents.Style._b_appWindowBorderColor + whiteColor: MoneroComponents.Style._w_appWindowBorderColor + } } MoneroComponents.CheckBox { @@ -249,7 +267,7 @@ Rectangle { Rectangle { id: qrContainer - color: "white" + color: MoneroComponents.Style.blackTheme ? "white" : "transparent" Layout.fillWidth: true Layout.maximumWidth: parent.qrSize Layout.preferredHeight: width @@ -276,12 +294,12 @@ Rectangle { spacing: parent.spacing MoneroComponents.StandardButton { - rightIcon: "../images/download-white.png" + rightIcon: "qrc:///images/download-white.png" onClicked: qrFileDialog.open() } MoneroComponents.StandardButton { - rightIcon: "../images/external-link-white.png" + rightIcon: "qrc:///images/external-link-white.png" onClicked: { clipboard.setText(TxUtils.makeQRCodeString(appWindow.current_address)); appWindow.showStatusMessage(qsTr("Copied to clipboard") + translationManager.emptyString, 3); diff --git a/pages/SharedRingDB.qml b/pages/SharedRingDB.qml index d4d5f687..4a353879 100644 --- a/pages/SharedRingDB.qml +++ b/pages/SharedRingDB.qml @@ -26,7 +26,7 @@ // 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 1.4 import QtQuick.Controls.Styles 1.4 import QtQuick.Layouts 1.1 @@ -100,7 +100,7 @@ Rectangle { text: qsTr("Shared RingDB") + translationManager.emptyString } - Text { + MoneroComponents.TextPlain { text: qsTr("This page allows you to interact with the shared ring database. " + "This database is meant for use by Monero wallets as well as wallets from Monero clones which reuse the Monero keys.") + translationManager.emptyString wrapMode: Text.Wrap @@ -134,7 +134,7 @@ Rectangle { } } - Text { + MoneroComponents.TextPlain { textFormat: Text.RichText font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 * scaleRatio @@ -272,7 +272,7 @@ Rectangle { } } - Text { + MoneroComponents.TextPlain { textFormat: Text.RichText font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 * scaleRatio @@ -374,8 +374,6 @@ Rectangle { id: segregatePreForkOutputs checked: persistentSettings.segregatePreForkOutputs text: qsTr("I intend to spend on key-reusing fork(s)") + translationManager.emptyString - checkedIcon: "../images/checkedIcon-black.png" - uncheckedIcon: "../images/uncheckedIcon.png" onClicked: { persistentSettings.segregatePreForkOutputs = segregatePreForkOutputs.checked if (appWindow.currentWallet) { @@ -388,8 +386,6 @@ Rectangle { id: keyReuseMitigation2 checked: persistentSettings.keyReuseMitigation2 text: qsTr("I might want to spend on key-reusing fork(s)") + translationManager.emptyString - checkedIcon: "../images/checkedIcon-black.png" - uncheckedIcon: "../images/uncheckedIcon.png" onClicked: { persistentSettings.keyReuseMitigation2 = keyReuseMitigation2.checked if (appWindow.currentWallet) { @@ -402,23 +398,24 @@ Rectangle { id: setRingRelative checked: true text: qsTr("Relative") + translationManager.emptyString - checkedIcon: "../images/checkedIcon-black.png" - uncheckedIcon: "../images/uncheckedIcon.png" } } - RowLayout { + GridLayout { id: segregationHeightRow - Layout.topMargin: 17 * scaleRatio Layout.fillWidth: true + Layout.topMargin: 17 * scaleRatio + columns: (isMobile) ? 1 : 2 + columnSpacing: 32 * scaleRatio MoneroComponents.LineEdit { id: segregationHeightLine + property bool edited: false Layout.fillWidth: true placeholderFontSize: 16 * scaleRatio labelFontSize: 14 * scaleRatio - labelText: qsTr("Segregation height:") + translationManager.emptyString + labelText: qsTr("Set segregation height:") + translationManager.emptyString validator: IntValidator { bottom: 0 } readOnly: false onEditingFinished: { @@ -426,8 +423,15 @@ Rectangle { if (appWindow.currentWallet) { appWindow.currentWallet.segregationHeight(segregationHeightLine.text) } + + // @TODO: LineEdit should visually be able show that an action + // has been completed due to modification of the text } } + + Item { + Layout.fillWidth: true + } } } diff --git a/pages/Sign.qml b/pages/Sign.qml index a077ee92..9d26bcd0 100644 --- a/pages/Sign.qml +++ b/pages/Sign.qml @@ -26,7 +26,7 @@ // 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 1.4 import QtQuick.Controls.Styles 1.4 import QtQuick.Layouts 1.1 @@ -101,7 +101,7 @@ Rectangle { text: qsTr("Sign/verify") + translationManager.emptyString } - Text { + MoneroComponents.TextPlain { text: qsTr("This page lets you sign/verify a message (or file contents) with your address.") + translationManager.emptyString wrapMode: Text.Wrap Layout.fillWidth: true @@ -114,7 +114,7 @@ Rectangle { id: modeRow Layout.fillWidth: true - Text { + MoneroComponents.TextPlain { id: modeText Layout.fillWidth: true Layout.topMargin: 12 * scaleRatio diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 4fcf193d..b4563c7c 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -26,7 +26,7 @@ // 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.Layouts 1.1 import QtQuick.Dialogs 1.2 import moneroComponents.Clipboard 1.0 @@ -196,10 +196,6 @@ Rectangle { Layout.fillWidth: true id: priorityDropdown Layout.topMargin: 5 * scaleRatio - shadowReleasedColor: "#FF4304" - shadowPressedColor: "#B32D00" - releasedColor: "#363636" - pressedColor: "#202020" currentIndex: 0 } } @@ -247,6 +243,7 @@ Rectangle { addressLine.text = clipboardText; } } + inlineButton.text: FontAwesome.qrcode inlineButton.fontPixelSize: 22 inlineButton.fontFamily: FontAwesome.fontFamily @@ -314,6 +311,8 @@ Rectangle { border: false checkedIcon: "qrc:///images/minus-white.png" uncheckedIcon: "qrc:///images/plus-white.png" + imgWidth: 12 * scaleRatio + imgHeight: 12 * scaleRatio fontSize: paymentIdLine.labelFontSize iconOnTheLeft: false Layout.fillWidth: true @@ -343,6 +342,8 @@ Rectangle { border: false checkedIcon: "qrc:///images/minus-white.png" uncheckedIcon: "qrc:///images/plus-white.png" + imgWidth: 12 * scaleRatio + imgHeight: 12 * scaleRatio fontSize: descriptionLine.labelFontSize iconOnTheLeft: false Layout.fillWidth: true @@ -381,8 +382,8 @@ Rectangle { RowLayout { StandardButton { id: sendButton - rightIcon: "../images/rightArrow.png" - rightIconInactive: "../images/rightArrowInactive.png" + rightIcon: "qrc:///images/rightArrow.png" + rightIconInactive: "qrc:///images/rightArrowInactive.png" Layout.topMargin: 4 * scaleRatio text: qsTr("Send") + translationManager.emptyString enabled: { diff --git a/pages/TxKey.qml b/pages/TxKey.qml index ee046b4b..4681df27 100644 --- a/pages/TxKey.qml +++ b/pages/TxKey.qml @@ -26,7 +26,7 @@ // 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 1.4 import QtQuick.Controls.Styles 1.4 import QtQuick.Layouts 1.1 @@ -63,7 +63,7 @@ Rectangle { text: qsTr("Prove Transaction") + translationManager.emptyString } - Text { + MoneroComponents.TextPlain { Layout.fillWidth: true text: qsTr("Generate a proof of your incoming/outgoing payment by supplying the transaction ID, the recipient address and an optional message. \n" + "For the case of outgoing payments, you can get a 'Spend Proof' that proves the authorship of a transaction. In this case, you don't need to specify the recipient address.") + translationManager.emptyString @@ -123,7 +123,8 @@ Rectangle { // underline Rectangle { height: 1 - color: "#404040" + color: MoneroComponents.Style.dividerColor + opacity: MoneroComponents.Style.dividerOpacity Layout.fillWidth: true Layout.alignment: Qt.AlignHCenter anchors.bottomMargin: 3 * scaleRatio @@ -135,7 +136,7 @@ Rectangle { text: qsTr("Check Transaction") + translationManager.emptyString } - Text { + MoneroComponents.TextPlain { text: qsTr("Verify that funds were paid to an address by supplying the transaction ID, the recipient address, the message used for signing and the signature.\n" + "For the case with Spend Proof, you don't need to specify the recipient address.") + translationManager.emptyString wrapMode: Text.Wrap @@ -207,14 +208,14 @@ Rectangle { // underline Rectangle { height: 1 - color: "#404040" + color: MoneroComponents.Style.dividerColor + opacity: MoneroComponents.Style.dividerOpacity Layout.fillWidth: true Layout.alignment: Qt.AlignHCenter anchors.bottomMargin: 3 * scaleRatio - } - Text { + MoneroComponents.TextPlain { text: qsTr("If a payment had several transactions then each must be checked and the results combined.") + translationManager.emptyString wrapMode: Text.Wrap Layout.fillWidth: true diff --git a/pages/merchant/Merchant.qml b/pages/merchant/Merchant.qml index d364fdb5..e748a65c 100644 --- a/pages/merchant/Merchant.qml +++ b/pages/merchant/Merchant.qml @@ -1,4 +1,4 @@ -import QtQuick 2.7 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 import QtGraphicalEffects 1.0 @@ -33,7 +33,6 @@ Item { property var hiddenAmounts: [] function onPageCompleted() { - appWindow.titlebarToggleOrange(); appWindow.hideMenu(); // prepare tracking @@ -53,8 +52,6 @@ Item { } function onPageClosed() { - appWindow.titlebarToggleOrange(); - // reset component objects timer.running = false root.enableTracking = false @@ -68,7 +65,7 @@ Item { anchors.left: parent.left anchors.right: parent.right height: 300 * scaleRatio - source: "../../images/merchant/bg.png" + source: "qrc:///images/merchant/bg.png" smooth: false } @@ -129,11 +126,12 @@ Item { Layout.preferredWidth: 10 * scaleRatio } - Text { + MoneroComponents.TextPlain { font.pixelSize: 16 * scaleRatio font.bold: true color: "#767676" text: qsTr("Sales") + translationManager.emptyString + themeTransition: false } Item { @@ -267,7 +265,7 @@ Item { width: (parent.width - qrImg.width) - (50 * scaleRatio) height: 32 * scaleRatio - Text { + MoneroComponents.TextPlain { anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter font.pixelSize: 12 * scaleRatio @@ -275,6 +273,7 @@ Item { color: "white" text: "Currently selected address: " + addressLabel + " (Change)" textFormat: Text.RichText + themeTransition: false MouseArea { anchors.fill: parent @@ -291,13 +290,14 @@ Item { width: 220 * scaleRatio height: 32 * scaleRatio - Text { + MoneroComponents.TextPlain { anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter font.pixelSize: 12 * scaleRatio font.bold: false color: "white" text: qsTr("(right-click, save as)") + translationManager.emptyString + themeTransition: false } } } @@ -336,11 +336,12 @@ Item { Layout.preferredWidth: 10 * scaleRatio } - Text { + MoneroComponents.TextPlain { font.pixelSize: 14 * scaleRatio font.bold: true color: "#767676" text: qsTr("Payment URL") + translationManager.emptyString + themeTransition: false } Item { @@ -356,7 +357,7 @@ Item { // Layout.fillHeight: true // color: "transparent" -// Text { +// MoneroComponents.TextPlain { // anchors.verticalCenter: parent.verticalCenter // anchors.right: parent.right // anchors.rightMargin: 20 * scaleRatio @@ -390,7 +391,7 @@ Item { color: "#d9d9d9" } - Text { + MoneroComponents.TextPlain { property string _color: "#767676" Layout.fillWidth: true Layout.margins: 20 * scaleRatio @@ -403,6 +404,7 @@ Item { font.bold: true color: _color text: TxUtils.makeQRCodeString(appWindow.current_address, amountToReceive.text) + themeTransition: false MouseArea { anchors.fill: parent @@ -446,17 +448,18 @@ Item { anchors.left: parent.left anchors.right: parent.right - Text { + MoneroComponents.TextPlain { font.pixelSize: 14 * scaleRatio font.bold: false color: "white" text: qsTr("Amount to receive") + " (XMR)" + themeTransition: false } Image { height: 28 * scaleRatio width: 220 * scaleRatio - source: "../../images/merchant/input_box.png" + source: "qrc:///images/merchant/input_box.png" TextField { id: amountToReceive @@ -496,7 +499,7 @@ Item { width: 220 * scaleRatio } - Text { + MoneroComponents.TextPlain { // @TODO: When we have XMR/USD rate avi. in the future. visible: false font.pixelSize: 14 * scaleRatio @@ -504,13 +507,14 @@ Item { color: "white" text: qsTr("Amount to receive") + " (USD)" opacity: 0.2 + themeTransition: false } Image { visible: false height: 28 * scaleRatio width: 220 * scaleRatio - source: "../../images/merchant/input_box.png" + source: "qrc:///images/merchant/input_box.png" opacity: 0.2 } } @@ -536,12 +540,13 @@ Item { } } - Text { + MoneroComponents.TextPlain { id: content font.pixelSize: 14 * scaleRatio font.bold: false color: "white" text: qsTr("Leave this page") + translationManager.emptyString + themeTransition: false MouseArea { anchors.fill: parent @@ -564,13 +569,14 @@ Item { width: 400 * scaleRatio radius: 5 - Text { + MoneroComponents.TextPlain { anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter font.pixelSize: 14 * scaleRatio font.bold: true color: MoneroComponents.Style.moneroGrey text: qsTr("The merchant page requires a larger window") + translationManager.emptyString + themeTransition: false } } diff --git a/pages/merchant/MerchantCheckbox.qml b/pages/merchant/MerchantCheckbox.qml index 7b2abc6b..7e498dfa 100644 --- a/pages/merchant/MerchantCheckbox.qml +++ b/pages/merchant/MerchantCheckbox.qml @@ -1,7 +1,8 @@ -import QtQuick 2.7 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import QtGraphicalEffects 1.0 +import "../../components" as MoneroComponents RowLayout { id: root @@ -22,16 +23,17 @@ RowLayout { id: imageChecked visible: root.checked anchors.centerIn: parent - source: "../../images/uncheckedIcon.png" + source: "qrc:///images/uncheckedIcon.png" } } - Text { + MoneroComponents.TextPlain { id: content font.pixelSize: 14 * scaleRatio font.bold: false color: "white" text: "" + themeTransition: false } MouseArea { diff --git a/pages/merchant/MerchantTitlebar.qml b/pages/merchant/MerchantTitlebar.qml new file mode 100644 index 00000000..b16a4341 --- /dev/null +++ b/pages/merchant/MerchantTitlebar.qml @@ -0,0 +1,197 @@ +// Copyright (c) 2014-2018, The Monero Project +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are +// permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of +// conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright notice, this list +// of conditions and the following disclaimer in the documentation and/or other +// materials provided with the distribution. +// +// 3. Neither the name of the copyright holder nor the names of its contributors may be +// used to endorse or promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +// 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.9 +import QtQuick.Window 2.0 +import QtGraphicalEffects 1.0 +import QtQuick.Layouts 1.2 + +import FontAwesome 1.0 +import "../../components/" as MoneroComponents +import "../../components/effects/" as MoneroEffects + +Rectangle { + id: root + property int mouseX: 0 + property bool customDecorations: persistentSettings.customDecorations + property bool showMinimizeButton: true + property bool showMaximizeButton: true + property bool showCloseButton: true + + height: { + if(!persistentSettings.customDecorations || isMobile) return 0; + return 50 * scaleRatio; + } + + z: 1 + color: "transparent" + + signal closeClicked + signal maximizeClicked + signal minimizeClicked + + Rectangle { + width: parent.width + height: parent.height + z: parent.z + 1 + color: "#ff6600" + } + + RowLayout { + z: parent.z + 2 + spacing: 0 + anchors.fill: parent + + Item { + Layout.preferredHeight: parent.height + Layout.preferredWidth: parent.height * 3 + } + + // monero logo + Item { + Layout.fillWidth: true + Layout.preferredHeight: parent.height + + Image { + id: imgLogo + width: 132 + height: 22 + + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + + source: "qrc:///images/moneroLogo_white.png" + } + } + + // minimize + Rectangle { + color: "transparent" + visible: root.showMinimizeButton + Layout.preferredWidth: parent.height + Layout.preferredHeight: parent.height + + MoneroEffects.ImageMask { + anchors.bottom: parent.bottom + anchors.bottomMargin: 18 + anchors.horizontalCenter: parent.horizontalCenter + height: 3 + width: 15 + image: MoneroComponents.Style.titleBarMinimizeSource + color: "white" + opacity: 0.75 + } + + MouseArea { + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onEntered: parent.color = "#44FFFFFF" + onExited: parent.color = "transparent" + onClicked: root.minimizeClicked(); + } + } + + // maximize + Rectangle { + id: test + visible: root.showMaximizeButton + color: "transparent" + Layout.preferredWidth: parent.height + Layout.preferredHeight: parent.height + + Image { + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + source: MoneroComponents.Style._b_titleBarFullscreenSource + sourceSize.width: 16 + sourceSize.height: 16 + smooth: true + mipmap: true + opacity: 0.75 + rotation: appWindow.visibility === Window.FullScreen ? 180 : 0 + } + + MouseArea { + id: buttonArea + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onEntered: parent.color = "#44FFFFFF" + onExited: parent.color = "transparent" + onClicked: root.maximizeClicked(); + } + } + + // close + Rectangle { + visible: root.showCloseButton + color: "transparent" + Layout.preferredWidth: parent.height + Layout.preferredHeight: parent.height + + MoneroEffects.ImageMask { + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + height: 16 + width: 16 + image: MoneroComponents.Style._b_titleBarCloseSource + color: "white" + opacity: 0.75 + } + + MouseArea { + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onEntered: parent.color = "#44FFFFFF" + onExited: parent.color = "transparent" + onClicked: root.closeClicked(); + } + } + } + + MouseArea { + enabled: persistentSettings.customDecorations + property var previousPosition + anchors.fill: parent + propagateComposedEvents: true + onPressed: previousPosition = globalCursor.getPosition() + onPositionChanged: { + if (pressedButtons == Qt.LeftButton) { + var pos = globalCursor.getPosition() + var dx = pos.x - previousPosition.x + var dy = pos.y - previousPosition.y + + appWindow.x += dx + appWindow.y += dy + previousPosition = pos + } + } + } +} diff --git a/pages/merchant/MerchantTrackingList.qml b/pages/merchant/MerchantTrackingList.qml index a96b8be8..04268237 100644 --- a/pages/merchant/MerchantTrackingList.qml +++ b/pages/merchant/MerchantTrackingList.qml @@ -1,4 +1,4 @@ -import QtQuick 2.0 +import QtQuick 2.9 import QtQuick.Controls 2.0 import QtQuick.Controls.Styles 1.4 import QtQuick.Layouts 1.1 @@ -37,7 +37,7 @@ ListView { color: "#767676" textFormat: Text.RichText text: parent.message - selectionColor: MoneroComponents.Style.dimmedFontColor + selectionColor: MoneroComponents.Style.textSelectionColor selectByMouse: true readOnly: true onFocusChanged: {if(focus === false) deselect() } @@ -73,11 +73,11 @@ ListView { TextEdit { id: dateString anchors.verticalCenter: parent.verticalCenter - font.pixelSize: 12 * scaleRatio + font.pixelSize: 13 * scaleRatio font.bold: false color: "#707070" text: time_date + " (" + Utils.ago(time_epoch) + ") " - selectionColor: MoneroComponents.Style.dimmedFontColor + selectionColor: MoneroComponents.Style.textSelectionColor selectByMouse: true readOnly: true onFocusChanged: {if(focus === false) deselect() } @@ -126,7 +126,7 @@ ListView { font.bold: true color: hide_amount ? "#707070" : "#009F1E" text: hide_amount ? '-' : '+' + amount - selectionColor: MoneroComponents.Style.dimmedFontColor + selectionColor: MoneroComponents.Style.textSelectionColor selectByMouse: true readOnly: true onFocusChanged: {if(focus === false) deselect() } @@ -173,7 +173,7 @@ ListView { } } } - selectionColor: MoneroComponents.Style.dimmedFontColor + selectionColor: MoneroComponents.Style.textSelectionColor selectByMouse: true readOnly: true onFocusChanged: {if(focus === false) deselect() } @@ -199,7 +199,7 @@ ListView { anchors.horizontalCenter: parent.horizontalCenter Layout.preferredWidth: 12 * scaleRatio Layout.preferredHeight: 21 * scaleRatio - source: "../../images/merchant/arrow_right.png" + source: "qrc:///images/merchant/arrow_right.png" } MouseArea { diff --git a/pages/settings/Navbar.qml b/pages/settings/Navbar.qml index 6d58582c..b582c132 100644 --- a/pages/settings/Navbar.qml +++ b/pages/settings/Navbar.qml @@ -26,7 +26,7 @@ // 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 1.4 import QtQuick.Controls.Styles 1.4 import QtQuick.Layouts 1.1 @@ -53,11 +53,12 @@ Rectangle { id: grid Layout.alignment: Qt.AlignHCenter columnSpacing: 0 - property string fontColor: "white" - property int fontSize: 13 * scaleRatio + property string fontColorActive: MoneroComponents.Style.blackTheme ? "white" : "white" + property string fontColorInActive: MoneroComponents.Style.blackTheme ? "white" : MoneroComponents.Style.dimmedFontColor + property int fontSize: 15 * scaleRatio property bool fontBold: true property var fontFamily: MoneroComponents.Style.fontRegular.name - property string borderColor: "#808080" + property string borderColor: MoneroComponents.Style.blackTheme ? "#808080" : "#B9B9B9" property int textMargin: { // left-right margins for a given cell if(isMobile){ @@ -68,20 +69,54 @@ Rectangle { return 64; } } - Image { + + Rectangle { + // navbar left side border + id: navBarLeft + property bool isActive: settingsStateView.state === "Wallet" Layout.preferredWidth: 2 Layout.preferredHeight: 32 - source: { - if(settingsStateView.state === "Wallet"){ - return "../../images/settings_navbar_side_active.png" - } else { - return "../../images/settings_navbar_side.png" + color: "transparent" + + Rectangle { + anchors.left: parent.left + anchors.verticalCenter: parent.verticalCenter + width: 1 + height: parent.height - 2 + color: grid.borderColor + } + + ColumnLayout { + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.right: parent.right + width: 1 + spacing: 0 + + Rectangle { + Layout.preferredHeight: 1 + Layout.preferredWidth: 1 + color: grid.borderColor + } + + Rectangle { + Layout.fillHeight: true + width: 1 + color: navBarLeft.isActive ? grid.borderColor : "transparent" + } + + Rectangle { + color: grid.borderColor + Layout.preferredHeight: 1 + Layout.preferredWidth: 1 } } } + ColumnLayout { // WALLET id: navWallet + property bool isActive: settingsStateView.state === "Wallet" Layout.preferredWidth: navWalletText.width + grid.textMargin Layout.minimumWidth: 72 * scaleRatio Layout.preferredHeight: 32 @@ -94,11 +129,11 @@ Rectangle { } Rectangle { - color: settingsStateView.state === "Wallet" ? grid.borderColor : "transparent" + color: parent.isActive ? grid.borderColor : "transparent" height: 30 * scaleRatio Layout.fillWidth: true - Text { + MoneroComponents.TextPlain { id: navWalletText anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter @@ -106,7 +141,8 @@ Rectangle { font.pixelSize: grid.fontSize font.bold: grid.fontBold text: qsTr("Wallet") + translationManager.emptyString - color: grid.fontColor + color: navWallet.isActive ? grid.fontColorActive : grid.fontColorInActive + themeTransition: false } MouseArea { @@ -132,6 +168,7 @@ Rectangle { ColumnLayout { // UI id: navUI + property bool isActive: settingsStateView.state === "UI" Layout.preferredWidth: navUIText.width + grid.textMargin Layout.preferredHeight: 32 Layout.minimumWidth: 72 * scaleRatio @@ -144,11 +181,11 @@ Rectangle { } Rectangle { - color: settingsStateView.state === "UI" ? grid.borderColor : "transparent" + color: parent.isActive ? grid.borderColor : "transparent" height: 30 * scaleRatio Layout.fillWidth: true - Text { + MoneroComponents.TextPlain { id: navUIText anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter @@ -156,7 +193,8 @@ Rectangle { font.pixelSize: grid.fontSize font.bold: grid.fontBold text: qsTr("Layout") + translationManager.emptyString - color: grid.fontColor + color: navUI.isActive ? grid.fontColorActive : grid.fontColorInActive + themeTransition: false } MouseArea { @@ -182,6 +220,7 @@ Rectangle { ColumnLayout { // NODE id: navNode + property bool isActive: settingsStateView.state === "Node" visible: appWindow.walletMode >= 2 Layout.preferredWidth: navNodeText.width + grid.textMargin Layout.preferredHeight: 32 @@ -195,11 +234,11 @@ Rectangle { } Rectangle { - color: settingsStateView.state === "Node" ? grid.borderColor : "transparent" + color: parent.isActive ? grid.borderColor : "transparent" height: 30 * scaleRatio Layout.fillWidth: true - Text { + MoneroComponents.TextPlain { id: navNodeText anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter @@ -207,7 +246,8 @@ Rectangle { font.pixelSize: grid.fontSize font.bold: grid.fontBold text: qsTr("Node") + translationManager.emptyString - color: grid.fontColor + color: navNode.isActive ? grid.fontColorActive : grid.fontColorInActive + themeTransition: false } MouseArea { @@ -234,6 +274,7 @@ Rectangle { ColumnLayout { // LOG id: navLog + property bool isActive: settingsStateView.state === "Log" visible: appWindow.walletMode >= 2 Layout.preferredWidth: navLogText.width + grid.textMargin Layout.preferredHeight: 32 @@ -247,11 +288,11 @@ Rectangle { } Rectangle { - color: settingsStateView.state === "Log" ? grid.borderColor : "transparent" + color: parent.isActive ? grid.borderColor : "transparent" height: 30 * scaleRatio Layout.fillWidth: true - Text { + MoneroComponents.TextPlain { id: navLogText anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter @@ -259,7 +300,8 @@ Rectangle { font.pixelSize: grid.fontSize font.bold: grid.fontBold text: qsTr("Log") + translationManager.emptyString - color: grid.fontColor + color: navLog.isActive ? grid.fontColorActive : grid.fontColorInActive + themeTransition: false } MouseArea { @@ -286,6 +328,7 @@ Rectangle { ColumnLayout { // INFO id: navInfo + property bool isActive: settingsStateView.state === "Info" Layout.preferredWidth: navInfoText.width + grid.textMargin Layout.preferredHeight: 32 Layout.minimumWidth: 72 * scaleRatio @@ -298,11 +341,11 @@ Rectangle { } Rectangle { - color: settingsStateView.state === "Info" ? grid.borderColor : "transparent" + color: parent.isActive ? grid.borderColor : "transparent" height: 30 * scaleRatio Layout.fillWidth: true - Text { + MoneroComponents.TextPlain { id: navInfoText anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter @@ -310,7 +353,8 @@ Rectangle { font.pixelSize: grid.fontSize font.bold: grid.fontBold text: qsTr("Info") + translationManager.emptyString - color: grid.fontColor + color: navInfo.isActive ? grid.fontColorActive : grid.fontColorInActive + themeTransition: false } MouseArea { @@ -328,19 +372,51 @@ Rectangle { Layout.fillWidth: true } } - Image { + + Rectangle { + // navbar right side border + id: navBarRight + property bool isActive: settingsStateView.state === "Info" Layout.preferredWidth: 2 Layout.preferredHeight: 32 - source: { - if(settingsStateView.state === "Info"){ - return "../../images/settings_navbar_side_active.png" - } else { - return "../../images/settings_navbar_side.png" - } - - } + color: "transparent" rotation: 180 + + Rectangle { + anchors.left: parent.left + anchors.verticalCenter: parent.verticalCenter + width: 1 + height: parent.height - 2 + color: grid.borderColor + } + + ColumnLayout { + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.right: parent.right + width: 1 + spacing: 0 + + Rectangle { + Layout.preferredHeight: 1 + Layout.preferredWidth: 1 + color: grid.borderColor + } + + Rectangle { + Layout.fillHeight: true + width: 1 + color: navBarRight.isActive ? grid.borderColor : "transparent" + } + + Rectangle { + color: grid.borderColor + Layout.preferredHeight: 1 + Layout.preferredWidth: 1 + } + } } + Rectangle { color: "transparent" Layout.fillWidth: true diff --git a/pages/settings/Settings.qml b/pages/settings/Settings.qml index 9f3d11cd..332fe25e 100644 --- a/pages/settings/Settings.qml +++ b/pages/settings/Settings.qml @@ -26,7 +26,7 @@ // 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 1.4 import QtQuick.Controls.Styles 1.4 import QtQuick.Layouts 1.1 diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml index 4e98463a..207e56cc 100644 --- a/pages/settings/SettingsInfo.qml +++ b/pages/settings/SettingsInfo.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 import QtQuick.Dialogs 1.2 @@ -71,6 +71,7 @@ Rectangle { MoneroComponents.TextBlock { font.pixelSize: 14 * scaleRatio + color: MoneroComponents.Style.dimmedFontColor text: Version.GUI_VERSION + " (Qt " + qtRuntimeVersion + ")" + translationManager.emptyString } @@ -100,6 +101,7 @@ Rectangle { MoneroComponents.TextBlock { font.pixelSize: 14 * scaleRatio + color: MoneroComponents.Style.dimmedFontColor text: Version.GUI_MONERO_VERSION + translationManager.emptyString } @@ -130,6 +132,7 @@ Rectangle { MoneroComponents.TextBlock { Layout.fillWidth: true Layout.maximumWidth: 360 * scaleRatio + color: MoneroComponents.Style.dimmedFontColor font.pixelSize: 14 * scaleRatio text: { var wallet_path = walletPath(); @@ -168,8 +171,8 @@ Rectangle { id: restoreHeightText Layout.fillWidth: true textFormat: Text.RichText + color: MoneroComponents.Style.dimmedFontColor font.pixelSize: 14 * scaleRatio - font.bold: true property var style: "" text: (currentWallet ? currentWallet.walletCreationHeight : "") + style + qsTr(" (Click to change)") + translationManager.emptyString onLinkActivated: { @@ -255,6 +258,7 @@ Rectangle { MoneroComponents.TextBlock { Layout.fillWidth: true + color: MoneroComponents.Style.dimmedFontColor font.pixelSize: 14 * scaleRatio text: walletLogPath } @@ -285,9 +289,41 @@ Rectangle { MoneroComponents.TextBlock { Layout.fillWidth: true + color: MoneroComponents.Style.dimmedFontColor font.pixelSize: 14 * scaleRatio text: walletModeString } + + Rectangle { + height: 1 + Layout.topMargin: 2 * scaleRatio + Layout.bottomMargin: 2 * scaleRatio + Layout.fillWidth: true + color: MoneroComponents.Style.dividerColor + opacity: MoneroComponents.Style.dividerOpacity + } + + Rectangle { + height: 1 + Layout.topMargin: 2 * scaleRatio + Layout.bottomMargin: 2 * scaleRatio + Layout.fillWidth: true + color: MoneroComponents.Style.dividerColor + opacity: MoneroComponents.Style.dividerOpacity + } + + MoneroComponents.TextBlock { + Layout.fillWidth: true + font.pixelSize: 14 * scaleRatio + text: qsTr("Graphics mode: ") + translationManager.emptyString + } + + MoneroComponents.TextBlock { + Layout.fillWidth: true + color: MoneroComponents.Style.dimmedFontColor + font.pixelSize: 14 * scaleRatio + text: isOpenGL ? "OpenGL" : "Low graphics mode" + } } // Copy info to clipboard @@ -311,6 +347,7 @@ Rectangle { data += "\nWallet log path: " + walletLogPath; data += "\nWallet mode: " + walletModeString; + data += "\nGraphics: " + isOpenGL ? "OpenGL" : "Low graphics mode"; console.log("Copied to clipboard"); clipboard.setText(data); diff --git a/pages/settings/SettingsLayout.qml b/pages/settings/SettingsLayout.qml index 7a294a2d..ab1919ee 100644 --- a/pages/settings/SettingsLayout.qml +++ b/pages/settings/SettingsLayout.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 import QtQuick.Dialogs 1.2 @@ -96,6 +96,16 @@ Rectangle { text: qsTr("Lock wallet on inactivity") + translationManager.emptyString } + MoneroComponents.CheckBox { + id: themeCheckbox + checked: !MoneroComponents.Style.blackTheme + text: qsTr("Light theme") + translationManager.emptyString + onClicked: { + MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme; + persistentSettings.blackTheme = MoneroComponents.Style.blackTheme; + } + } + ColumnLayout { visible: userInActivityCheckbox.checked Layout.fillWidth: true @@ -131,7 +141,7 @@ Rectangle { width: parent.availableWidth height: implicitHeight radius: 2 - color: MoneroComponents.Style.grey + color: MoneroComponents.Style.progressBarBackgroundColor Rectangle { width: parent.visualPosition * parent.width diff --git a/pages/settings/SettingsLog.qml b/pages/settings/SettingsLog.qml index 1933ae93..b9d35865 100644 --- a/pages/settings/SettingsLog.qml +++ b/pages/settings/SettingsLog.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 @@ -60,7 +60,7 @@ Rectangle { // opacity: MoneroComponents.Style.dividerOpacity // } - Text { + MoneroComponents.TextPlain { Layout.bottomMargin: 2 * scaleRatio color: MoneroComponents.Style.defaultFontColor font.pixelSize: 18 * scaleRatio @@ -102,10 +102,6 @@ Rectangle { } Layout.fillWidth: true Layout.preferredWidth: logColumn.width - shadowReleasedColor: "#FF4304" - shadowPressedColor: "#B32D00" - releasedColor: "#363636" - pressedColor: "#202020" z: parent.z + 1 } @@ -129,7 +125,7 @@ Rectangle { } } - Text { + MoneroComponents.TextPlain { Layout.topMargin: 10 * scaleRatio Layout.bottomMargin: 2 * scaleRatio color: MoneroComponents.Style.defaultFontColor @@ -146,7 +142,7 @@ Rectangle { Rectangle { anchors.fill: parent color: "transparent" - border.color: MoneroComponents.Style.inputBorderColorActive + border.color: MoneroComponents.Style.inputBorderColorInActive border.width: 1 radius: 4 } @@ -158,7 +154,7 @@ Rectangle { TextArea.flickable: TextArea { id : consoleArea color: MoneroComponents.Style.defaultFontColor - selectionColor: MoneroComponents.Style.dimmedFontColor + selectionColor: MoneroComponents.Style.textSelectionColor textFormat: TextEdit.RichText selectByMouse: true selectByKeyboard: true @@ -172,11 +168,11 @@ Rectangle { } function logMessage(msg){ msg = msg.trim(); - var color = "white"; + var color = MoneroComponents.Style.defaultFontColor; if(msg.toLowerCase().indexOf('error') >= 0){ - color = "red"; + color = MoneroComponents.Style.errorColor; } else if (msg.toLowerCase().indexOf('warning') >= 0){ - color = "yellow"; + color = MoneroComponents.Style.warningColor; } // format multi-lines @@ -196,7 +192,7 @@ Rectangle { timeZoneName: undefined }); - var _timestamp = log_color("[" + timestamp + "]", "#FFFFFF"); + var _timestamp = log_color("[" + timestamp + "]", MoneroComponents.Style.defaultFontColor); var _msg = log_color(msg, color); consoleArea.append(_timestamp + " " + _msg); diff --git a/pages/settings/SettingsNode.qml b/pages/settings/SettingsNode.qml index 81386674..8159ea87 100644 --- a/pages/settings/SettingsNode.qml +++ b/pages/settings/SettingsNode.qml @@ -26,10 +26,13 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 +import FontAwesome 1.0 + import "../../components" as MoneroComponents +import "../../components/effects" as MoneroEffects Rectangle{ color: "transparent" @@ -73,7 +76,7 @@ Rectangle{ Layout.fillHeight: true anchors.top: parent.top anchors.bottom: parent.bottom - color: "white" + color: MoneroComponents.Style.blackTheme ? "white" : "darkgrey" width: 2 } @@ -93,21 +96,27 @@ Rectangle{ anchors.leftMargin: 16 * scaleRatio anchors.verticalCenter: parent.verticalCenter - Image{ + MoneroEffects.ImageMask { height: 27 width: 27 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter - source: "../../images/settings_local.png" + fontAwesomeFallbackIcon: FontAwesome.shield + fontAwesomeFallbackSize: 26 + image: "qrc:///images/settings_local.svg" + + color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 } } - Text { + MoneroComponents.TextPlain { id: localNodeHeader anchors.left: localNodeIcon.right anchors.leftMargin: 14 * scaleRatio anchors.top: parent.top - color: "white" + color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 font.bold: true font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 16 * scaleRatio @@ -173,7 +182,7 @@ Rectangle{ Layout.fillHeight: true anchors.top: parent.top anchors.bottom: parent.bottom - color: "white" + color: MoneroComponents.Style.blackTheme ? "white" : "darkgrey" width: 2 } @@ -193,21 +202,26 @@ Rectangle{ anchors.leftMargin: 16 * scaleRatio anchors.verticalCenter: parent.verticalCenter - Image{ - height: 27 + MoneroEffects.ImageMask { + height: 29 width: 22 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter - source: "../../images/settings_remote.png" + fontAwesomeFallbackIcon: FontAwesome.cloudDownload + fontAwesomeFallbackSize: 26 + image: "qrc:///images/settings_remote.svg" + color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 } } - Text { + MoneroComponents.TextPlain { id: remoteNodeHeader anchors.left: remoteNodeIcon.right anchors.leftMargin: 14 * scaleRatio anchors.top: parent.top - color: "white" + color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 font.bold: true font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 16 * scaleRatio @@ -282,12 +296,6 @@ Rectangle{ MoneroComponents.RemoteNodeEdit { id: remoteNodeEdit Layout.minimumWidth: 100 * scaleRatio - - lineEditBackgroundColor: "transparent" - lineEditFontColor: "white" - lineEditFontBold: false - lineEditBorderColor: Qt.rgba(255, 255, 255, 0.35) - labelFontSize: 14 * scaleRatio placeholderFontSize: 15 * scaleRatio daemonAddrLabelText: qsTr("Address") @@ -436,14 +444,6 @@ Rectangle{ id: bootstrapNodeEdit Layout.minimumWidth: 100 * scaleRatio Layout.bottomMargin: 20 * scaleRatio - - lineEditBackgroundColor: "transparent" - lineEditFontColor: "white" - lineEditBorderColor: MoneroComponents.Style.inputBorderColorActive - placeholderFontSize: 15 * scaleRatio - labelFontSize: 14 * scaleRatio - lineEditFontBold: false - lineEditFontSize: 15 * scaleRatio daemonAddrLabelText: qsTr("Bootstrap Address") daemonPortLabelText: qsTr("Bootstrap Port") diff --git a/pages/settings/SettingsWallet.qml b/pages/settings/SettingsWallet.qml index cd1b17cc..92482ef5 100644 --- a/pages/settings/SettingsWallet.qml +++ b/pages/settings/SettingsWallet.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 import QtQuick.Dialogs 1.2 @@ -69,39 +69,27 @@ Rectangle { Layout.alignment: Qt.AlignVCenter spacing: 0 - Text { + MoneroComponents.TextPlain { Layout.fillWidth: true Layout.preferredHeight: 20 * scaleRatio Layout.topMargin: 8 * scaleRatio - color: "white" + color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 font.bold: true font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 16 * scaleRatio text: qsTr("Close this wallet") + translationManager.emptyString } - TextArea { - Layout.fillWidth: true + MoneroComponents.TextPlainArea { color: MoneroComponents.Style.dimmedFontColor - font.family: MoneroComponents.Style.fontRegular.name - font.pixelSize: 14 * scaleRatio - horizontalAlignment: TextInput.AlignLeft - selectByMouse: false - wrapMode: Text.WordWrap; - textMargin: 0 - leftPadding: 0 - topPadding: 0 - text: qsTr("Logs out of this wallet.") + translationManager.emptyString + colorBlackTheme: MoneroComponents.Style._b_dimmedFontColor + colorWhiteTheme: MoneroComponents.Style._w_dimmedFontColor width: parent.width - readOnly: true - - // @TODO: Legacy. Remove after Qt 5.8. - // https://stackoverflow.com/questions/41990013 - MouseArea { - anchors.fill: parent - enabled: false - } - } + Layout.fillWidth: true + horizontalAlignment: TextInput.AlignLeft + text: qsTr("Logs out of this wallet.") + translationManager.emptyString + } } MoneroComponents.StandardButton { @@ -138,39 +126,27 @@ Rectangle { Layout.alignment: Qt.AlignVCenter spacing: 0 - Text { + MoneroComponents.TextPlain { Layout.fillWidth: true Layout.preferredHeight: 20 * scaleRatio Layout.topMargin: 8 * scaleRatio - color: "white" + color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 font.bold: true font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 16 * scaleRatio text: qsTr("Create a view-only wallet") + translationManager.emptyString } - TextArea { - Layout.fillWidth: true + MoneroComponents.TextPlainArea { color: MoneroComponents.Style.dimmedFontColor - font.family: MoneroComponents.Style.fontRegular.name - font.pixelSize: 14 * scaleRatio - horizontalAlignment: TextInput.AlignLeft - selectByMouse: false - wrapMode: Text.WordWrap; - textMargin: 0 - leftPadding: 0 - topPadding: 0 - text: qsTr("Creates a new wallet that can only view and initiate transactions, but requires a spendable wallet to sign transactions before sending.") + translationManager.emptyString + colorBlackTheme: MoneroComponents.Style._b_dimmedFontColor + colorWhiteTheme: MoneroComponents.Style._w_dimmedFontColor width: parent.width - readOnly: true - - // @TODO: Legacy. Remove after Qt 5.8. - // https://stackoverflow.com/questions/41990013 - MouseArea { - anchors.fill: parent - enabled: false - } - } + Layout.fillWidth: true + horizontalAlignment: TextInput.AlignLeft + text: qsTr("Creates a new wallet that can only view and initiate transactions, but requires a spendable wallet to sign transactions before sending.") + translationManager.emptyString + } } MoneroComponents.StandardButton { @@ -215,39 +191,27 @@ Rectangle { Layout.alignment: Qt.AlignVCenter spacing: 0 - Text { + MoneroComponents.TextPlain { Layout.fillWidth: true Layout.preferredHeight: 20 * scaleRatio Layout.topMargin: 8 * scaleRatio - color: "white" + color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 font.bold: true font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 16 * scaleRatio text: qsTr("Show seed & keys") + translationManager.emptyString } - TextArea { - Layout.fillWidth: true + MoneroComponents.TextPlainArea { color: MoneroComponents.Style.dimmedFontColor - font.family: MoneroComponents.Style.fontRegular.name - font.pixelSize: 14 * scaleRatio - horizontalAlignment: TextInput.AlignLeft - selectByMouse: false - wrapMode: Text.WordWrap; - textMargin: 0 * scaleRatio - leftPadding: 0 - topPadding: 0 - text: qsTr("Store this information safely to recover your wallet in the future.") + translationManager.emptyString + colorBlackTheme: MoneroComponents.Style._b_dimmedFontColor + colorWhiteTheme: MoneroComponents.Style._w_dimmedFontColor width: parent.width - readOnly: true - - // @TODO: Legacy. Remove after Qt 5.8. - // https://stackoverflow.com/questions/41990013 - MouseArea { - anchors.fill: parent - enabled: false - } - } + Layout.fillWidth: true + horizontalAlignment: TextInput.AlignLeft + text: qsTr("Store this information safely to recover your wallet in the future.") + translationManager.emptyString + } } MoneroComponents.StandardButton { @@ -281,39 +245,27 @@ Rectangle { Layout.alignment: Qt.AlignVCenter spacing: 0 - Text { + MoneroComponents.TextPlain { Layout.fillWidth: true Layout.preferredHeight: 20 * scaleRatio Layout.topMargin: 8 * scaleRatio - color: "white" + color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 font.bold: true font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 16 * scaleRatio text: qsTr("Rescan wallet balance") + translationManager.emptyString } - TextArea { - Layout.fillWidth: true + MoneroComponents.TextPlainArea { color: MoneroComponents.Style.dimmedFontColor - font.family: MoneroComponents.Style.fontRegular.name - font.pixelSize: 14 * scaleRatio - horizontalAlignment: TextInput.AlignLeft - selectByMouse: false - wrapMode: Text.WordWrap; - textMargin: 0 - leftPadding: 0 - topPadding: 0 - text: qsTr("Use this feature if you think the shown balance is not accurate.") + translationManager.emptyString + colorBlackTheme: MoneroComponents.Style._b_dimmedFontColor + colorWhiteTheme: MoneroComponents.Style._w_dimmedFontColor width: parent.width - readOnly: true - - // @TODO: Legacy. Remove after Qt 5.8. - // https://stackoverflow.com/questions/41990013 - MouseArea { - anchors.fill: parent - enabled: false - } - } + Layout.fillWidth: true + horizontalAlignment: TextInput.AlignLeft + text: qsTr("Use this feature if you think the shown balance is not accurate.") + translationManager.emptyString + } } MoneroComponents.StandardButton { @@ -359,39 +311,27 @@ Rectangle { Layout.alignment: Qt.AlignVCenter spacing: 0 - Text { + MoneroComponents.TextPlain { Layout.fillWidth: true Layout.preferredHeight: 20 * scaleRatio Layout.topMargin: 8 * scaleRatio - color: "white" + color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 font.bold: true font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 16 * scaleRatio text: qsTr("Change wallet password") + translationManager.emptyString } - TextArea { - Layout.fillWidth: true + MoneroComponents.TextPlainArea { color: MoneroComponents.Style.dimmedFontColor - font.family: MoneroComponents.Style.fontRegular.name - font.pixelSize: 14 * scaleRatio - horizontalAlignment: TextInput.AlignLeft - selectByMouse: false - wrapMode: Text.WordWrap; - textMargin: 0 - leftPadding: 0 - topPadding: 0 - text: qsTr("Change the password of your wallet.") + translationManager.emptyString + colorBlackTheme: MoneroComponents.Style._b_dimmedFontColor + colorWhiteTheme: MoneroComponents.Style._w_dimmedFontColor width: parent.width - readOnly: true - - // @TODO: Legacy. Remove after Qt 5.8. - // https://stackoverflow.com/questions/41990013 - MouseArea { - anchors.fill: parent - enabled: false - } - } + Layout.fillWidth: true + horizontalAlignment: TextInput.AlignLeft + text: qsTr("Change the password of your wallet.") + translationManager.emptyString + } } MoneroComponents.StandardButton { diff --git a/qml.qrc b/qml.qrc index c3ec2223..cbd65822 100644 --- a/qml.qrc +++ b/qml.qrc @@ -30,6 +30,7 @@ components/TipItem.qml images/tip.png components/Scroll.qml + components/MenuButtonDivider.qml images/moneroIcon.png components/StandardDropdown.qml images/whiteDropIndicator.png @@ -41,10 +42,7 @@ images/prevMonth.png images/prevMonth@2x.png components/TitleBar.qml - images/collapseRightPanel.png images/expandRightPanel.png - images/dropdownCopy.png - images/dropdownCopy@2x.png images/moneroLogo2.png components/PrivacyLevelSmall.qml images/resize.png @@ -55,7 +53,6 @@ images/nextPage@2x.png images/openAccount.png images/recoverWallet.png - images/copyToClipboard.png lang/languages.xml lang/flags/bd.png lang/flags/bg.png @@ -103,6 +100,7 @@ pages/Receive.qml pages/TxKey.qml pages/SharedRingDB.qml + components/effects/ImageMask.qml components/IconButton.qml components/PassphraseDialog.qml components/PasswordDialog.qml @@ -122,24 +120,14 @@ components/RemoteNodeEdit.qml pages/Keys.qml images/appicon.ico - images/right.png - images/right@2x.png images/card-background.png images/card-background@2x.png - images/minimize.png - images/minimize@2x.png - images/fullscreen.png - images/fullscreen@2x.png - images/close.png - images/close@2x.png images/moneroLogo_white.png images/question.png images/question@2x.png - images/expand.png - images/expand@2x.png - images/titlebarGradient.jpg images/titlebarLogo.png images/titlebarLogo@2x.png + pages/merchant/MerchantTitlebar.qml images/menuButtonGradient.png fonts/Roboto-Medium.ttf fonts/Roboto-Regular.ttf @@ -154,16 +142,13 @@ components/InlineButton.qml images/lightning.png images/lightning@2x.png - images/leftPanelBg.jpg images/logout.png images/logout@2x.png images/moneroIcon-28x28.png images/moneroIcon-28x28@2x.png images/lightning-white.png images/lightning-white@2x.png - images/middlePanelBg.jpg components/InputMulti.qml - images/checkedIcon-black.png components/LineEditMulti.qml components/LabelButton.qml components/LabelSubheader.qml @@ -173,6 +158,8 @@ images/rightArrow@2x.png images/historyBorderRadius.png components/CheckBox2.qml + components/TextPlain.qml + components/TextPlainArea.qml js/TxUtils.js images/warning.png images/warning@2x.png @@ -181,8 +168,6 @@ js/Windows.js js/Utils.js components/RadioButton.qml - images/editIcon.png - images/editIcon@2x.png pages/settings/Settings.qml pages/settings/SettingsWallet.qml pages/settings/SettingsNode.qml @@ -190,12 +175,8 @@ pages/settings/SettingsLayout.qml pages/settings/SettingsInfo.qml pages/settings/Navbar.qml - images/settings_remote.png - images/settings_remote@2x.png - images/settings_navbar_side.png - images/settings_navbar_side_active.png - images/settings_local.png - images/settings_local@2x.png + images/settings_local.svg + images/settings_remote.svg components/WarningBox.qml images/miningxmr.png images/miningxmr@2x.png @@ -261,9 +242,26 @@ wizard/WizardOpenWallet1.qml images/arrow-right-in-circle.png images/arrow-right-in-circle@2x.png - images/rename.png - images/rename@2x.png - images/clipboard.png - images/clipboard@2x.png + images/themes/white/leftPanelBg.jpg + images/themes/white/middlePanelBg.jpg + images/right.svg + images/middlePanelShadow.png + images/themes/white/titlebarLogo@2x.png + images/themes/white/titlebarLogo.png + images/sidebar.svg + images/fullscreen.svg + images/close.svg + images/minimize.svg + images/themes/white/close.svg + images/themes/white/fullscreen.svg + images/themes/white/minimize.svg + images/themes/white/question.svg + images/themes/white/expand.svg + components/effects/ColorTransition.qml + components/effects/GradientBackground.qml + images/check-white.svg + images/copy.svg + images/edit.svg + images/arrow-right-in-circle-outline-medium-white.svg diff --git a/wizard/WizardAskPassword.qml b/wizard/WizardAskPassword.qml index 7455baf4..0b73ac7a 100644 --- a/wizard/WizardAskPassword.qml +++ b/wizard/WizardAskPassword.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -113,7 +113,7 @@ ColumnLayout { font.pixelSize: 13 * scaleRatio font.bold: true color: MoneroComponents.Style.defaultFontColor - height:18 * scaleRatio + height: 18 * scaleRatio passwordCharacter: "*" } @@ -123,7 +123,7 @@ ColumnLayout { Layout.preferredHeight: 8 radius: 8 * scaleRatio - color: "#333333" // progressbar bg + color: MoneroComponents.Style.progressBarBackgroundColor Rectangle { id: fillRect @@ -134,17 +134,16 @@ ColumnLayout { property int maxWidth: bar.width * scaleRatio width: (maxWidth * root.passwordFill) / 100 radius: 8 - color: "#FA6800" + color: MoneroComponents.Style.orange } Rectangle { - color:"#333" + color: MoneroComponents.Style.defaultFontColor anchors.bottom: parent.bottom anchors.left: parent.left anchors.leftMargin: 8 * scaleRatio } } - } ColumnLayout { @@ -179,21 +178,21 @@ ColumnLayout { font.family: MoneroComponents.Style.fontLight.name font.pixelSize: 15 * scaleRatio color: MoneroComponents.Style.defaultFontColor - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor text: walletOptionsPassword background: Rectangle { radius: 4 - border.color: Qt.rgba(255, 255, 255, 0.35) + border.color: MoneroComponents.Style.inputBorderColorActive border.width: 1 color: "transparent" Image { width: 12 * scaleRatio height: 16 * scaleRatio - source: "../images/lockIcon.png" + source: "qrc:///images/lockIcon.png" anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 20 @@ -234,21 +233,21 @@ ColumnLayout { font.family: MoneroComponents.Style.fontLight.name font.pixelSize: 15 * scaleRatio color: MoneroComponents.Style.defaultFontColor - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor text: walletOptionsPassword background: Rectangle { radius: 4 - border.color: Qt.rgba(255, 255, 255, 0.35) + border.color: MoneroComponents.Style.inputBorderColorActive border.width: 1 color: "transparent" Image { width: 12 height: 16 - source: "../images/lockIcon.png" + source: "qrc:///images/lockIcon.png" anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 20 diff --git a/wizard/WizardController.qml b/wizard/WizardController.qml index 1bb76a25..76b9d923 100644 --- a/wizard/WizardController.qml +++ b/wizard/WizardController.qml @@ -27,18 +27,20 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import QtQml 2.0 -import QtQuick 2.7 +import QtQuick 2.9 import QtQuick.Controls 2.0 import QtQuick.Controls 1.4 -import QtQuick.Layouts 1.1 -import QtQuick.Dialogs 1.2 import QtGraphicalEffects 1.0 +import QtQuick.Controls.Styles 1.4 +import QtQuick.Layouts 1.2 +import QtQuick.Dialogs 1.2 import moneroComponents.Wallet 1.0 import "../js/Wizard.js" as Wizard import "../js/Windows.js" as Windows import "../js/Utils.js" as Utils import "../components" as MoneroComponents +import "../components/effects/" as MoneroEffects import "../pages" Rectangle { @@ -119,11 +121,6 @@ Rectangle { } } - Image { - opacity: 1.0 - anchors.fill: parent - source: "../images/middlePanelBg.jpg" - } Rectangle { id: wizardStateView @@ -247,6 +244,19 @@ Rectangle { } ] + MoneroEffects.GradientBackground { + anchors.fill: parent + fallBackColor: MoneroComponents.Style.middlePanelBackgroundColor + initialStartColor: MoneroComponents.Style.wizardBackgroundGradientStart + initialStopColor: MoneroComponents.Style.middlePanelBackgroundGradientStop + blackColorStart: MoneroComponents.Style._b_wizardBackgroundGradientStart + blackColorStop: MoneroComponents.Style._b_middlePanelBackgroundGradientStop + whiteColorStart: MoneroComponents.Style._w_wizardBackgroundGradientStart + whiteColorStop: MoneroComponents.Style._w_middlePanelBackgroundGradientStop + start: Qt.point(0, 0) + end: Qt.point(height, width) + } + Flickable { id: wizardFlickable anchors.fill: parent diff --git a/wizard/WizardCreateDevice1.qml b/wizard/WizardCreateDevice1.qml index ce2a6c4a..b8ec9f7c 100644 --- a/wizard/WizardCreateDevice1.qml +++ b/wizard/WizardCreateDevice1.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -156,8 +156,6 @@ Rectangle { dataModel: deviceNameModel Layout.fillWidth: true Layout.topMargin: 6 * scaleRatio - releasedColor: "#363636" - pressedColor: "#202020" } } } @@ -171,8 +169,8 @@ Rectangle { color: MoneroComponents.Style.errorColor font.pixelSize: 16 * scaleRatio - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor selectByMouse: true wrapMode: Text.WordWrap diff --git a/wizard/WizardCreateWallet1.qml b/wizard/WizardCreateWallet1.qml index 4906f954..c67f2101 100644 --- a/wizard/WizardCreateWallet1.qml +++ b/wizard/WizardCreateWallet1.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 diff --git a/wizard/WizardCreateWallet2.qml b/wizard/WizardCreateWallet2.qml index 6a3d3284..f3dd60bc 100644 --- a/wizard/WizardCreateWallet2.qml +++ b/wizard/WizardCreateWallet2.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 diff --git a/wizard/WizardCreateWallet3.qml b/wizard/WizardCreateWallet3.qml index 0c3a8e99..f6113ecf 100644 --- a/wizard/WizardCreateWallet3.qml +++ b/wizard/WizardCreateWallet3.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 diff --git a/wizard/WizardCreateWallet4.qml b/wizard/WizardCreateWallet4.qml index 15269703..3d0f1958 100644 --- a/wizard/WizardCreateWallet4.qml +++ b/wizard/WizardCreateWallet4.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 diff --git a/wizard/WizardDaemonSettings.qml b/wizard/WizardDaemonSettings.qml index 3d672747..74290aac 100644 --- a/wizard/WizardDaemonSettings.qml +++ b/wizard/WizardDaemonSettings.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -105,8 +105,8 @@ ColumnLayout { } } - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor selectByMouse: true wrapMode: Text.WordWrap @@ -133,8 +133,8 @@ ColumnLayout { } } - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor selectByMouse: true wrapMode: Text.WordWrap @@ -153,16 +153,8 @@ ColumnLayout { MoneroComponents.RemoteNodeEdit { id: bootstrapNodeEdit Layout.minimumWidth: 300 * scaleRatio - //labelText: qsTr("Bootstrap node (leave blank if not wanted)") + translationManager.emptyString - lineEditBackgroundColor: "transparent" - lineEditFontColor: MoneroComponents.Style.defaultFontColor - lineEditFontBold: false - lineEditBorderColor: Qt.rgba(255, 255, 255, 0.35) - labelFontSize: 14 * scaleRatio - placeholderFontSize: 15 * scaleRatio - daemonAddrText: persistentSettings.bootstrapNodeAddress.split(":")[0].trim() daemonPortText: { var node_split = persistentSettings.bootstrapNodeAddress.split(":"); @@ -203,13 +195,6 @@ ColumnLayout { property var rna: persistentSettings.remoteNodeAddress daemonAddrText: rna.search(":") != -1 ? rna.split(":")[0].trim() : "" daemonPortText: rna.search(":") != -1 ? (rna.split(":")[1].trim() == "") ? appWindow.getDefaultDaemonRpcPort(persistentSettings.nettype) : persistentSettings.remoteNodeAddress.split(":")[1] : "" - - lineEditBackgroundColor: "transparent" - lineEditFontColor: MoneroComponents.Style.defaultFontColor - lineEditFontBold: false - lineEditBorderColor: Qt.rgba(255, 255, 255, 0.35) - labelFontSize: 14 * scaleRatio - placeholderFontSize: 15 * scaleRatio } } } diff --git a/wizard/WizardHeader.qml b/wizard/WizardHeader.qml index 7c27413f..6e984812 100644 --- a/wizard/WizardHeader.qml +++ b/wizard/WizardHeader.qml @@ -30,7 +30,7 @@ import "../js/Wizard.js" as Wizard import "../components" import "../components" as MoneroComponents -import QtQuick 2.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -46,6 +46,7 @@ ColumnLayout { Layout.fillWidth: true font.family: MoneroComponents.Style.fontRegular.name color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 font.pixelSize: { if(wizardController.layoutScale === 2 ){ return 34 * scaleRatio; @@ -54,8 +55,8 @@ ColumnLayout { } } - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor selectByMouse: true wrapMode: Text.WordWrap @@ -83,8 +84,8 @@ ColumnLayout { } } - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor selectByMouse: true wrapMode: Text.WordWrap diff --git a/wizard/WizardHome.qml b/wizard/WizardHome.qml index 655a53e2..3243a5eb 100644 --- a/wizard/WizardHome.qml +++ b/wizard/WizardHome.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -64,7 +64,7 @@ Rectangle { WizardMenuItem { headerText: qsTr("Create a new wallet") + translationManager.emptyString bodyText: qsTr("Choose this option if this is your first time using Monero.") + translationManager.emptyString - imageIcon: "../images/create-wallet.png" + imageIcon: "qrc:///images/create-wallet.png" onMenuClicked: { wizardController.restart(); @@ -85,7 +85,7 @@ Rectangle { WizardMenuItem { headerText: qsTr("Create a new wallet from hardware") + translationManager.emptyString bodyText: qsTr("Connect your hardware wallet to create a new Monero wallet.") + translationManager.emptyString - imageIcon: "../images/restore-wallet-from-hardware.png" + imageIcon: "qrc:///images/restore-wallet-from-hardware.png" onMenuClicked: { wizardController.restart(); @@ -105,7 +105,7 @@ Rectangle { WizardMenuItem { headerText: qsTr("Open a wallet from file") + translationManager.emptyString bodyText: qsTr("Import an existing .keys wallet file from your computer.") + translationManager.emptyString - imageIcon: "../images/open-wallet-from-file.png" + imageIcon: "qrc:///images/open-wallet-from-file.png" onMenuClicked: { wizardStateView.state = "wizardOpenWallet1" @@ -124,7 +124,7 @@ Rectangle { WizardMenuItem { headerText: qsTr("Restore wallet from keys or mnemonic seed") + translationManager.emptyString bodyText: qsTr("Enter your private keys or 25-word mnemonic seed to restore your wallet.") + translationManager.emptyString - imageIcon: "../images/restore-wallet.png" + imageIcon: "qrc:///images/restore-wallet.png" onMenuClicked: { wizardController.restart(); @@ -185,10 +185,6 @@ Rectangle { dataModel: networkTypeModel Layout.fillWidth: true Layout.topMargin: 41 - shadowReleasedColor: "#FF4304" - shadowPressedColor: "#B32D00" - releasedColor: "#363636" - pressedColor: "#202020" onChanged: { var item = dataModel.get(currentIndex).nettype.toLowerCase(); diff --git a/wizard/WizardLang.qml b/wizard/WizardLang.qml index 44bcb187..ad42bd71 100644 --- a/wizard/WizardLang.qml +++ b/wizard/WizardLang.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.2 import QtQuick.XmlListModel 2.0 @@ -34,6 +34,7 @@ import QtQuick.Controls 2.0 import "../js/Wizard.js" as Wizard import "../components" as MoneroComponents +import "../components/effects/" as MoneroEffects Rectangle { id: langScreen @@ -49,9 +50,17 @@ Rectangle { } } - Image { + MoneroEffects.GradientBackground { anchors.fill: parent - source: "../images/middlePanelBg.jpg" + fallBackColor: MoneroComponents.Style.middlePanelBackgroundColor + initialStartColor: MoneroComponents.Style.wizardBackgroundGradientStart + initialStopColor: MoneroComponents.Style.middlePanelBackgroundGradientStop + blackColorStart: MoneroComponents.Style._b_wizardBackgroundGradientStart + blackColorStop: MoneroComponents.Style._b_middlePanelBackgroundGradientStop + whiteColorStart: MoneroComponents.Style._w_wizardBackgroundGradientStart + whiteColorStop: MoneroComponents.Style._w_middlePanelBackgroundGradientStop + start: Qt.point(0, 0) + end: Qt.point(height, width) } ColumnLayout { @@ -73,8 +82,8 @@ Rectangle { } } - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor selectByMouse: true wrapMode: Text.WordWrap @@ -101,8 +110,8 @@ Rectangle { } } - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor selectByMouse: true wrapMode: Text.WordWrap @@ -159,7 +168,7 @@ Rectangle { height: parent.height width: langText.width + 22 * scaleRatio - Text { + MoneroComponents.TextPlain { id: langText font.bold: true font.pixelSize: 14 * scaleRatio diff --git a/wizard/WizardLanguage.qml b/wizard/WizardLanguage.qml index 49319a15..f6db921d 100644 --- a/wizard/WizardLanguage.qml +++ b/wizard/WizardLanguage.qml @@ -26,25 +26,21 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 import "../components" import "../components" as MoneroComponents +import "../components/effects/" as MoneroEffects import "../version.js" as Version Rectangle { Layout.fillWidth: true - color: "black" + color: "transparent" property string viewName: "wizardLanguage" - Image { - anchors.fill: parent - source: "../images/middlePanelBg.jpg" - } - ColumnLayout { id: root anchors.top: parent.top @@ -89,7 +85,7 @@ Rectangle { Image { id: globe - source: "../images/world-flags-globe.png" + source: "qrc:///images/world-flags-globe.png" opacity: 0 property bool small: appWindow.width < 700 ? true : false property int size: { @@ -190,7 +186,7 @@ Rectangle { } } - Text { + MoneroComponents.TextPlain { id: versionText opacity: 0 anchors.horizontalCenter: parent.horizontalCenter diff --git a/wizard/WizardMenuItem.qml b/wizard/WizardMenuItem.qml index 1ca2e1fb..1649c8aa 100644 --- a/wizard/WizardMenuItem.qml +++ b/wizard/WizardMenuItem.qml @@ -26,9 +26,10 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.2 +import QtGraphicalEffects 1.0 import QtQuick.Controls 2.0 import "../components" as MoneroComponents @@ -49,11 +50,24 @@ RowLayout { Image { id: icon + visible: !isOpenGL || MoneroComponents.Style.blackTheme anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter source: "" } + DropShadow { + visible: isOpenGL && !MoneroComponents.Style.blackTheme + anchors.fill: icon + horizontalOffset: 3 + verticalOffset: 3 + radius: 10.0 + samples: 15 + color: "#1E000000" + source: icon + cached: true + } + MouseArea { cursorShape: Qt.PointingHandCursor anchors.fill: parent @@ -68,12 +82,13 @@ RowLayout { Layout.fillWidth: true spacing: 0 - Text { + MoneroComponents.TextPlain { id: header Layout.fillWidth: true leftPadding: parent.leftPadding topPadding: 0 color: MoneroComponents.Style.defaultFontColor + opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8 font.bold: true font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: { @@ -93,7 +108,7 @@ RowLayout { } } - Text { + MoneroComponents.TextPlain { id: body Layout.fillWidth: true color: MoneroComponents.Style.dimmedFontColor @@ -106,7 +121,8 @@ RowLayout { } } topPadding: 4 * scaleRatio - wrapMode: Text.WordWrap; + wrapMode: Text.WordWrap + themeTransition: false MouseArea { cursorShape: Qt.PointingHandCursor diff --git a/wizard/WizardModeBootstrap.qml b/wizard/WizardModeBootstrap.qml index 5f9c70b9..11c07ae8 100644 --- a/wizard/WizardModeBootstrap.qml +++ b/wizard/WizardModeBootstrap.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -66,7 +66,7 @@ Rectangle { Layout.topMargin: 10 * scaleRatio Layout.fillWidth: true - Text { + MoneroComponents.TextPlain { text: qsTr("This mode will use a remote node whilst also syncing the blockchain. This is different from the first menu option (Simple mode), since it will only use the remote node until the blockchain is fully synced locally. It is a reasonable tradeoff for most people who care about privacy but also want the convenience of an automatic fallback option.") + translationManager.emptyString wrapMode: Text.Wrap Layout.topMargin: 14 * scaleRatio @@ -77,7 +77,7 @@ Rectangle { color: MoneroComponents.Style.lightGreyFontColor } - Text { + MoneroComponents.TextPlain { text: qsTr("Temporary use of remote nodes is useful in order to use Monero immediately (hence the name bootstrap), however be aware that when using remote nodes (including with the bootstrap setting), nodes could track your IP address, track your \"restore height\" and associated block request data, and send you inaccurate information to learn more about transactions you make.") + translationManager.emptyString wrapMode: Text.Wrap Layout.topMargin: 8 * scaleRatio @@ -94,7 +94,7 @@ Rectangle { text: qsTr("Remain aware of these limitations. Users who prioritize privacy and decentralization must use a full node instead.") + translationManager.emptyString } - Text { + MoneroComponents.TextPlain { text: qsTr("For enhanced node performance you may specify your region:") + translationManager.emptyString wrapMode: Text.Wrap Layout.topMargin: 8 * scaleRatio @@ -117,10 +117,6 @@ Rectangle { id: regionDropdown Layout.fillWidth: true dataModel: regionModel - shadowReleasedColor: "#FF4304" - shadowPressedColor: "#B32D00" - releasedColor: "#363636" - pressedColor: "#202020" currentIndex: 0 onChanged: { diff --git a/wizard/WizardModeRemoteNodeWarning.qml b/wizard/WizardModeRemoteNodeWarning.qml index b578d480..2f84b227 100644 --- a/wizard/WizardModeRemoteNodeWarning.qml +++ b/wizard/WizardModeRemoteNodeWarning.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -66,8 +66,10 @@ Rectangle { Layout.topMargin: 10 * scaleRatio Layout.fillWidth: true - Text { + MoneroComponents.TextPlain { text: qsTr("This mode is ideal for managing small amounts of Monero. You have access to basic features for making and managing transactions. It will automatically connect to the Monero network so you can start using Monero immediately.") + translationManager.emptyString + themeTransitionBlackColor: MoneroComponents.Style._b_lightGreyFontColor + themeTransitionWhiteColor: MoneroComponents.Style._w_lightGreyFontColor wrapMode: Text.Wrap Layout.topMargin: 14 * scaleRatio Layout.fillWidth: true @@ -77,8 +79,10 @@ Rectangle { color: MoneroComponents.Style.lightGreyFontColor } - Text { + MoneroComponents.TextPlain { text: qsTr("Remote nodes are useful if you are not able/don't want to download the whole blockchain, but be advised that malicious remote nodes could compromise some privacy. They could track your IP address, track your \"restore height\" and associated block request data, and send you inaccurate information to learn more about transactions you make.") + translationManager.emptyString + themeTransitionBlackColor: MoneroComponents.Style._b_lightGreyFontColor + themeTransitionWhiteColor: MoneroComponents.Style._w_lightGreyFontColor wrapMode: Text.Wrap Layout.topMargin: 8 * scaleRatio Layout.fillWidth: true @@ -88,13 +92,13 @@ Rectangle { color: MoneroComponents.Style.lightGreyFontColor } - MoneroComponents.WarningBox{ + MoneroComponents.WarningBox { Layout.topMargin: 14 * scaleRatio Layout.bottomMargin: 6 * scaleRatio text: qsTr("Remain aware of these limitations. Users who prioritize privacy and decentralization must use a full node instead.") + translationManager.emptyString } - Text { + MoneroComponents.TextPlain { text: qsTr("For enhanced node performance you may specify your region:") + translationManager.emptyString wrapMode: Text.Wrap Layout.topMargin: 8 * scaleRatio @@ -117,10 +121,6 @@ Rectangle { id: regionDropdown Layout.fillWidth: true dataModel: regionModel - shadowReleasedColor: "#FF4304" - shadowPressedColor: "#B32D00" - releasedColor: "#363636" - pressedColor: "#202020" currentIndex: 0 onChanged: { diff --git a/wizard/WizardModeSelection.qml b/wizard/WizardModeSelection.qml index dddc4b9b..4f6176f4 100644 --- a/wizard/WizardModeSelection.qml +++ b/wizard/WizardModeSelection.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -72,7 +72,7 @@ Rectangle { } } - imageIcon: "../images/remote-node.png" + imageIcon: "qrc:///images/remote-node.png" onMenuClicked: { if(appWindow.persistentSettings.nettype == 0){ @@ -101,7 +101,7 @@ Rectangle { return "Available on mainnet."; } } - imageIcon: "../images/local-node.png" + imageIcon: "qrc:///images/local-node.png" onMenuClicked: { if(appWindow.persistentSettings.nettype == 0){ @@ -123,7 +123,7 @@ Rectangle { WizardMenuItem { headerText: qsTr("Advanced mode") + translationManager.emptyString bodyText: qsTr("Includes extra features like mining and message verification. The blockchain is downloaded to your computer.") + translationManager.emptyString - imageIcon: "../images/local-node-full.png" + imageIcon: "qrc:///images/local-node-full.png" onMenuClicked: { appWindow.changeWalletMode(2); diff --git a/wizard/WizardNav.qml b/wizard/WizardNav.qml index ac84ee36..f30098b8 100644 --- a/wizard/WizardNav.qml +++ b/wizard/WizardNav.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 diff --git a/wizard/WizardNavProgressDot.qml b/wizard/WizardNavProgressDot.qml index 464429d5..3444a373 100644 --- a/wizard/WizardNavProgressDot.qml +++ b/wizard/WizardNavProgressDot.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -37,7 +37,7 @@ Rectangle { Layout.preferredWidth: 30 * scaleRatio Layout.fillHeight: true property string activeColor: MoneroComponents.Style.defaultFontColor - property string inactiveColor: "#333333" + property string inactiveColor: MoneroComponents.Style.progressBarBackgroundColor color: "transparent" Rectangle { diff --git a/wizard/WizardOpenWallet1.qml b/wizard/WizardOpenWallet1.qml index d0b8d092..625a6cec 100644 --- a/wizard/WizardOpenWallet1.qml +++ b/wizard/WizardOpenWallet1.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -92,7 +92,7 @@ Rectangle { columnSpacing: 20 * scaleRatio columns: 2 - Text { + MoneroComponents.TextPlain { text: qsTr("Most recent wallets") + translationManager.emptyString font.family: MoneroComponents.Style.fontLight.name font.pixelSize: 16 * scaleRatio @@ -145,7 +145,7 @@ Rectangle { anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter fillMode: Image.PreserveAspectFit - source: "../images/open-wallet-from-file.png" + source: "qrc:///images/open-wallet-from-file.png" } } @@ -161,8 +161,8 @@ Rectangle { color: MoneroComponents.Style.defaultFontColor font.pixelSize: 18 * scaleRatio - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor selectByMouse: false wrapMode: Text.WordWrap diff --git a/wizard/WizardRestoreWallet1.qml b/wizard/WizardRestoreWallet1.qml index 7919cb32..3dc356c1 100644 --- a/wizard/WizardRestoreWallet1.qml +++ b/wizard/WizardRestoreWallet1.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 @@ -183,13 +183,13 @@ Rectangle { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 16 * scaleRatio - selectionColor: MoneroComponents.Style.dimmedFontColor - selectedTextColor: MoneroComponents.Style.defaultFontColor + selectionColor: MoneroComponents.Style.textSelectionColor + selectedTextColor: MoneroComponents.Style.textSelectedColor wrapMode: TextInput.Wrap selectByMouse: true - Text { + MoneroComponents.TextPlain { id: memoTextPlaceholder opacity: 0.35 anchors.fill:parent diff --git a/wizard/WizardRestoreWallet2.qml b/wizard/WizardRestoreWallet2.qml index bf569cdf..80784665 100644 --- a/wizard/WizardRestoreWallet2.qml +++ b/wizard/WizardRestoreWallet2.qml @@ -29,7 +29,7 @@ import "../js/Wizard.js" as Wizard import "../components" as MoneroComponents -import QtQuick 2.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 diff --git a/wizard/WizardRestoreWallet3.qml b/wizard/WizardRestoreWallet3.qml index 26c10c6d..6acb0249 100644 --- a/wizard/WizardRestoreWallet3.qml +++ b/wizard/WizardRestoreWallet3.qml @@ -29,7 +29,7 @@ import "../js/Wizard.js" as Wizard import "../components" as MoneroComponents -import QtQuick 2.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 diff --git a/wizard/WizardRestoreWallet4.qml b/wizard/WizardRestoreWallet4.qml index d141bf04..136c6ddd 100644 --- a/wizard/WizardRestoreWallet4.qml +++ b/wizard/WizardRestoreWallet4.qml @@ -28,7 +28,7 @@ import "../components" as MoneroComponents -import QtQuick 2.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 diff --git a/wizard/WizardSummary.qml b/wizard/WizardSummary.qml index e3e576e4..8ee5ae77 100644 --- a/wizard/WizardSummary.qml +++ b/wizard/WizardSummary.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 import moneroComponents.NetworkType 1.0 diff --git a/wizard/WizardSummaryItem.qml b/wizard/WizardSummaryItem.qml index 4da30a40..4e3f3510 100644 --- a/wizard/WizardSummaryItem.qml +++ b/wizard/WizardSummaryItem.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 diff --git a/wizard/WizardWalletInput.qml b/wizard/WizardWalletInput.qml index 895dec00..d67dfcd1 100644 --- a/wizard/WizardWalletInput.qml +++ b/wizard/WizardWalletInput.qml @@ -26,7 +26,7 @@ // 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.7 +import QtQuick 2.9 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0