aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authordsc <xmrdsc@protonmail.com>2018-12-08 16:55:29 +0100
committerskftn <sa.ferdinand@gmail.com>2018-12-29 18:08:21 +0100
commit85cd428dcb46763e626c1c9bae1c27b44d617d4f (patch)
treed420b15fd9e02f04c60a37b86dc688a421ad0cdf /components
parent48a267f631c18d3159cccfc551d72cc5aeb0df03 (diff)
downloadmonzero-gui-85cd428dcb46763e626c1c9bae1c27b44d617d4f.tar.gz
monzero-gui-85cd428dcb46763e626c1c9bae1c27b44d617d4f.tar.xz
monzero-gui-85cd428dcb46763e626c1c9bae1c27b44d617d4f.zip
Merchant page
Diffstat (limited to 'components')
-rw-r--r--components/Style.qml1
-rw-r--r--components/TitleBar.qml58
2 files changed, 50 insertions, 9 deletions
diff --git a/components/Style.qml b/components/Style.qml
index 9c6fded4..b5926dab 100644
--- a/components/Style.qml
+++ b/components/Style.qml
@@ -12,6 +12,7 @@ QtObject {
property string orange: "#FF6C3C"
property string white: "#FFFFFF"
property string green: "#2EB358"
+ property string moneroGrey: "#4C4C4C"
property string defaultFontColor: "white"
property string dimmedFontColor: "#BBBBBB"
diff --git a/components/TitleBar.qml b/components/TitleBar.qml
index a759adce..6c9bfb1e 100644
--- a/components/TitleBar.qml
+++ b/components/TitleBar.qml
@@ -47,7 +47,7 @@ Rectangle {
property string title
property int mouseX: 0
property bool containsMouse: false
- property alias basicButtonVisible: goToBasicVersionButton.visible
+ property bool basicButtonVisible: false
property bool customDecorations: persistentSettings.customDecorations
property bool showWhatIsButton: true
property bool showMinimizeButton: false
@@ -56,6 +56,9 @@ Rectangle {
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"
signal closeClicked
signal maximizeClicked
@@ -70,11 +73,19 @@ Rectangle {
Image {
id: titleBarGradientImage
+ visible: !titleBar.orange
anchors.fill: parent
height: titleBar.height
width: titleBar.width
source: "../images/titlebarGradient.jpg"
}
+
+ Rectangle {
+ visible: titleBar.orange
+ width: parent.width
+ height: parent.height
+ color: "#ff6600"
+ }
}
Item {
@@ -82,11 +93,11 @@ Rectangle {
width: 125
height: parent.height
anchors.centerIn: parent
- visible: customDecorations && showMoneroLogo
+ visible: customDecorations
z: parent.z + 1
Image {
- visible: !isMobile
+ visible: !isMobile && showMoneroLogo && !titleBar.orange
anchors.left: parent.left
anchors.top: parent.top
anchors.topMargin: 11
@@ -94,6 +105,16 @@ Rectangle {
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 {
@@ -115,7 +136,7 @@ Rectangle {
color: "transparent"
height: titleBar.height
width: height
- visible: isMobile
+ visible: !titleBar.orange && titleBar.basicButtonVisible
z: parent.z + 2
Image {
@@ -130,7 +151,7 @@ Rectangle {
hoverEnabled: true
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
- onEntered: goToBasicVersionButton.color = "#262626";
+ onEntered: { goToBasicVersionButton.color = titleBar.orange ? titleBar.buttonHoverColorOrange : titleBar.buttonHoverColor }
onExited: goToBasicVersionButton.color = "transparent";
onClicked: {
releaseFocus()
@@ -166,7 +187,13 @@ Rectangle {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
- onEntered: minimizeButton.color = "#262626";
+ onEntered: {
+ if(titleBar.orange){
+ minimizeButton.color = titleBar.buttonHoverColorOrange;
+ } else {
+ minimizeButton.color = titleBar.buttonHoverColor;
+ }
+ }
onExited: minimizeButton.color = "transparent";
onClicked: minimizeClicked();
}
@@ -193,7 +220,13 @@ Rectangle {
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
- onEntered: maximizeButton.color = "#262626";
+ onEntered: {
+ if(titleBar.orange){
+ maximizeButton.color = titleBar.buttonHoverColorOrange;
+ } else {
+ maximizeButton.color = titleBar.buttonHoverColor;
+ }
+ }
onExited: maximizeButton.color = "transparent";
onClicked: maximizeClicked();
}
@@ -219,7 +252,13 @@ Rectangle {
onClicked: closeClicked();
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
- onEntered: closeButton.color = "#262626";
+ onEntered: {
+ if(titleBar.orange){
+ closeButton.color = titleBar.buttonHoverColorOrange;
+ } else {
+ closeButton.color = titleBar.buttonHoverColor;
+ }
+ }
onExited: closeButton.color = "transparent";
}
}
@@ -227,6 +266,7 @@ Rectangle {
// window borders
Rectangle {
+ visible: !titleBar.orange
anchors.bottom: parent.bottom
anchors.right: parent.right
anchors.left: parent.left
@@ -236,10 +276,10 @@ Rectangle {
}
Rectangle {
+ visible: titleBar.small && !titleBar.orange
anchors.top: parent.top
anchors.right: parent.right
anchors.left: parent.left
- visible: titleBar.small
height: 1
color: "#2F2F2F"
z: parent.z + 1