AusweisApp2/resources/qml/Governikus/ProgressView/ProgressView.qml

52 lines
1.2 KiB
QML
Raw Normal View History

2017-07-03 09:30:10 +02:00
import QtQuick 2.5
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.2
2017-12-20 14:54:05 +01:00
import Governikus.Global 1.0
import Governikus.Style 1.0
2017-07-03 09:30:10 +02:00
SectionPage
{
id: baseItem
property alias text: text.text
property alias subText: subText.text
2017-07-03 09:33:28 +02:00
property alias subTextColor: subText.color
2017-07-03 09:30:10 +02:00
BusyIndicator {
id: busyIndicator
anchors.fill: circle
running: baseItem.visible
style: NpaBusyIndicatorStyle { factor: 1.2 }
}
Rectangle {
id: circle
2017-12-20 14:54:05 +01:00
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.top
anchors.verticalCenterOffset: PlatformConstants.is_tablet ? parent.height / 4 : parent.width / 2
2017-07-03 09:30:10 +02:00
width: parent.height / 4
height: width
radius: width / 2
color: Constants.blue
}
Text {
id: text
anchors.top: circle.bottom
anchors.topMargin: Utils.dp(50)
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: Constants.header_font_size
font.weight: Font.Bold
color: Constants.blue
}
Text {
id: subText
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
font.pixelSize: Constants.normal_font_size
anchors.top: text.bottom
anchors.topMargin: Utils.dp(10)
anchors.horizontalCenter: parent.horizontalCenter
width: baseItem.width * 0.8
wrapMode: Text.WordWrap
}
}