diff options
| author | Sander Ferdinand <sa.ferdinand@gmail.com> | 2017-12-11 00:31:52 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-29 23:04:02 +0100 |
| commit | e3390340821e0a367559f7a45408cec7771ef6d1 (patch) | |
| tree | 6bd273dc5f7dac5ca560be3649114f12abe23d9e | |
| parent | 5a36aa7fce21a72328f2d615e6cb339e4c51a755 (diff) | |
| download | monzero-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.qml | 23 | ||||
| -rw-r--r-- | images/arrow-right-medium-white.png | bin | 0 -> 191 bytes | |||
| -rw-r--r-- | images/leftPanelBg.jpg | bin | 4637 -> 18457 bytes | |||
| -rw-r--r-- | images/menuButtonGradient.png | bin | 244 -> 14654 bytes | |||
| -rw-r--r-- | qml.qrc | 1 |
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 Binary files differnew file mode 100644 index 00000000..f33e9f41 --- /dev/null +++ b/images/arrow-right-medium-white.png diff --git a/images/leftPanelBg.jpg b/images/leftPanelBg.jpg Binary files differindex a388288d..ec8c06eb 100644 --- a/images/leftPanelBg.jpg +++ b/images/leftPanelBg.jpg diff --git a/images/menuButtonGradient.png b/images/menuButtonGradient.png Binary files differindex 3ac95cb8..caeaf946 100644 --- a/images/menuButtonGradient.png +++ b/images/menuButtonGradient.png @@ -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> |
