Hi again,
While working on the Glamorous Theme, I basically had to learn the
design of polymorph and or the theme system. I think the structure is
pretty nice, but it still requires work to offer more flexibility. I
list here some of the notes I took. I would be happy to provide more
feedback and even work with someone on this:
- How to control the rounded/square corners of the droplist, normal
list and text boxes?
- How to control a Splitter drawing?
It looks like it does not matter what we specify in
separatorFillStyleFor:, it is still drawn embossed.
- How to control the menu title?
I would like to be able to control the color of the title of the menu
(the one that appears for example in the world menu).
- How to control the menu rendering?
I would like to be able to control the fill style of the menu.
- How to control the color of the PanelMorph when the Window is not
active?
Right now it just gets lighter. I would like to be able to control it,
but it looks impossible from the Theme.
- How to control the padding of a panel, groupbox, or tab?
- How to control the space between buttons in a toolbar?
- How to control the menu button in a toolbar?
When there is a button with a menu in a toolbar, a default button is
created with a gradient that cannot be controlled from the theme.
- How to control the menu close button after the menu was pinned?
- How to control the display of a splitter in a menu?
The MenuLineMorph hardcodes the minWidth and minHeight. It should be
delegated to the Theme.
- MorphTreeMorph needs to work with Theme (e.g., in adoptPaneColor:)
- How to control the arrows of scrollbars? In particular, we would
need to be able to define the forms in the theme, not just the vertices.
- The settings for the menu rendering seem to affect the rendering of
the progress bars. There should be separate entries for the two in the
Theme.
- It is unclear what the ThemeSettings is for. What goes here and what
goes in the Theme?
- Some icons are defined in the Theme instance variables, and some are
defined in the ThemeIcons.
- Is it intended for the ThemeSettings to be subclassed?
- Some preferences from ThemeSettings are hardcoded. For example:
menuShadowColor or menuTitleBorderColor.
- How to control the tick of a checkbox or of a radio button?
Right now, there is a tick that gets drawn even if I specify the
radioButtonSelectedForm or checkboxSelectedForm
Cheers,
Doru
--
www.tudorgirba.com
"We cannot reach the flow of things unless we let go."
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project