PluginProjectPyramid.py

changeset 133
8f183975895d
parent 132
c0d53fb9a0e0
child 136
5673d6bb4c2a
equal deleted inserted replaced
132:c0d53fb9a0e0 133:8f183975895d
26 # Start-of-Header 26 # Start-of-Header
27 name = "Pyramid Project Plugin" 27 name = "Pyramid Project Plugin"
28 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 28 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
29 autoactivate = True 29 autoactivate = True
30 deactivateable = True 30 deactivateable = True
31 version = "2.4.3" 31 version = "2.5.0"
32 className = "ProjectPyramidPlugin" 32 className = "ProjectPyramidPlugin"
33 packageName = "ProjectPyramid" 33 packageName = "ProjectPyramid"
34 shortDescription = "Project support for Pyramid projects." 34 shortDescription = "Project support for Pyramid projects."
35 longDescription = \ 35 longDescription = \
36 """This plugin implements project support for Pyramid projects.""" 36 """This plugin implements project support for Pyramid projects."""
61 """ 61 """
62 Module function returning data as required by the configuration dialog. 62 Module function returning data as required by the configuration dialog.
63 63
64 @return dictionary containing the relevant data 64 @return dictionary containing the relevant data
65 """ 65 """
66 try:
67 usesDarkPalette = e5App().usesDarkPalette()
68 except AttributeError:
69 from PyQt5.QtGui import QPalette
70 palette = e5App().palette()
71 lightness = palette.color(QPalette.Window).lightness()
72 usesDarkPalette = lightness <= 128
73 if usesDarkPalette:
74 iconSuffix = "dark"
75 else:
76 iconSuffix = "light"
77
66 return { 78 return {
67 "pyramidPage": [ 79 "pyramidPage": [
68 QCoreApplication.translate("ProjectPyramidPlugin", "Pyramid"), 80 QCoreApplication.translate("ProjectPyramidPlugin", "Pyramid"),
69 os.path.join("ProjectPyramid", "icons", "pyramid.png"), 81 os.path.join("ProjectPyramid", "icons",
82 "pyramid-{0}".format(iconSuffix)),
70 createPyramidPage, None, None], 83 createPyramidPage, None, None],
71 } 84 }
72 85
73 86
74 def apiFiles(language): 87 def apiFiles(language):

eric ide

mercurial