monticelloToolWindowColor

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

monticelloToolWindowColor

Bert Freudenberg
Tim,

1. How was this preference added? I could not find any initialization code.
2. Shouldn't it be part of the Monticello package?

Packages need to be self-contained, so we can eventually unload and reload them.

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: monticelloToolWindowColor

Tim Felgentreff
Hi Bert,
sorry about the late reply.

I added a #windowColorSpecification method to the MCTool, to handle the
Monticello tool colors just like the other SystemWindow subclasses'
colors.
I believe the #monticelloToolWindowColor method was added by the
WindowColorRegistry when it's #refresh method is run upon changing the
global window color scheme (in Preferences
class>>#installWindowColorsVia:)

As to unloadability, the #windowColorSpecification is in the Monticello
package. When that is loaded and the Preference browser refreshes the
window color registry, then this method should be added automatically.

I am not entirely sure I'm right here, I'm guessing from the fact that I
didn't add those methods and that all xyzWindowColor methods were marked
changed when I modified the #installUniformWindowColors method and
refreshed the color registry.

Regards,
Tim

On Sat, 2010-04-17 at 00:39 +0200, Bert Freudenberg wrote:

> Tim,
>
> 1. How was this preference added? I could not find any initialization code.
> 2. Shouldn't it be part of the Monticello package?
>
> Packages need to be self-contained, so we can eventually unload and reload them.
>
> - Bert -
>
>
>