From cdc3b180712753d6a0f56915d10829a5e00a991e Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Thu, 28 Aug 2025 08:58:24 -0400 Subject: [PATCH] ArchUpdater: better icons --- Modules/ArchUpdaterPanel/ArchUpdaterPanel.qml | 4 ++-- Modules/Bar/Widgets/ArchUpdater.qml | 10 +++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Modules/ArchUpdaterPanel/ArchUpdaterPanel.qml b/Modules/ArchUpdaterPanel/ArchUpdaterPanel.qml index 3ce2656..c4c9539 100644 --- a/Modules/ArchUpdaterPanel/ArchUpdaterPanel.qml +++ b/Modules/ArchUpdaterPanel/ArchUpdaterPanel.qml @@ -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: { diff --git a/Modules/Bar/Widgets/ArchUpdater.qml b/Modules/Bar/Widgets/ArchUpdater.qml index 9047c1b..9fc9522 100644 --- a/Modules/Bar/Widgets/ArchUpdater.qml +++ b/Modules/Bar/Widgets/ArchUpdater.qml @@ -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" }