ArchUpdater: better icons
This commit is contained in:
parent
c8860a3a9d
commit
cdc3b18071
2 changed files with 5 additions and 9 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue