Hi all,

just few words about theme/skin concepts in Brick.

A skin defines the way a widget is internally composed.
The Datepicker is a good example, you can just compare the one in iOS and
the one in jQuery, they don't use the same UI components internally and
provide a completely different user experience: it is the role of the Skin.

The styles are graphical options related to a particular skin. They can be
colors, cornerRadii, fonts,...
A theme defined a set of consistent skins and related style values for the
whole widgets hierarchy.
For example, the Material Design is a theme that define both skin and styles
to use for all widgets.

I think the notion of Palette is interesting to define theme variants
without to be forced to create a new theme.
Maybe, as a first step, a Palette can be simply something like a QPalette
(Qt) which can be used in themes instead of static color values.

The current style/theme implementation in Bloc/Brick is at an early stage
and don't reflect exactly what it will be.
I made a first working implementation of the CSS2+ model as a proof of
concept but this doesn't mean that users will be forced to use CSS to style
UIs. But i think we have to provide this kind of facility and the concepts
under CSS open a lot of possibilities (cascading styles is one of them).

Styling and theming are difficult subjects, many ways remain to be explored.

Regards,
Glenn.







-----
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/let-s-talk-about-themes-and-GLMBrickThemer-tp4908930p4910826.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Reply via email to