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

35 lines
723 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
property alias textColor: tabText.color
signal clicked
Image {
id: tabImage
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 5
anchors.top: parent.top
anchors.bottom: tabText.top
fillMode: Image.PreserveAspectFit
}
Text {
id: tabText
2018-03-28 15:10:51 +02:00
color: Constants.secondary_text
2017-07-03 09:30:10 +02:00
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.bottomMargin: font.pixelSize / 10
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
}
MouseArea {
anchors.fill: parent
onClicked: parent.clicked()
}
}