Hi,
I'm working in deploying a qooxdoo (version 1.2) app in the Google app
engine. For optimization reasons i want to combine the
modern theme images in a only a few files and I'm not interest in
compatibility with IE6. But for some reason that i coudn't figure out,
the application is still referencing the individual images and not the
combined files. (Tried using different browsers).
I look at some threads in the forum but no luck finding the reason.
This is what i'm doing:
- create a default qooxdoo app, test2.
- copy the images from the modern theme to a folder
./source/images/test2/Modern
- combine images (only using the form folder with the button images just for
testing), this is my image.json file:
{
"jobs" :
{
"common" :
{
"let" :
{
"RESPATH" : "./source/resource",
"IMAGESPATH" : "./source/images",
"MODERN" : "test2/Modern",
"COMBINED" : "test2/combined"
},
"cache" :
{
"compile" : "./cache"
}
},
"image-combine" :
{
"extend" : ["common"],
"combine-images" :
{
"images" :
{
//
// MODERN
//
// this is the output file
"${RESPATH}/${COMBINED}/form-combined.png":
{
"prefix" : [ "${RESPATH}" ],
"input" :
[
{
"prefix" : [ "${IMAGESPATH}" ],
"files" :
[
"${IMAGESPATH}/${MODERN}/form/*.png"
]
}
],
"layout" : "horizontal"
}
}
}
}
}
}
- run generate.py -c image.json image-combine, it generates the combine
image with the meta file:
{"test2/Modern/form/button-b.png": [4, 4, "png",
"test2/combined/form-combined.png", -915, 0], rest of file ....
- The config file is using the test2.theme.Theme
- Replace the decorator and appearance files with the corresponding files
from the modern theme and modify like this:
/* ************************************************************************
#asset(test2/Modern/*)
************************************************************************ */
qx.Theme.define("test2.theme.Decoration",
{
resource : "test2/Modern/*",
aliases : {
decoration : "test2/Modern"
},
rest of file.....
--------------------------------------------------------------
* ************************************************************************
#asset(qx/icon/Tango/16/places/folder-open.png)
#asset(qx/icon/Tango/16/places/folder.png)
#asset(qx/icon/Tango/16/mimetypes/office-document.png)
#asset(qx/icon/Tango/16/actions/window-close.png)
#asset(qx/icon/Tango/22/places/folder-open.png)
#asset(qx/icon/Tango/22/places/folder.png)
#asset(qx/icon/Tango/22/mimetypes/office-document.png)
#asset(qx/icon/Tango/32/places/folder-open.png)
#asset(qx/icon/Tango/32/places/folder.png)
#asset(qx/icon/Tango/32/mimetypes/office-document.png)
#asset(qx/icon/Tango/16/apps/office-calendar.png)
#asset(qx/icon/Tango/16/apps/utilities-color-chooser.png)
#asset(qx/icon/Tango/16/actions/view-refresh.png)
#asset(qx/icon/Tango/16/actions/dialog-cancel.png)
#asset(qx/icon/Tango/16/actions/dialog-ok.png)
#asset(test2/Modern/*)
************************************************************************* */
/**
* The modern appearance theme.
*/
qx.Theme.define("test2.theme.Appearance",
{
rest of file ....
- run generate.py distclean,source
- run generate.py build , it creates the build with the combine image but
without the individual files from the modern theme.
But the app is still looking for the individual images!
Any help will be greatly appreciated!
Eduardo
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel