--- a/eric6/Project/ProjectBrowser.py Sun Apr 12 18:46:08 2020 +0200 +++ b/eric6/Project/ProjectBrowser.py Sun Apr 12 19:07:49 2020 +0200 @@ -46,7 +46,7 @@ E5TabWidget.__init__(self, parent) self.project = project - self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) + self.setWindowIcon(UI.PixmapCache.getIcon("eric")) self.setUsesScrollButtons(True) @@ -180,43 +180,43 @@ if browserFlags & SourcesBrowserFlag: index = self.addTab( self.psBrowser, - UI.PixmapCache.getIcon("projectSources.png"), '') + UI.PixmapCache.getIcon("projectSources"), '') self.setTabToolTip(index, self.psBrowser.windowTitle()) if browserFlags & FormsBrowserFlag: index = self.addTab( self.pfBrowser, - UI.PixmapCache.getIcon("projectForms.png"), '') + UI.PixmapCache.getIcon("projectForms"), '') self.setTabToolTip(index, self.pfBrowser.windowTitle()) if browserFlags & ResourcesBrowserFlag: index = self.addTab( self.prBrowser, - UI.PixmapCache.getIcon("projectResources.png"), '') + UI.PixmapCache.getIcon("projectResources"), '') self.setTabToolTip(index, self.prBrowser.windowTitle()) if browserFlags & TranslationsBrowserFlag: index = self.addTab( self.ptBrowser, - UI.PixmapCache.getIcon("projectTranslations.png"), '') + UI.PixmapCache.getIcon("projectTranslations"), '') self.setTabToolTip(index, self.ptBrowser.windowTitle()) if browserFlags & InterfacesBrowserFlag: index = self.addTab( self.piBrowser, - UI.PixmapCache.getIcon("projectInterfaces.png"), '') + UI.PixmapCache.getIcon("projectInterfaces"), '') self.setTabToolTip(index, self.piBrowser.windowTitle()) if browserFlags & ProtocolsBrowserFlag: index = self.addTab( self.ppBrowser, - UI.PixmapCache.getIcon("protobuf.png"), '') + UI.PixmapCache.getIcon("protobuf"), '') self.setTabToolTip(index, self.ppBrowser.windowTitle()) if browserFlags & OthersBrowserFlag: index = self.addTab( self.poBrowser, - UI.PixmapCache.getIcon("projectOthers.png"), '') + UI.PixmapCache.getIcon("projectOthers"), '') self.setTabToolTip(index, self.poBrowser.windowTitle()) QApplication.processEvents() @@ -281,26 +281,26 @@ Private method to set the right icon for the sources browser tab. """ if not self.project.isOpen(): - icon = UI.PixmapCache.getIcon("projectSources.png") + icon = UI.PixmapCache.getIcon("projectSources") else: if self.project.getProjectLanguage() in [ "Python", "Python2", "Python3" ]: if self.project.isMixedLanguageProject(): - icon = UI.PixmapCache.getIcon("projectSourcesPyMixed.png") + icon = UI.PixmapCache.getIcon("projectSourcesPyMixed") else: - icon = UI.PixmapCache.getIcon("projectSourcesPy.png") + icon = UI.PixmapCache.getIcon("projectSourcesPy") elif self.project.getProjectLanguage() == "MicroPython": icon = UI.PixmapCache.getIcon("micropython") elif self.project.getProjectLanguage() == "Ruby": if self.project.isMixedLanguageProject(): - icon = UI.PixmapCache.getIcon("projectSourcesRbMixed.png") + icon = UI.PixmapCache.getIcon("projectSourcesRbMixed") else: - icon = UI.PixmapCache.getIcon("projectSourcesRb.png") + icon = UI.PixmapCache.getIcon("projectSourcesRb") elif self.project.getProjectLanguage() == "JavaScript": - icon = UI.PixmapCache.getIcon("projectSourcesJavaScript.png") + icon = UI.PixmapCache.getIcon("projectSourcesJavaScript") else: - icon = UI.PixmapCache.getIcon("projectSources.png") + icon = UI.PixmapCache.getIcon("projectSources") self.setTabIcon(self.indexOf(self.psBrowser), icon) def handleEditorChanged(self, fn):