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)) |