121 @param application reference to the application object |
121 @param application reference to the application object |
122 @type E5Application |
122 @type E5Application |
123 """ |
123 """ |
124 import Preferences |
124 import Preferences |
125 |
125 |
|
126 # TODO: make default icon set configurable |
|
127 # - automatic (w.r.t. lightness) |
|
128 # - breeze-light |
|
129 # - breeze-dark |
|
130 # - oxygen (formerly default) |
126 if application.usesDarkPalette(): |
131 if application.usesDarkPalette(): |
127 # dark desktop |
132 # dark desktop |
128 iconPath = "breeze-dark" |
133 iconPath = "breeze-dark" |
129 else: |
134 else: |
130 # light desktop |
135 # light desktop |
131 iconPath = "breeze" |
136 iconPath = "breeze-light" |
132 defaultIconPaths = [ |
137 defaultIconPaths = [ |
133 # add paths for vector graphics |
138 # add paths for vector graphics |
134 os.path.join(getConfig('ericIconDir'), iconPath), |
139 os.path.join(getConfig('ericIconDir'), iconPath), |
135 os.path.join(getConfig('ericIconDir'), iconPath, "languages"), |
140 os.path.join(getConfig('ericIconDir'), iconPath, "languages"), |
136 # add old default pixel icons |
141 # add old default pixel icons |
137 os.path.join(getConfig('ericIconDir'), "default"), |
142 ## os.path.join(getConfig('ericIconDir'), "default"), |
138 os.path.join(getConfig('ericIconDir'), "default", "languages"), |
143 ## os.path.join(getConfig('ericIconDir'), "default", "languages"), |
139 ] |
144 ] |
140 iconPaths = Preferences.getIcons("Path") |
145 iconPaths = Preferences.getIcons("Path") |
141 for iconPath in iconPaths: |
146 for iconPath in iconPaths: |
142 if iconPath: |
147 if iconPath: |
143 UI.PixmapCache.addSearchPath(iconPath) |
148 UI.PixmapCache.addSearchPath(iconPath) |