mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
use PNG for menuButton gradiency
This commit is contained in:
parent
f15d6f5197
commit
f6f26af7cb
3 changed files with 12 additions and 13 deletions
|
@ -61,19 +61,6 @@ Rectangle {
|
||||||
property bool present: !under || under.checked || checked || under.numSelectedChildren > 0
|
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 * scaleRatio : 38 * scaleRatio ) : 0
|
||||||
|
|
||||||
// Button gradient whilst checked
|
|
||||||
// @TODO: replace by .png - gradient not available in 2d renderer
|
|
||||||
LinearGradient {
|
|
||||||
visible: button.checked ? true : false
|
|
||||||
anchors.fill: parent
|
|
||||||
start: Qt.point(0, 0)
|
|
||||||
end: Qt.point(300, 0)
|
|
||||||
gradient: Gradient {
|
|
||||||
GradientStop { position: 1.0; color: "#333333" }
|
|
||||||
GradientStop { position: 0.0; color: "black" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// button decorations that are subject to leftMargin offsets
|
// button decorations that are subject to leftMargin offsets
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
@ -114,6 +101,17 @@ 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
|
// menu button right arrow
|
||||||
Image {
|
Image {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
BIN
images/menuButtonGradient.png
Normal file
BIN
images/menuButtonGradient.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
1
qml.qrc
1
qml.qrc
|
@ -178,6 +178,7 @@
|
||||||
<file>images/titlebarGradient.jpg</file>
|
<file>images/titlebarGradient.jpg</file>
|
||||||
<file>images/titlebarLogo.png</file>
|
<file>images/titlebarLogo.png</file>
|
||||||
<file>images/menuArrow.png</file>
|
<file>images/menuArrow.png</file>
|
||||||
|
<file>images/menuButtonGradient.png</file>
|
||||||
<file>fonts/SFUIDisplay-Medium.otf</file>
|
<file>fonts/SFUIDisplay-Medium.otf</file>
|
||||||
<file>fonts/SFUIDisplay-Regular.otf</file>
|
<file>fonts/SFUIDisplay-Regular.otf</file>
|
||||||
<file>fonts/SFUIDisplay-Light.otf</file>
|
<file>fonts/SFUIDisplay-Light.otf</file>
|
||||||
|
|
Loading…
Reference in a new issue