diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-04-25 15:27:19 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-04-25 15:27:19 -0500 |
| commit | b0ba2379f4c657999510b054a22cb5c906e71e8a (patch) | |
| tree | 5d5c4d35786fb65052784fe6a70e3d08dac2eb01 /components/MenuButton.qml | |
| parent | 5887f87677b40b70b689e20056a57957157ed481 (diff) | |
| parent | 62285b01dc77ef14e4b5b9cc291e34162321ad89 (diff) | |
| download | monzero-gui-b0ba2379f4c657999510b054a22cb5c906e71e8a.tar.gz monzero-gui-b0ba2379f4c657999510b054a22cb5c906e71e8a.tar.xz monzero-gui-b0ba2379f4c657999510b054a22cb5c906e71e8a.zip | |
Merge pull request #2069
62285b0 Remove scaleRatio (xmrdsc)
Diffstat (limited to 'components/MenuButton.qml')
| -rw-r--r-- | components/MenuButton.qml | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/components/MenuButton.qml b/components/MenuButton.qml index a4aa236f..93fc3b9f 100644 --- a/components/MenuButton.qml +++ b/components/MenuButton.qml @@ -52,7 +52,7 @@ Rectangle { var offset = 0 var item = button while (item.under) { - offset += 20 * scaleRatio + offset += 20 item = item.under } return offset @@ -60,7 +60,7 @@ Rectangle { color: "transparent" property bool present: !under || under.checked || checked || under.numSelectedChildren > 0 - height: present ? ((appWindow.height >= 800) ? 44 * scaleRatio : 38 * scaleRatio ) : 0 + height: present ? ((appWindow.height >= 800) ? 44 : 38 ) : 0 LinearGradient { visible: isOpenGL && button.checked @@ -88,7 +88,7 @@ Rectangle { // button decorations that are subject to leftMargin offsets Rectangle { anchors.left: parent.left - anchors.leftMargin: parent.getOffset() + 20 * scaleRatio + anchors.leftMargin: parent.getOffset() + 20 height: parent.height width: button.checked ? 20: 10 color: "transparent" @@ -97,9 +97,9 @@ Rectangle { Rectangle { id: dot anchors.centerIn: parent - width: button.checked ? 20 * scaleRatio : 8 * scaleRatio - height: button.checked ? 20 * scaleRatio : 8 * scaleRatio - radius: button.checked ? 20 * scaleRatio : 4 * scaleRatio + width: button.checked ? 20 : 8 + height: button.checked ? 20 : 8 + radius: button.checked ? 20 : 4 color: button.dotColor // arrow if checked Image { @@ -118,9 +118,9 @@ Rectangle { themeTransitionWhiteColor: MoneroComponents.Style._w_menuButtonTextColor anchors.verticalCenter: parent.verticalCenter anchors.left: parent.right - anchors.leftMargin: 8 * scaleRatio + anchors.leftMargin: 8 font.bold: true - font.pixelSize: 14 * scaleRatio + font.pixelSize: 14 } } @@ -129,7 +129,7 @@ Rectangle { anchors.verticalCenter: parent.verticalCenter anchors.leftMargin: parent.getOffset() anchors.right: parent.right - anchors.rightMargin: 20 * scaleRatio + anchors.rightMargin: 20 height: 14 width: 8 image: MoneroComponents.Style.menuButtonImageRightSource @@ -140,9 +140,9 @@ Rectangle { MoneroComponents.TextPlain { id: symbolText anchors.right: parent.right - anchors.rightMargin: 44 * scaleRatio + anchors.rightMargin: 44 anchors.verticalCenter: parent.verticalCenter - font.pixelSize: 12 * scaleRatio + font.pixelSize: 12 font.bold: true color: button.checked || buttonArea.containsMouse ? MoneroComponents.Style.menuButtonTextColor : dot.color visible: appWindow.ctrlPressed |
