forked from Public/monero-gui
transfer privacy level fix:
https://trello.com/c/Q0xqMAxd/33-medium-privacy-level-in-transfer-tab-needs-to-be-halfway-between-low-and-high
This commit is contained in:
43
components/TickDelegate.qml
Normal file
43
components/TickDelegate.qml
Normal file
@@ -0,0 +1,43 @@
|
||||
import QtQuick 2.0
|
||||
|
||||
Item {
|
||||
id: delegateItem
|
||||
width: 1
|
||||
height: 48
|
||||
property bool mainTick: false
|
||||
property int currentIndex
|
||||
property int currentX
|
||||
|
||||
Image {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
visible: parent.mainTick
|
||||
source: "../images/privacyTick.png"
|
||||
|
||||
Text {
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 12
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: 2
|
||||
font.family: "Arial"
|
||||
font.bold: true
|
||||
font.pixelSize: 12
|
||||
color: "#4A4949"
|
||||
text: {
|
||||
if(currentIndex === 0) return qsTr("LOW")
|
||||
if(currentIndex === 3) return qsTr("MEDIUM")
|
||||
if(currentIndex === 13) return qsTr("HIGH")
|
||||
return ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 14
|
||||
width: 1
|
||||
color: "#DBDBDB"
|
||||
height: currentIndex === 8 ? 16 : 8
|
||||
visible: !parent.mainTick
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user