Window colours

Ned Konz ned at squeakland.org
Wed Mar 2 21:09:27 UTC 2005


On Wednesday 02 March 2005 6:13 am, Frank Shearar wrote:

> I see that sending one of the #open* messages calls #paneColor which, under
> some conditions (model notNil being the most important), will ask the model
> for its #defaultBackgroundColor.
>
> I can't see how it gets the window colour from the
> #windowColourSpecification though. MethodFinder gives me three senders:
> Finder class>>windowColourSpecification just delegates to
> RefactoringBrowser class>>windowColourSpecification, TestRunner
> class>>initialize does The Rude Thing and calls Preferences
> class>>setWindowColorFor:to: and Preferences class>>windowColorTable just
> returns an Array containing implementors of #windowColorSpecification...
>
> Thanks for the answers, Ned!

Yes, and it's Preferences that keeps track of the colors, since you can change 
the window colors from the prefs panel (have you seen this?).

That's used to set up Preferences param #windowColors, which finally is used 
to answer windowColorFor:.

-- 
Ned Konz
http://bike-nomad.com/squeak/



More information about the Squeak-dev mailing list