monero-gui/components/MobileHeader.qml

119 lines
3.1 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
2019-04-25 19:09:23 +00:00
Layout.preferredHeight: 64
2017-04-03 16:51:55 +00:00
color: "#FFFFFF"
Image {
id: logo
2019-04-25 19:09:23 +00:00
visible: appWindow.width > 460
2017-04-03 16:51:55 +00:00
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: -5
anchors.left: parent.left
2019-04-25 19:09:23 +00:00
anchors.leftMargin: 50
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
2019-04-25 19:09:23 +00:00
anchors.leftMargin: 40
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
2019-04-25 19:09:23 +00:00
anchors.topMargin: 10
width: 256
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
2019-04-25 19:09:23 +00:00
width: 116
height: 20
2017-04-03 16:51:55 +00:00
font.family: "Arial"
2019-04-25 19:09:23 +00:00
font.pixelSize: 12
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
2019-04-25 19:09:23 +00:00
width: 110
height: 20
2017-04-03 16:51:55 +00:00
font.family: "Arial"
2019-04-25 19:09:23 +00:00
font.pixelSize: 18
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 {
2019-04-25 19:09:23 +00:00
height: 20
width: 20
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 {
2019-04-25 19:09:23 +00:00
width: 116
height: 20
2017-04-03 16:51:55 +00:00
font.family: "Arial"
2019-04-25 19:09:23 +00:00
font.pixelSize: 12
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
2019-04-25 19:09:23 +00:00
width: 110
height: 20
2017-04-03 16:51:55 +00:00
font.family: "Arial"
2019-04-25 19:09:23 +00:00
font.pixelSize: 14
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"
}
}