[xcos] OpAmp icon was too big 58/21758/2
Samuel GOUGEON [Mon, 10 May 2021 17:44:51 +0000 (19:44 +0200)]
  No need to have it so big and most often resize it:
  https://help.scilab.org/docs/6.1.0/en_US/OpAmp.html

Change-Id: I09f6ea635e8c29e5231d8a52e2cc00fc3e1f2852

scilab/modules/helptools/images/OpAmp.png
scilab/modules/scicos_blocks/macros/Electrical/OpAmp.sci
scilab/modules/xcos/etc/Xcos-style.xml
scilab/modules/xcos/images/palettes/OpAmp.png

index b76f65a..b4158a2 100644 (file)
Binary files a/scilab/modules/helptools/images/OpAmp.png and b/scilab/modules/helptools/images/OpAmp.png differ
index 2aa902c..d11b21d 100644 (file)
@@ -71,6 +71,7 @@ function [x,y,typ]=OpAmp(job,arg1,arg2)
         x=standard_define([3 5],model,exprs,gr_i)
         x.graphics.in_implicit=["I";"I"]
         x.graphics.out_implicit=["I"]
+        x.graphics.sz = [2.5 3]
     end
 endfunction
 // OpAmp
index d81da20..9dd46cb 100644 (file)
         <add as="shape" value="triangle"/>
         <add as="perimeter" value="trianglePerimeter"/>
         <add as="direction" value="east"/>
-        <add as="displayedLabel" value="&lt;TABLE&gt;           &lt;TR&gt;             &lt;TD&gt;+&lt;/TD&gt;             &lt;TD&gt;&lt;/TD&gt;           &lt;/TR&gt;           &lt;TR&gt;             &lt;TD&gt;&lt;/TD&gt;             &lt;TD&gt;OP&lt;/TD&gt;           &lt;/TR&gt;           &lt;TR&gt;             &lt;TD&gt;-&lt;/TD&gt;             &lt;TD&gt;&lt;/TD&gt;           &lt;/TR&gt;         &lt;/TABLE&gt;"/>
+        <add as="displayedLabel" value="&lt;TABLE&gt; &lt;TR&gt;&lt;TD&gt;+&lt;BR&gt;-&lt;/TD&gt;&lt;TD&gt;OP&lt;/TD&gt;&lt;/TR&gt; &lt;/TABLE&gt;"/>
         <add as="spacing" value="0"/>
         <add as="spacingRight" value="5"/>
         <add as="spacingTop" value="7"/>
index b76f65a..b4158a2 100644 (file)
Binary files a/scilab/modules/xcos/images/palettes/OpAmp.png and b/scilab/modules/xcos/images/palettes/OpAmp.png differ