It's actually really simple, I thought it was some complex affair.
Theme Builder basically takes all your images and SVGs and spits them out renamed in to your %APPDATA%\Local\Temp folder, like pointed out in the "Undocumented SVG objects" thread. They're all in a folder labled pzXXXXX or similar.
I emptied out the temp folder and changed the security settings to prevent deletion, then exported a theme.
In addition to the pzXXXXX folder, it creates a file called pzXXXXXX.properties. That file tells the compiler what directory to look in for source files, where to put the CODS/JAD/ALX etc.
Looks like so:
Code:
ThemeBundler.applicationName=Untitled
ThemeBundler.libraryName=com_plazmic_theme_Untitled
ThemeBundler.targetOs=5.0.0
ThemeBundler.targetDevice=8500
ThemeBundler.contentDir=C:\\Users\\username\\AppData\\Local\\Temp\\pz_lT0YZ\\
ThemeBundler.outFileDir=C:\\Users\\username\\Desktop\\default
ThemeBundler.exportAlx=false
ThemeBundler.exportJad=true
ThemeBundler.exportCso=false
ThemeBundler.exportDebug=false
ThemeBundler.exportThemeReader=false
ThemeBundler.codFileName=com_plazmic_theme_Untitled.cod
ThemeBundler.jadFileName=com_plazmic_theme_Untitled.jad
ThemeBundler.rapcFileName=com_plazmic_theme_Untitled.rapc
ThemeBundler.csoFileName=com_plazmic_theme_Untitled.cso
ThemeBundler.debugFileName=com_plazmic_theme_Untitled.debug
ThemeBundler.alxFileName=Untitled.alx
ThemeBundler.vendor=
ThemeBundler.copyright=
ThemeBundler.version=
ThemeBundler.description=
Then it runs two programs located in the \bin directory of Theme Builder, svgc.exe and tbbundle.exe.
So, once you've got the source files and the properties file, you can run those yourself like so:
Code:
svgc.exe path\to\filename.svg
and then
Code:
tbbundle.exe path\to\theme.properties
First one takes your svg file and makes a pme, second one compiles everything. From what I can tell it takes everything in your source directory and puts it in the cods.
So, what I'm wondering first is how much can you mess around with Theme Builder's generated svg files. There's a couple there you can't access in Theme Builder, like "application-menu.svg".
Secondly, if it packs up everything you put in the source directory, and my banner-home.png shows up instead of the default banner-home.png, could other images do the same? The default theme has nearly every image you see on your device, could you override things like the media player and so on? Even the calculator background is in there. I ran the cods through bitmaprip and it extracted them all, and a little work with a hex editor will show you what the original file names are.
Might not be able to do anything with that, but interesting none the less.