aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2017-12-11 00:31:52 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-29 23:04:02 +0100
commite3390340821e0a367559f7a45408cec7771ef6d1 (patch)
tree6bd273dc5f7dac5ca560be3649114f12abe23d9e
parent5a36aa7fce21a72328f2d615e6cb339e4c51a755 (diff)
downloadmonzero-gui-e3390340821e0a367559f7a45408cec7771ef6d1.tar.gz
monzero-gui-e3390340821e0a367559f7a45408cec7771ef6d1.tar.xz
monzero-gui-e3390340821e0a367559f7a45408cec7771ef6d1.zip
Added better gradient for MenuButton, implemented 'arrow.png' for checked menu buttons and replaced leftPanel background gradient
-rw-r--r--components/MenuButton.qml23
-rw-r--r--images/arrow-right-medium-white.pngbin0 -> 191 bytes
-rw-r--r--images/leftPanelBg.jpgbin4637 -> 18457 bytes
-rw-r--r--images/menuButtonGradient.pngbin244 -> 14654 bytes
-rw-r--r--qml.qrc1
5 files changed, 12 insertions, 12 deletions
diff --git a/components/MenuButton.qml b/components/MenuButton.qml
index f3ba56f6..ef6da091 100644
--- a/components/MenuButton.qml
+++ b/components/MenuButton.qml
@@ -84,19 +84,17 @@ Rectangle {
Rectangle {
id: dot
anchors.centerIn: parent
- width: 8 * scaleRatio
- height: 8 * scaleRatio
- radius: 4 * scaleRatio
+ width: button.checked ? 20 * scaleRatio : 8 * scaleRatio
+ height: button.checked ? 20 * scaleRatio : 8 * scaleRatio
+ radius: button.checked ? 20 * scaleRatio : 4 * scaleRatio
color: button.dotColor
- visible: !button.checked
- }
-
- // arrow if checked
- Image {
- anchors.centerIn: parent
- anchors.left: parent.left
- source: "../images/menuArrow.png"
- visible: button.checked
+ // arrow if checked
+ Image {
+ anchors.centerIn: parent
+ anchors.left: parent.left
+ source: "../images/arrow-right-medium-white.png"
+ visible: button.checked
+ }
}
// button text
@@ -135,6 +133,7 @@ Rectangle {
id: buttonArea
anchors.fill: parent
hoverEnabled: true
+ cursorShape: Qt.PointingHandCursor
onClicked: {
if(parent.checked)
return
diff --git a/images/arrow-right-medium-white.png b/images/arrow-right-medium-white.png
new file mode 100644
index 00000000..f33e9f41
--- /dev/null
+++ b/images/arrow-right-medium-white.png
Binary files differ
diff --git a/images/leftPanelBg.jpg b/images/leftPanelBg.jpg
index a388288d..ec8c06eb 100644
--- a/images/leftPanelBg.jpg
+++ b/images/leftPanelBg.jpg
Binary files differ
diff --git a/images/menuButtonGradient.png b/images/menuButtonGradient.png
index 3ac95cb8..caeaf946 100644
--- a/images/menuButtonGradient.png
+++ b/images/menuButtonGradient.png
Binary files differ
diff --git a/qml.qrc b/qml.qrc
index ac2a6978..ac1000d6 100644
--- a/qml.qrc
+++ b/qml.qrc
@@ -195,5 +195,6 @@
<file>components/LineEditMulti.qml</file>
<file>components/LabelButton.qml</file>
<file>components/LabelSubheader.qml</file>
+ <file>images/arrow-right-medium-white.png</file>
</qresource>
</RCC>