Fri, 10 Sep 2021 19:53:40 +0200
Added side bar icon for translator interface.
--- a/eric7.epj Fri Sep 10 19:45:14 2021 +0200 +++ b/eric7.epj Fri Sep 10 19:53:40 2021 +0200 @@ -931,7 +931,8 @@ "eric7/DebugClients/Python/coverage/doc/README.rst", "eric7/EricNetwork/data/effective_tld_names.dat", "eric7/EricNetwork/data/test_psl.txt", - "docs/README-ChromeOS.rst" + "docs/README-ChromeOS.rst", + "eric7/Plugins/UiExtensionPlugins/Translator/icons/sbTranslator96.svg" ], "OTHERTOOLSPARMS": { "CodeMetrics": {
--- a/eric7/Plugins/UiExtensionPlugins/Translator/Translator.py Fri Sep 10 19:45:14 2021 +0200 +++ b/eric7/Plugins/UiExtensionPlugins/Translator/Translator.py Fri Sep 10 19:53:40 2021 +0200 @@ -55,8 +55,8 @@ self.__ui.addSideWidget( self.__ui.BottomSide, self.__widget, UI.PixmapCache.getIcon( - os.path.join(os.path.dirname(__file__), "icons", - "flag-{0}".format(self.__iconSuffix))), + os.path.join(os.path.dirname(__file__), + "icons", "sbTranslator96")), self.tr("Translator")) self.__activateAct = EricAction(
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eric7/Plugins/UiExtensionPlugins/Translator/icons/sbTranslator96.svg Fri Sep 10 19:53:40 2021 +0200 @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="96" + height="96" + version="1.1" + id="svg12" + sodipodi:docname="sbTranslator96.svg" + inkscape:version="1.0.2 (e86c870879, 2021-01-15)"> + <metadata + id="metadata18"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <defs + id="defs16" /> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1412" + inkscape:window-height="879" + id="namedview14" + showgrid="false" + inkscape:zoom="5.7452426" + inkscape:cx="44.015445" + inkscape:cy="47.89895" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="0" + inkscape:current-layer="svg12" /> + <g + transform="matrix(4.199979,0,0,4.2222222,-1367.3894,-2254.6607)" + id="g10"> + <rect + x="273.38" + y="518.47998" + width="0" + height="14.668" + fill="#04896a" + id="rect2" /> + <rect + x="280.34" + y="541.04999" + width="0" + height="14.668" + fill="#16907d" + id="rect4" /> + <rect + x="282.16" + y="539.98999" + width="0" + height="14.668" + fill="#6c7a89" + id="rect6" /> + <path + d="m 337.79,548.13 -2.3091,-2.259 0.0273,-0.027 c 1.5818,-1.746 2.7091,-3.753 3.3727,-5.877 h 2.6636 v -1.8 h -6.3636 v -1.8 h -1.8182 v 1.8 h -6.3636 v 1.791 h 10.155 c -0.60909,1.737 -1.5727,3.384 -2.8818,4.824 -0.84545,-0.927 -1.5454,-1.944 -2.1,-3.015 h -1.8182 c 0.66363,1.467 1.5727,2.853 2.7091,4.104 l -4.6273,4.518 1.2909,1.278 4.5454,-4.5 2.8273,2.799 z m 5.1182,-4.563 H 341.09 l -4.0909,10.8 h 1.8182 l 1.0182,-2.7 h 4.3182 l 1.0273,2.7 h 1.8182 z m -2.3818,6.3 1.4727,-3.897 1.4727,3.897 z" + fill="#eff0f1" + stroke-width="1.17" + id="path8" /> + </g> +</svg>