[Y-devel] Proposing an UI module

drizzt321 at phpfreaks.com drizzt321 at phpfreaks.com
Wed Feb 25 13:51:14 GMT 2004


Hmm...this might go along with something like what I just sent to the list. 
Basically I was wondering if we might put a layer between the theme, and the 
painter which would accept the themes specifics, font, fontsize, colors, etc. 
so the theme itself wouldn't have to worry about how to draw them on the 
screen, merely ask the next layer to do it with X, Y, Z specifics. Your idea 
goes right along with it(I think). It would basically have the theme say I want 
toolbar, with this style arrow, at these points. Am i getting this right?

Aaron

Quoting Niko Iivari <eviliivari at saunalahti.fi>:

> 
> Hi, all.
> 
> I think adding an user interface module ('ui module' from now on) would
> be a good idea.
> 
> I'll use an imaginary scrolled viewport widget to demonstrate this.
> 
> The theme module would define the looks of individual components, such
> as scrollbar trough, slider and the little arrows at each end, while the
> ui module would decide their placement.
> 
> This way we could have several separate 'feels' to go with several
> different 'looks', and let the user select the combination of 'look and
> feel' they prefer.
> 
> For example, an ui module emulating the feel of MS Windows would have
> the little arrows at each end of the scrollbars, and have the vertical
> scrollbar on the right side of the viewport, while a NeXT emulating ui
> module would have both of the little arrows at one end of the
> scrollbars, and have vertical scrollbar at left side of the scrolled
> viewport.
> 
> Apart from scrolled viewports (or scrolled window in gtk+ terminology),
> the behaviour of some other "high level widgets" would be defined by the
> ui module:
> 
> - toolbar (icons_and_text | icons_only | text_only etc.)
> - menus (tearoff_menus_by_default=true|false,
> show_icons_next_to_items=true|false, etc.)
> - dialog footer (eg. the order of Ok and Cancel buttons)
> - button and title order and alingnment in the window titlebar
> 
> - possibly the file chooser dialog could be entirely provided by the ui
> module. If not, then the file chooser should atleast be composed of
> several "high level widgets" wich are customisable through the ui
> module.
> 
> Implementing most of the items listed through themes would be pretty
> clumsy, and letting/forcing the application developer decide these
> things would be simply evil.
> 
> Any thoughts on this?
> 
> -- Niko
> 
> 




----------------------------------------------------------------------
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