AusweisApp2/resources/qml/Governikus/Navigation/+android/NavigationItem.qml

40 lines
787 B
QML
Raw Normal View History

2017-07-03 09:30:10 +02:00
import QtQuick 2.5
2017-12-20 14:54:05 +01:00
import Governikus.Global 1.0
2017-07-03 09:30:10 +02:00
Item {
property alias source: tabImage.source
property alias text: tabText.text
signal clicked
Item {
id: tabImageItem
height: parent.height
width: Constants.menubar_width
anchors.left: parent.left
Image {
id: tabImage
height: Utils.dp(35)
fillMode: Image.PreserveAspectFit
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
}
}
Text {
id: tabText
anchors.left: tabImageItem.right
anchors.leftMargin: Utils.dp(10)
anchors.verticalCenter: parent.verticalCenter
2017-07-03 09:33:28 +02:00
font.pixelSize: Constants.small_font_size
2017-07-03 09:30:10 +02:00
renderType: Text.NativeRendering
2018-03-28 15:10:51 +02:00
color: Constants.secondary_text
2017-07-03 09:30:10 +02:00
}
MouseArea {
anchors.fill: parent
onClicked: parent.clicked()
}
}