--- a/eric6/WebBrowser/AdBlock/AdBlockDialog.py Sun Apr 12 18:46:08 2020 +0200 +++ b/eric6/WebBrowser/AdBlock/AdBlockDialog.py Sun Apr 12 19:07:49 2020 +0200 @@ -38,7 +38,7 @@ self.__manager = manager - self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlus48.png")) + self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlus48")) self.updateSpinBox.setValue( Preferences.getWebBrowser("AdBlockUpdatePeriod")) @@ -59,7 +59,7 @@ menu = QMenu(self) menu.aboutToShow.connect(self.__aboutToShowActionMenu) self.actionButton.setMenu(menu) - self.actionButton.setIcon(UI.PixmapCache.getIcon("adBlockAction.png")) + self.actionButton.setIcon(UI.PixmapCache.getIcon("adBlockAction")) self.actionButton.setPopupMode(QToolButton.InstantPopup) self.__load() @@ -85,9 +85,9 @@ for subscription in self.__manager.subscriptions(): tree = AdBlockTreeWidget(subscription, self.subscriptionsTabWidget) if subscription.isEnabled(): - icon = UI.PixmapCache.getIcon("adBlockPlus.png") + icon = UI.PixmapCache.getIcon("adBlockPlus") else: - icon = UI.PixmapCache.getIcon("adBlockPlusDisabled.png") + icon = UI.PixmapCache.getIcon("adBlockPlusDisabled") self.subscriptionsTabWidget.addTab( tree, icon, subscription.title()) @@ -278,13 +278,13 @@ # enable required one as well sub = self.__manager.subscription(subscription.requiresLocation()) requiresSubscriptions = [] if sub is None else [sub] - icon = UI.PixmapCache.getIcon("adBlockPlus.png") + icon = UI.PixmapCache.getIcon("adBlockPlus") else: # disable dependent ones as well requiresSubscriptions = ( self.__manager.getRequiresSubscriptions(subscription) ) - icon = UI.PixmapCache.getIcon("adBlockPlusDisabled.png") + icon = UI.PixmapCache.getIcon("adBlockPlusDisabled") requiresSubscriptions.append(subscription) for sub in requiresSubscriptions: sub.setEnabled(enable)