[Y-devel] Proposing an UI module
Niko Iivari eviliivari at saunalahti.fi
Wed Feb 25 13:11:45 GMT 2004
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
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved