[Y-devel] shapes?

Casey Winans casey at cwinans.com
Wed Feb 25 21:33:04 GMT 2004


> Things like that must be decided before going any further.
> 
> Automatic degradation of UI, if ever implemented, should be in Y's theme
> code - not the theme modules, and not the drawing code under the theme
> modules. From the theme handling code is where we decide which theme module
> is going to draw a widget based on what themes have been loaded and support
> widgets. Making the 'which theme module' decision a little more thoughtful
> about what to call would be the cleanest, least intrusive, least performance
> penalty way to deal with this.
> 
> I'm not clear that automatic degradation of UI is actually a good idea,
> however, and I am certain that it should at least be a switchable 
> feature. If I ask for a particular theme, that's the theme I want and
> expect - especially when you consider that the 'person' doing the asking and
> expecting may well be some type of desktop manager application that full
> well expects that when it asks for a standard theme, that's what it gets;
> or in the case of accessibility layers to theme, a blind person would not
> appreciate the extra time their 'sound effects' are taking being optimized
> away (yes, we can create flags and more flags so that certain themes are
> left alone and certain calls are left alone, or whatever...)
>  
>  My point, basically, is that trying to outsmart the user (or application
> programmer) and doing it correctly involves imagining every contingency
> possible, ever, and doing the right thing.

On the subject of theme degradation, I would like to add that themes
shouldn't have to implement all pieces. They should be able to implement
what the author was interested in and fallback to a default (aka basic)
theme to fill in the gaps.

For example, a theme that wishes to only tweak how buttons are drawn but
has no interest in modifying anything else. In that case the basic theme
would pick up the slack and paint the other widgets and what not.

Or maybe even better (don't know) the new theme could be overlayed on
another theme and override its drawing functions where it wanted. This
is essentially the same but uses any theme that was loaded before it.
That could yield many different effects... somewhat like applying
filters in different orders does in photoshop.

--
Casey




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved