1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-05 03:52:07 -04:00

refactor(sysupdate): improve cmd handling, formatted colors & progress indication

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
purian23
2026-05-04 13:13:44 -04:00
parent cfe6e6867e
commit 408beb202c
9 changed files with 113 additions and 23 deletions

View File

@@ -365,19 +365,31 @@ DankPopout {
elide: Text.ElideRight
}
StyledText {
Row {
width: parent.width
text: {
const from = modelData.fromVersion || "";
const to = modelData.toVersion || "";
if (from && to) {
return `${from} ${to}`;
spacing: 4
StyledText {
text: {
const from = modelData.fromVersion || "";
const to = modelData.toVersion || "";
if (from && to)
return `${from} `;
return "";
}
return to || from || "";
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
visible: text !== ""
}
StyledText {
text: modelData.toVersion || modelData.fromVersion || ""
font.pixelSize: Theme.fontSizeSmall
color: Theme.primary
font.weight: Font.Medium
elide: Text.ElideRight
width: parent.width - (parent.children[0].visible ? parent.children[0].implicitWidth + 4 : 0)
}
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
elide: Text.ElideRight
}
}
}