mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-01 10:05:30 +00:00
ArchUpdater: better icons
This commit is contained in:
@@ -190,7 +190,7 @@ NPanel {
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
icon: ArchUpdaterService.updateInProgress ? "hourglass_empty" : "system_update"
|
||||
icon: ArchUpdaterService.updateInProgress ? "hourglass_empty" : "filter_none"
|
||||
tooltipText: ArchUpdaterService.updateInProgress ? "Update in progress..." : "Update all packages"
|
||||
enabled: !ArchUpdaterService.updateInProgress
|
||||
onClicked: {
|
||||
@@ -203,7 +203,7 @@ NPanel {
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
icon: ArchUpdaterService.updateInProgress ? "hourglass_empty" : "settings"
|
||||
icon: ArchUpdaterService.updateInProgress ? "hourglass_empty" : "check_box"
|
||||
tooltipText: ArchUpdaterService.updateInProgress ? "Update in progress..." : "Update selected packages"
|
||||
enabled: !ArchUpdaterService.updateInProgress && ArchUpdaterService.selectedPackagesCount > 0
|
||||
onClicked: {
|
||||
|
||||
@@ -29,15 +29,11 @@ NIconButton {
|
||||
|
||||
// Icon states
|
||||
icon: {
|
||||
if (ArchUpdaterService.busy || ArchUpdaterService.aurBusy)
|
||||
if (ArchUpdaterService.busy || ArchUpdaterService.aurBusy) {
|
||||
return "sync"
|
||||
}
|
||||
if (ArchUpdaterService.totalUpdates > 0) {
|
||||
const count = ArchUpdaterService.totalUpdates
|
||||
if (count > 50)
|
||||
return "system_update_alt"
|
||||
if (count > 10)
|
||||
return "system_update"
|
||||
return "system_update"
|
||||
return "filter_none"
|
||||
}
|
||||
return "task_alt"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user