diff options
| author | dsc <xmrdsc@protonmail.com> | 2019-04-11 03:17:29 +0200 |
|---|---|---|
| committer | dsc <xmrdsc@protonmail.com> | 2019-04-24 05:37:35 +0200 |
| commit | 42f7afaefddbf5a7929ddf88dbe7b27e7f40a669 (patch) | |
| tree | cbbe7fc3e3950354f7a4dcb925b6e1e9dc62efd8 /MiddlePanel.qml | |
| parent | 358e1d23facbd10fefbb2bf04c45b98f0c728ad0 (diff) | |
| download | monzero-gui-42f7afaefddbf5a7929ddf88dbe7b27e7f40a669.tar.gz monzero-gui-42f7afaefddbf5a7929ddf88dbe7b27e7f40a669.tar.xz monzero-gui-42f7afaefddbf5a7929ddf88dbe7b27e7f40a669.zip | |
White theme
Diffstat (limited to 'MiddlePanel.qml')
| -rw-r--r-- | MiddlePanel.qml | 40 |
1 files changed, 32 insertions, 8 deletions
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 */ |
