theme additions

View: New views
2 Messages — Rating Filter:   Alert me  

theme additions

by Richard Frith-Macdonald-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have code to allow subclasses to replace the classes used for images  
and color lists by a theme, but I'm not sure they are really a good  
idea.

The thing is, if we are interfacing to some 'native' theming engine,  
the end user may change the theme in use by that system, which may  
change the colors and images we should be using.  Now with the current  
theme code, we can manage that by having the theme notice the change  
and deactivate itsself, change saved color lists and images on disk,  
then reactivate itsself so that it uses the new information, but  
that's all a bit clumsy (especially if the actual change is rather  
minor).

So all the update does is provide two methods which can be overridden  
to change the classes used by the theme to load the images and color  
lists.  The idea is that the NSImage and NSColorList subclasses used  
can then use the native theming engine where they need to, and can  
dynamically update the way they behave in response to a change in the  
native theme.

Sounds OK?



_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: theme additions

by Gregory Casamento :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This sounds good to me.

On Mon, Aug 24, 2009 at 8:11 AM, Richard
Frith-Macdonald<richard@...> wrote:

> I have code to allow subclasses to replace the classes used for images and
> color lists by a theme, but I'm not sure they are really a good idea.
>
> The thing is, if we are interfacing to some 'native' theming engine, the end
> user may change the theme in use by that system, which may change the colors
> and images we should be using.  Now with the current theme code, we can
> manage that by having the theme notice the change and deactivate itsself,
> change saved color lists and images on disk, then reactivate itsself so that
> it uses the new information, but that's all a bit clumsy (especially if the
> actual change is rather minor).
>
> So all the update does is provide two methods which can be overridden to
> change the classes used by the theme to load the images and color lists.
>  The idea is that the NSImage and NSColorList subclasses used can then use
> the native theming engine where they need to, and can dynamically update the
> way they behave in response to a change in the native theme.
>
> Sounds OK?
>
>
>
> _______________________________________________
> Gnustep-dev mailing list
> Gnustep-dev@...
> http://lists.gnu.org/mailman/listinfo/gnustep-dev
>



--
Gregory Casamento
Open Logic Corporation, Principal Consultant
## GNUstep Chief Maintainer
yahoo/skype: greg_casamento, aol: gjcasa
(240)274-9630 (Cell), (301)362-9640 (Home)


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev