ArchUpdater: better icons

This commit is contained in:
LemmyCook 2025-08-28 08:58:24 -04:00
parent c8860a3a9d
commit cdc3b18071
2 changed files with 5 additions and 9 deletions

View file

@ -190,7 +190,7 @@ NPanel {
} }
NIconButton { NIconButton {
icon: ArchUpdaterService.updateInProgress ? "hourglass_empty" : "system_update" icon: ArchUpdaterService.updateInProgress ? "hourglass_empty" : "filter_none"
tooltipText: ArchUpdaterService.updateInProgress ? "Update in progress..." : "Update all packages" tooltipText: ArchUpdaterService.updateInProgress ? "Update in progress..." : "Update all packages"
enabled: !ArchUpdaterService.updateInProgress enabled: !ArchUpdaterService.updateInProgress
onClicked: { onClicked: {
@ -203,7 +203,7 @@ NPanel {
} }
NIconButton { NIconButton {
icon: ArchUpdaterService.updateInProgress ? "hourglass_empty" : "settings" icon: ArchUpdaterService.updateInProgress ? "hourglass_empty" : "check_box"
tooltipText: ArchUpdaterService.updateInProgress ? "Update in progress..." : "Update selected packages" tooltipText: ArchUpdaterService.updateInProgress ? "Update in progress..." : "Update selected packages"
enabled: !ArchUpdaterService.updateInProgress && ArchUpdaterService.selectedPackagesCount > 0 enabled: !ArchUpdaterService.updateInProgress && ArchUpdaterService.selectedPackagesCount > 0
onClicked: { onClicked: {

View file

@ -29,15 +29,11 @@ NIconButton {
// Icon states // Icon states
icon: { icon: {
if (ArchUpdaterService.busy || ArchUpdaterService.aurBusy) if (ArchUpdaterService.busy || ArchUpdaterService.aurBusy) {
return "sync" return "sync"
}
if (ArchUpdaterService.totalUpdates > 0) { if (ArchUpdaterService.totalUpdates > 0) {
const count = ArchUpdaterService.totalUpdates return "filter_none"
if (count > 50)
return "system_update_alt"
if (count > 10)
return "system_update"
return "system_update"
} }
return "task_alt" return "task_alt"
} }