<div dir="ltr">I have looked at the hard coded stuff for menu3d and gradientMenu before and those methods where quite messy and had lot&#39;s of cross dependency on the preferences. <div>I hope we can untangle that with the themes so it will be less hard coded values.</div><div><br></div><div>Best,</div><div>Karl</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 3, 2016 at 4:18 PM, marcel.taeumel <span dir="ltr">&lt;<a href="mailto:Marcel.Taeumel@hpi.de" target="_blank">Marcel.Taeumel@hpi.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Karl Ramberg wrote<br>
<span class="">&gt; The gradientMenu stuff is pretty bad.<br>
&gt;<br>
&gt; Best,<br>
&gt; Karl<br>
&gt;<br>
</span>&gt; On Wed, Aug 3, 2016 at 3:28 PM, &amp;lt;<br>
<br>
&gt; commits@.squeak<br>
<div><div class="h5"><br>
&gt; &amp;gt; wrote:<br>
&gt;<br>
&gt;&gt; Marcel Taeumel uploaded a new version of Morphic to project The Trunk:<br>
&gt;&gt; <a href="http://source.squeak.org/trunk/Morphic-mt.1228.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/trunk/Morphic-mt.1228.mcz</a><br>
&gt;&gt;<br>
&gt;&gt; ==================== Summary ====================<br>
&gt;&gt;<br>
&gt;&gt; Name: Morphic-mt.1228<br>
&gt;&gt; Author: mt<br>
&gt;&gt; Time: 3 August 2016, 3:28:25.722418 pm<br>
&gt;&gt; UUID: 24a39e09-443b-0b41-8d8d-3bd49125fe20<br>
&gt;&gt; Ancestors: Morphic-mt.1227<br>
&gt;&gt;<br>
&gt;&gt; Some last-minute UI theming fix, which applies to the non-flat look (i.e.<br>
&gt;&gt; using gradients) in progress bars. Implementation is not perfect but<br>
&gt;&gt; consistent with LazyListMorph selections, now.<br>
&gt;&gt;<br>
&gt;&gt; Note that, in the future, we should untangle the use of #gradientMenu<br>
&gt;&gt; and,<br>
&gt;&gt; maybe, add specific preferences.<br>
&gt;&gt;<br>
&gt;&gt; =============== Diff against Morphic-mt.1227 ===============<br>
&gt;&gt;<br>
&gt;&gt; Item was added:<br>
&gt;&gt; + ----- Method: SystemProgressBarMorph&gt;&gt;barColor (in category<br>
&gt;&gt; &#39;accessing&#39;)<br>
&gt;&gt; -----<br>
&gt;&gt; + barColor<br>
&gt;&gt; +<br>
&gt;&gt; +       ^ barColor!<br>
&gt;&gt;<br>
&gt;&gt; Item was added:<br>
&gt;&gt; + ----- Method: SystemProgressBarMorph&gt;&gt;barColor: (in category<br>
&gt;&gt; &#39;accessing&#39;) -----<br>
&gt;&gt; + barColor: aColor<br>
&gt;&gt; +<br>
&gt;&gt; +       | cc fill |<br>
&gt;&gt; +       cc := aColor.<br>
&gt;&gt; +<br>
&gt;&gt; +       MenuMorph gradientMenu<br>
&gt;&gt; +               ifFalse: [fill := SolidFillStyle color: cc]<br>
&gt;&gt; +               ifTrue: [<br>
&gt;&gt; +                       fill := GradientFillStyle ramp: {<br>
&gt;&gt; +                               0.0 -&gt; cc twiceLighter.<br>
&gt;&gt; +                               1 -&gt; cc twiceDarker }].<br>
&gt;&gt; +<br>
&gt;&gt; +       barColor := fill.<br>
&gt;&gt; +       self changed.!<br>
&gt;&gt;<br>
&gt;&gt; Item was added:<br>
&gt;&gt; + ----- Method: SystemProgressBarMorph&gt;&gt;barSize (in category &#39;accessing&#39;)<br>
&gt;&gt; -----<br>
&gt;&gt; + barSize<br>
&gt;&gt; +<br>
&gt;&gt; +       ^ barSize!<br>
&gt;&gt;<br>
&gt;&gt; Item was changed:<br>
&gt;&gt;   ----- Method: SystemProgressBarMorph&gt;&gt;drawOn: (in category &#39;drawing&#39;)<br>
&gt;&gt; -----<br>
&gt;&gt;   drawOn: aCanvas<br>
&gt;&gt; +<br>
&gt;&gt; +       | area fill |<br>
&gt;&gt; -       | area |<br>
&gt;&gt;         super drawOn: aCanvas.<br>
&gt;&gt;<br>
&gt;&gt; +       self barSize &gt; 0 ifTrue: [<br>
&gt;&gt; -       barSize &gt; 0 ifTrue: [<br>
&gt;&gt;                 area := self innerBounds.<br>
&gt;&gt; +               area := area origin extent: (self barSize min: area<br>
&gt;&gt; extent<br>
&gt;&gt; x)@area extent y.<br>
&gt;&gt; +<br>
&gt;&gt; +               fill := self barColor isColor<br>
&gt;&gt; +                       ifTrue: [SolidFillStyle color: self barColor]<br>
&gt;&gt; +                       ifFalse: [self barColor].<br>
&gt;&gt; +               fill isGradientFill ifTrue: [<br>
&gt;&gt; +                       fill origin: area origin.<br>
&gt;&gt; +                       fill direction: 0@ area height].<br>
&gt;&gt; +<br>
&gt;&gt; +               aCanvas<br>
&gt;&gt; +                       fillRectangle: area<br>
&gt;&gt; +                       fillStyle: fill<br>
&gt;&gt; +                       borderStyle: (SimpleBorder new width: 1; color:<br>
&gt;&gt; fill asColor muchDarker).<br>
&gt;&gt; -               area := area origin extent: (barSize min: area extent<br>
&gt;&gt; x)@area extent y.<br>
&gt;&gt; -               aCanvas fillRectangle: area color: barColor<br>
&gt;&gt;         ].<br>
&gt;&gt;   !<br>
&gt;&gt;<br>
&gt;&gt; Item was changed:<br>
&gt;&gt;   ----- Method: SystemProgressBarMorph&gt;&gt;setDefaultParameters (in category<br>
&gt;&gt; &#39;initialization&#39;) -----<br>
&gt;&gt;   setDefaultParameters<br>
&gt;&gt;         &quot;change the receiver&#39;s appareance parameters&quot;<br>
&gt;&gt;<br>
&gt;&gt;         self<br>
&gt;&gt;                 color: (self userInterfaceTheme color ifNil: [Color r:<br>
&gt;&gt; 0.977 g: 0.977 b: 0.977]);<br>
&gt;&gt;                 borderStyle: (self userInterfaceTheme borderStyle ifNil:<br>
&gt;&gt; [BorderStyle default]);<br>
&gt;&gt;                 borderColor: (self userInterfaceTheme borderColor ifNil:<br>
&gt;&gt; [Color transparent]);<br>
&gt;&gt; +               borderWidth: (self userInterfaceTheme borderWidth ifNil:<br>
&gt;&gt; [0]);<br>
&gt;&gt; +               barColor: (self userInterfaceTheme barColor ifNil: [Color<br>
&gt;&gt; r: 0.72 g: 0.72 b: 0.9]).!<br>
&gt;&gt; -               borderWidth: (self userInterfaceTheme borderWidth ifNil:<br>
&gt;&gt; [0]).<br>
&gt;&gt; -<br>
&gt;&gt; -       barColor := self userInterfaceTheme barColor ifNil: [Color r:<br>
&gt;&gt; 0.72<br>
&gt;&gt; g: 0.72 b: 0.9].!<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
</div></div>Can you please elaborate on this comment? :-)<br>
<br>
Best,<br>
Marcel<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://forum.world.st/The-Trunk-Morphic-mt-1228-mcz-tp4909399p4909424.html" rel="noreferrer" target="_blank">http://forum.world.st/The-Trunk-Morphic-mt-1228-mcz-tp4909399p4909424.html</a><br>
Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>
<br>
</blockquote></div><br></div>