add utils and impl title version

This commit is contained in:
2026-11-14 08:45:30 +03:00
parent 928555cc7d
commit 8040422395
7 changed files with 61 additions and 10 deletions

View File

@@ -6,6 +6,9 @@ ColumnLayout {
Layout.fillWidth: true
spacing: 4
property bool isChecking: true
property int packageCount: 0
RowLayout {
spacing: 5
@@ -13,7 +16,7 @@ ColumnLayout {
text: "Arch Linux Updater"
font.pixelSize: 20
font.bold: true
color: "#cdd6f4"
color: Theme.color2
Layout.alignment: Qt.AlignBaseline
}
@@ -21,17 +24,18 @@ ColumnLayout {
text: "v. " + Qt.application.version
font.pixelSize: 12
font.italic: true
color: "#6c7086"
color: Theme.color3
Layout.alignment: Qt.AlignBaseline
}
}
Text {
text: "Можно обновить: "
text: "Можно обновить: " + Utils.packageLabel(root.packageCount)
Layout.fillWidth: true
wrapMode: Text.WordWrap
font.pixelSize: 12
color: "#6c7086"
font.pixelSize: Theme.fontSize
color: Theme.color3
visible: !root.isChecking && root.packageCount > 0
}
}