eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/__init__.py

changeset 8234
fcb6b4b96274
parent 7923
91e843545d9a
child 8237
acc1490f822e
equal deleted inserted replaced
8233:bad78a592cc2 8234:fcb6b4b96274
106 @param name name of the translation engine 106 @param name name of the translation engine
107 @type str 107 @type str
108 @return engine icon 108 @return engine icon
109 @rtype QIcon 109 @rtype QIcon
110 """ 110 """
111 if e5App().usesDarkPalette(): 111 iconSuffix = "dark" if e5App().usesDarkPalette() else "light"
112 iconSuffix = "dark"
113 else:
114 iconSuffix = "light"
115 if name in supportedEngineNames(): 112 if name in supportedEngineNames():
116 icon = UI.PixmapCache.getIcon(os.path.join( 113 icon = UI.PixmapCache.getIcon(os.path.join(
117 os.path.dirname(__file__), "..", "icons", "engines", 114 os.path.dirname(__file__), "..", "icons", "engines",
118 "{0}-{1}".format(name, iconSuffix))) 115 "{0}-{1}".format(name, iconSuffix)))
119 if icon.isNull(): 116 if icon.isNull():

eric ide

mercurial