42 lines
844 B
QML
42 lines
844 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
Layout.fillWidth: true
|
|
spacing: 4
|
|
|
|
property bool isChecking: true
|
|
property int packageCount: 0
|
|
|
|
RowLayout {
|
|
spacing: 5
|
|
|
|
Text {
|
|
text: "Arch Linux Updater"
|
|
font.pixelSize: Theme.fontTitleSize
|
|
font.bold: true
|
|
color: Theme.color2
|
|
Layout.alignment: Qt.AlignBaseline
|
|
}
|
|
|
|
Text {
|
|
text: "v. " + Qt.application.version
|
|
font.pixelSize: Theme.fontSize
|
|
font.italic: true
|
|
color: Theme.color3
|
|
Layout.alignment: Qt.AlignBaseline
|
|
}
|
|
}
|
|
|
|
Text {
|
|
text: "Можно обновить: " + Utils.declensionLabel(root.packageCount)
|
|
Layout.fillWidth: true
|
|
wrapMode: Text.WordWrap
|
|
font.pixelSize: Theme.fontSize
|
|
color: Theme.color3
|
|
visible: !root.isChecking && root.packageCount > 0
|
|
}
|
|
}
|
|
|