[etoys-dev] Re: [Sugar-devel] Etoys: toolbar

Yoshiki Ohshima yoshiki at vpri.org
Wed Jan 6 15:56:48 EST 2010


At Wed, 6 Jan 2010 21:41:39 +0100,
Bert Freudenberg wrote:
> 
> On 06.01.2010, at 19:13, Yoshiki Ohshima wrote:
> > 
> > At Wed, 6 Jan 2010 16:10:28 +0100,
> > Bert Freudenberg wrote:
> >> 
> >> On 06.01.2010, at 11:54, Simon Schampijer wrote:
> >>> 
> >>> Hi,
> >>> 
> >>> Some thoughts that came up today - I will turn into bugs or discard 
> >>> after feedback.
> >>> 
> >>> Is there a reason the etoys save a copy (keep as) button is not colored 
> >>> like in other activities?
> >> 
> >> The toolbar is using bitmapped icons, so recoloring is harder. Not
> >> impossible though - like, when sharing, the joining buddy's XO icon
> >> gets colorized because it uses a vector renderer. 
> > 
> >  The method:
> > 
> > SugarLibrary>>imageFor:color:grayOutColor:
> > 
> > happily recolors these bitmap icons with alpha.
> 
> I don't think so, because it simply tints the whole image. We'd need to change the outline color independent of the interior color, on a gray background, and with anti-aliasing preserved. Try
> 
> (SugarLibrary default imageFor: #keep color: Color red grayOutColor: nil) asMorph openInHand
> 
> which results in a reddish icon (using another color for nil seems to make the whole icon red). 

  Well, I should have actually looked at the problem before writing
random emails...

-- Yoshiki


More information about the etoys-dev mailing list