eric7/UI/CodeDocumentationViewerTemplate.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
--- 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(

eric ide

mercurial