monero-gui/components/MobileHeader.qml

119 lines
3.4 KiB
QML
Raw Normal View History

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