Hi list,
how is correct way to create color variants for some theme. For
example I'm playing with new theme and I want to create two or three
color variants.
There are several parts (called meta themes in qooxdoo?) of theme that
must be overriden:
- Colors - this is simplest and shortest, just fill different values
- Decorations - I think that in this part I will duplicate everything
- Appearance - I think that this is not needed to override, it uses
Colors and Decorators
Because I'm lazy in duplicating stuff, my idea is this:
(function(){
// list of theme descriptions
var description = [
// individual items
{
name: "Blue",
colors: { ... } // colors
resource: "path_for_resources"
}
];
description.forEach(item, function(){
qx.Theme.define("bfly.theme.light." + item.name,
{
colors: item.colors
});
qx.Theme.define("bfly.theme.light." + item.name,
{
resource : item.resource,
...
});
});
}());
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel