eric7/UI/Previewers/PreviewerHTML.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
diff -r 8a7677a63c8d -r 68ec9c3d4de5 eric7/UI/Previewers/PreviewerHTML.py
--- a/eric7/UI/Previewers/PreviewerHTML.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/UI/Previewers/PreviewerHTML.py	Sat May 22 18:51:46 2021 +0200
@@ -22,7 +22,7 @@
     QWidget, QVBoxLayout, QLabel, QCheckBox, QSizePolicy, QToolTip
 )
 
-from E5Gui.E5Application import e5App
+from E5Gui.EricApplication import ericApp
 
 import Utilities
 import Preferences
@@ -200,7 +200,7 @@
                 return
             
             if fn:
-                project = e5App().getObject("Project")
+                project = ericApp().getObject("Project")
                 if project.isProjectFile(fn):
                     rootPath = project.getProjectPath()
                 else:
@@ -746,7 +746,7 @@
                 " src='https://unpkg.com/mermaid@8/dist/mermaid.min.js'>\n"
                 "</script>\n"
             )
-            if e5App().usesDarkPalette():
+            if ericApp().usesDarkPalette():
                 mermaid_initialize = (
                     "<script>mermaid.initialize({"
                     "theme: 'dark', "
@@ -770,7 +770,7 @@
         style = (
             (PreviewerHTMLStyles.css_markdown_dark +
              PreviewerHTMLStyles.css_pygments_dark)
-            if e5App().usesDarkPalette() else
+            if ericApp().usesDarkPalette() else
             (PreviewerHTMLStyles.css_markdown_light +
              PreviewerHTMLStyles.css_pygments_light)
         )

eric ide

mercurial