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 config.mobl.

Submitted by Zef Hemel on 9 March 2011 at 11:09

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 ui

mixin 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 in config.mobl.


On 21 April 2011 at 10:43 Zef Hemel tagged 0.4.4

Log in to post comments