mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-13 03:46:33 +02:00
c65a878d8c
https://trello.com/c/Q0xqMAxd/33-medium-privacy-level-in-transfer-tab-needs-to-be-halfway-between-low-and-high
44 lines
1.1 KiB
QML
44 lines
1.1 KiB
QML
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
|
|
}
|
|
}
|