Alternative system for configuring style variables
The mechanism of mixing in a module and then overriding style variables is not great. It would be better to be able to configure these from
Submitted by Zef Hemel on 9 March 2011 at 11:09config.mobl
.
Issue Log
On 21 April 2011 at 10:42 Zef Hemel closed this issue.
On 21 April 2011 at 10:42 Zef Hemel commented:
Done. This changes the semantics of
style $varname = ...
a bit. Before you could override them as follows:
module uimixin mobl::ui::generic
style $baseColor = …
Which was a bit of a hack. The new way to do the same thing is by overriding your style variables in your
config.mobl
:
configuration
…
style $baseColor = rgb(100, 100, 100)Then you can simply keep importing
mobl::ui::generic
and the base color will be overwritten with the value inconfig.mobl
.
Log in to post comments