From a02890a84bc72a154a3812d141fba1d2e21fe5a2 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 28 May 2021 18:33:28 +1000 Subject: [PATCH] make update all toggle clearer https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/59 + remove background color; it did not look good in dark mode --- ftl/qt/addons.ftl | 1 + qt/aqt/addons.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ftl/qt/addons.ftl b/ftl/qt/addons.ftl index 07ed57887..66a689938 100644 --- a/ftl/qt/addons.ftl +++ b/ftl/qt/addons.ftl @@ -65,3 +65,4 @@ addons-delete-the-numd-selected-addon = *[other] Delete the { $count } selected add-ons? } addons-choose-update-window-title = Update Add-ons +addons-choose-update-update-all = Update All diff --git a/qt/aqt/addons.py b/qt/aqt/addons.py index 4a25c41fa..07a83a4bd 100644 --- a/qt/aqt/addons.py +++ b/qt/aqt/addons.py @@ -1160,9 +1160,8 @@ class ChooseAddonsToUpdateList(QListWidget): qconnect(self.customContextMenuRequested, self.on_context_menu) def setup(self) -> None: - header_item = QListWidgetItem("", self) + header_item = QListWidgetItem(tr.addons_choose_update_update_all(), self) header_item.setFlags(Qt.ItemFlag(Qt.ItemIsUserCheckable | Qt.ItemIsEnabled)) - header_item.setBackground(Qt.lightGray) self.header_item = header_item for update_info in self.updated_addons: addon_id = update_info.id