From af7ad482c2dc64d8f9bf5f093d61eee88b4818e7 Mon Sep 17 00:00:00 2001 From: cryptochangements34 Date: Mon, 20 Nov 2017 21:11:52 -0500 Subject: [PATCH] Move button gradiency Moves the block of code that deals with the gradiency so that it is placed underneath labels and other images rather than on top --- components/MenuButton.qml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/components/MenuButton.qml b/components/MenuButton.qml index afc2421a..38b83da9 100644 --- a/components/MenuButton.qml +++ b/components/MenuButton.qml @@ -61,6 +61,17 @@ 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 { + width: 260 + anchors.verticalCenter: parent.verticalCenter + anchors.right: parent.right + anchors.rightMargin: 0 + anchors.leftMargin: parent.getOffset() + source: "../images/menuButtonGradient.png" + visible: button.checked + } + // button decorations that are subject to leftMargin offsets Rectangle { anchors.left: parent.left @@ -101,17 +112,6 @@ Rectangle { } } - // button gradient while checked - Image { - width: 160 - anchors.verticalCenter: parent.verticalCenter - anchors.right: parent.right - anchors.rightMargin: 0 - anchors.leftMargin: parent.getOffset() - source: "../images/menuButtonGradient.png" - visible: button.checked - } - // menu button right arrow Image { anchors.verticalCenter: parent.verticalCenter