Siarhei Barysiuk wrote:
> Typical config.json includes tool/data/config/application.json from
> framework and
> it in turn includes base.json from framework as well.
>
> This is a part of base.json:
> ----- snip ----
> {
> ...
> "jobs" :
> {
> ....
> "common" :
> {
> ....
> "themes" :
> {
> "qx.icontheme" : "${QXICONTHEME}"
> }
> ...
> }
> ....
> }
> ...
> }
>
> ----- snap ----
>
> As far as I understand it allows me using QXICONTHEME in let section
> and override icon theme even
> in my custom configuration without having "themes" section.
>
> QXICONTHEME has predefined "Tango" value as you wrote.
> application.json and base.json have
> different QXTHEME values (it's not important but might be interesting for
> you).
>
> Ok, If I try to use following pair in my config:
>
> ---- snip ----
> "QXTHEME" : "qx.theme.Modern",
> "QXICONTHEME" : ["Tango"],
> --- snap ----
>
> everything work fine. As well as with this one:
>
> ---- snip ----
> "QXTHEME" : "qx.theme.Classic",
> "QXICONTHEME" : ["Oxygen"],
> ---- snap ----
>
> But does not work with following
>
> ---- snip ----
> "QXTHEME" : "qx.theme.Modern",
> "QXICONTHEME" : ["Oxygen"],
> --- snap ----
>
> or
>
> ---- snip ----
> "QXTHEME" : "qx.theme.Classic",
> "QXICONTHEME" : ["Tango"],
> ---- snip ----
>
> Is this correct? How can I use Tango icons with Classic theme for example?
This is a bug. I entered it as #1469. It has nothing to do with asset
("themes") macros, but with the dominance of the main theme. That means
that currently you cannot mix icons from an alien theme with your main
theme :( .
>
> I also tried to define "themes" section under "jobs" in my config. No
> effect at all.
>
> ----- snip ----
>
> "jobs":{
> "themes":{
> "qx.icontheme": ["Tango"]
> }
> }
> ----- snap ----
>
> Probably I'm wrong with this definition, I'm planning to look through
> docs carefully.
This is unrelated, but on a general note: You cannot enter the "themes"
key like this. Most config keys can only be used in the context of a
job, see
http://qooxdoo.org/documentation/0.8/generator_config#listing_of_keys_in_context
So you have to put something like this in your config:
"jobs" : {
"myjob" : {
"themes" : {
"qx.icontheme" : ...
Cheers,
Thomas
-------------------------------------------------------------------------
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