eric7/UI/CodeDocumentationViewerTemplate.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
9 9
10 import os 10 import os
11 11
12 from PyQt6.QtCore import QCoreApplication 12 from PyQt6.QtCore import QCoreApplication
13 13
14 from E5Gui.E5Application import e5App 14 from E5Gui.EricApplication import ericApp
15 15
16 import Utilities 16 import Utilities
17 17
18 18
19 _stylesheetsCache = { 19 _stylesheetsCache = {
27 Function to get the stylesheet matching the desktop environment. 27 Function to get the stylesheet matching the desktop environment.
28 28
29 @return stylesheet 29 @return stylesheet
30 @rtype str 30 @rtype str
31 """ 31 """
32 stylesheetType = "dark" if e5App().usesDarkPalette() else "light" 32 stylesheetType = "dark" if ericApp().usesDarkPalette() else "light"
33 if not _stylesheetsCache[stylesheetType]: 33 if not _stylesheetsCache[stylesheetType]:
34 # load the stylesheet from file 34 # load the stylesheet from file
35 stylesheetFilePath = os.path.join( 35 stylesheetFilePath = os.path.join(
36 os.path.dirname(__file__), "data", 36 os.path.dirname(__file__), "data",
37 "documentViewerStyle-{0}.css".format(stylesheetType)) 37 "documentViewerStyle-{0}.css".format(stylesheetType))

eric ide

mercurial