--- a/eric7/UI/CodeDocumentationViewerTemplate.py Sat May 22 17:01:51 2021 +0200 +++ b/eric7/UI/CodeDocumentationViewerTemplate.py Sat May 22 18:51:46 2021 +0200 @@ -11,7 +11,7 @@ from PyQt6.QtCore import QCoreApplication -from E5Gui.E5Application import e5App +from E5Gui.EricApplication import ericApp import Utilities @@ -29,7 +29,7 @@ @return stylesheet @rtype str """ - stylesheetType = "dark" if e5App().usesDarkPalette() else "light" + stylesheetType = "dark" if ericApp().usesDarkPalette() else "light" if not _stylesheetsCache[stylesheetType]: # load the stylesheet from file stylesheetFilePath = os.path.join(