On 04/27/2010 05:51 PM, Peter Schneider wrote:
> Hi there,
>
> I'm currently trying to combine some images with the help of the generator
> using the documentation on [1] & [2].
> The combining itself seems to work (the combined images and the "meta"-files
> get created), but the application doesn't care about this.
You did re-run 'generate.py source/build' after creating the combined
images, did you?!
> What do I have to do to let the application load the combined image instead of
> the "original" files, Or does this only work for "themed" widgets?
Nothing, and no.
> For an overview (hopefully ;) ) here's my process/problem:
>
> 1. I'd like to combine groups of my Toolbar Icons into one image.
> (in my case: one for 32x32 sized icons, one for 16x16 sized icons and one
> for some flags)
>
> 2. I made a configuration (see attachment "image.json") according to [1]...
>
> 3. I ran "generate -c image.json image-combine" and that did what I expected
> (the combined files and the meta-files looking good, from what I can say)
> [Side-note: the command line snippets on [1] use "./generator" instead of
> "./generate" ...small issue ;) ]
Thanks. Fixed in 1.1 manual.
>
> 4. But the application (neither the 'build' nor the 'source' version) does not
> even contain any reference to any of those combined images...
So what is the observed behaviour? Is your app using the individual
images alright? Which browser do you test with?
>
> 5. All images have been noted in the "#asset"s, but they are not directly used
> in any image-constructor. So there's no line like this
> <code>
> var foo = new qx.ui.toolbar.Button("foo",
> "infodesk/icon/32/preferences.png");
> </code>
> I'm using a 'indirection' like this:
> <code>
> var foo_config = {txt:"foo", ico:"infodesk/icon/32/preferences.png");
> var foo = new qx.ui.toolbar.Button(foo_config.txt, foo_config.ico);
> </code>
> But I don't think _this_ is the problem...
If it works without combined images, it should continue to work with them.
T.
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel