monero-gui/components/MobileHeader.qml

118 lines
3.2 KiB
QML
Raw Normal View History

2017-04-03 19:51:55 +03:00
import QtQuick 2.2
import QtGraphicalEffects 1.0
import QtQuick.Layouts 1.1
import moneroComponents.Wallet 1.0
// BasicPanel header
Rectangle {
id: header
anchors.leftMargin: 1
anchors.rightMargin: 1
Layout.fillWidth: true
2017-08-07 16:47:56 +03:00
Layout.preferredHeight: 64 * scaleRatio
2017-04-03 19:51:55 +03:00
color: "#FFFFFF"
Image {
id: logo
2017-08-07 16:47:56 +03:00
visible: appWindow.width > 460 * scaleRatio
2017-04-03 19:51:55 +03:00
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: -5
anchors.left: parent.left
2017-08-07 16:47:56 +03:00
anchors.leftMargin: 50 * scaleRatio
2017-04-03 19:51:55 +03:00
source: "../images/moneroLogo2.png"
}
Image {
id: icon
visible: !logo.visible
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
2017-08-07 16:47:56 +03:00
anchors.leftMargin: 40 * scaleRatio
2017-04-03 19:51:55 +03:00
source: "../images/moneroIcon.png"
}
Grid {
anchors.verticalCenter: parent.verticalCenter
anchors.top: parent.top
anchors.right: parent.right
2017-08-07 16:47:56 +03:00
anchors.topMargin: 10 * scaleRatio
width: 256 * scaleRatio
2017-04-03 19:51:55 +03:00
columns: 3
Text {
id: balanceLabel
2017-08-07 16:47:56 +03:00
width: 116 * scaleRatio
height: 20 * scaleRatio
2017-04-03 19:51:55 +03:00
font.family: "Arial"
2017-08-07 16:47:56 +03:00
font.pixelSize: 12 * scaleRatio
2017-04-03 19:51:55 +03:00
font.letterSpacing: -1
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignBottom
color: "#535353"
text: leftPanel.balanceLabelText + ":"
}
Text {
id: balanceText
2017-08-07 16:47:56 +03:00
width: 110 * scaleRatio
height: 20 * scaleRatio
2017-04-03 19:51:55 +03:00
font.family: "Arial"
2017-08-07 16:47:56 +03:00
font.pixelSize: 18 * scaleRatio
2017-04-03 19:51:55 +03:00
font.letterSpacing: -1
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignBottom
color: "#000000"
text: leftPanel.balanceText
}
Item {
2017-08-07 16:47:56 +03:00
height: 20 * scaleRatio
width: 20 * scaleRatio
2017-04-03 19:51:55 +03:00
Image {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
source: "../images/lockIcon.png"
}
}
Text {
2017-08-07 16:47:56 +03:00
width: 116 * scaleRatio
height: 20 * scaleRatio
2017-04-03 19:51:55 +03:00
font.family: "Arial"
2017-08-07 16:47:56 +03:00
font.pixelSize: 12 * scaleRatio
2017-04-03 19:51:55 +03:00
font.letterSpacing: -1
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignBottom
color: "#535353"
text: qsTr("Unlocked Balance:")
}
Text {
id: availableBalanceText
2017-08-07 16:47:56 +03:00
width: 110 * scaleRatio
height: 20 * scaleRatio
2017-04-03 19:51:55 +03:00
font.family: "Arial"
2017-08-07 16:47:56 +03:00
font.pixelSize: 14 * scaleRatio
2017-04-03 19:51:55 +03:00
font.letterSpacing: -1
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignBottom
color: "#000000"
text: leftPanel.unlockedBalanceText
}
}
Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
height: 1
color: "#DBDBDB"
}
}