[Y-devel] Re-implement how to draw shapes?

Thomas spiralman at softhome.net
Wed Feb 25 14:22:54 GMT 2004


On Wednesday 25 February 2004 08:44, drizzt321 at phpfreaks.com wrote:

> ok, I know I said I had a debateable insight, but that was before I did all
> the research into how things get painted. Now, its more I have a question.
> Would it be better to have all the work be put on the theme? or should we
> have an additional layer that accepts input from a theme, and then paints.
> I was just thinking it would be easier to write themes, when you don't have
> to worry about how do i paint a button, in the theme all you have to do is
> say, i want a button here, with this font, with this text, and with these
> colors/fontsize/etc. Thats just my thought for now, anybody else?

well, the theme is supposed to set more than just colors and fontsize, it is 
meant to change how the widgets look, so if you have it just call some other 
drawButton function, you are defeating the purpose of having themes at all.  
The abstract "this is a button" should stop at the theme, and the theme 
should convert that into graphics primitives (lines, rectangles, points, 
etc).

Thomas Stephens
spiralman at softhome.net

> Aaron
>
> ----------------------------------------------------------------------
> This mail sent through Toaster-Horde (https://qmailtoaster.clikka.com/)



More information about the Y-devel mailing list









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