Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > Theme Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 08-10-2010, 08:23 PM
CrackBerry Abuser
Device(s): 8530
Carrier: Sprint/Nextel
 
Join Date: Feb 2010
Posts: 346
Likes Received: 0
Thanked 3 Times in 3 Posts
Default Compile theme from command line?

Anyone know how to do that?

Reason I'm asking is I was looking at the output from Theme Builder, particularly the application_menu.svg file. Would be nice to change "xlink:href="IconGridBackground.png" to "x-object:/Image?src=wallpaper" or something like that, then convert it to a pme and compile it manually.

Or I could be dumb, one or the other.
Reply With Quote Tip this Post
    Thread Author   #2  
Old 08-13-2010, 12:23 AM
CrackBerry Abuser
Device(s): 8530
Carrier: Sprint/Nextel
 
Join Date: Feb 2010
Posts: 346
Likes Received: 0
Thanked 3 Times in 3 Posts
Default

I figured it out, if anyone's interested.

Posted from my CrackBerry at wapforums.crackberry.com
Reply With Quote Tip this Post
  #3  
Old 08-13-2010, 07:25 AM
CrackBerry User
Device(s): 9930, PlayBook
Carrier: Verizon
 
Join Date: May 2008
Posts: 37
Likes Received: 5
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by sickboy719 View Post
I figured it out, if anyone's interested.

Posted from my CrackBerry at wapforums.crackberry.com
YES very interested! how did you do it?
__________________
http://redlightoflove.com
Reply With Quote Tip this Post
    Thread Author   #4  
Old 08-13-2010, 08:27 AM
CrackBerry Abuser
Device(s): 8530
Carrier: Sprint/Nextel
 
Join Date: Feb 2010
Posts: 346
Likes Received: 0
Thanked 3 Times in 3 Posts
Default

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.

Last edited by sickboy719; 08-13-2010 at 08:37 AM.
Reply With Quote Tip this Post
  #5  
Old 08-13-2010, 08:49 AM
CrackBerry User
Device(s): 9930, PlayBook
Carrier: Verizon
 
Join Date: May 2008
Posts: 37
Likes Received: 5
Thanked 7 Times in 4 Posts
Default

awesome, I really think you are on to something...

Previously, I got to the point where I prevented deletion of the temp folder, but didn't really know what to do with those files.

I am going to try to replace some of the images that are not exposed in Theme builder also.

The original goal for me was to create a Zen theme, but with an added hotspot on the home screen. Basically I want a custom SVG on the homescreen, but allow people to use the theme options to select 1, 2, or 3 rows. I was going to edit homescreen.svg (this is the default 2 row svg), homescreen#Zen_1_Row.svg, and homescreen#Zen_3_Row.svg , but I had no idea how to then re-compile the them into COD. This gives me much hope now!

Thanks a ton for figuring this out and sharing !

I'll report back on my findings
__________________
http://redlightoflove.com
Reply With Quote Tip this Post
    Thread Author   #6  
Old 08-13-2010, 09:12 AM
CrackBerry Abuser
Device(s): 8530
Carrier: Sprint/Nextel
 
Join Date: Feb 2010
Posts: 346
Likes Received: 0
Thanked 3 Times in 3 Posts
Default

I just tried adding an edited play.png into a copy of the default theme to no effect. i'm going to play again in a bit with it.
Reply With Quote Tip this Post
  #7  
Old 08-13-2010, 11:59 AM
CrackBerry Genius
Device(s): 9530 (Storm)
Carrier: Verizon
 
Join Date: Feb 2009
Posts: 2,464
Likes Received: 1
Thanked 6 Times in 2 Posts
Default

Quote:
Originally Posted by sickboy719 View Post
I just tried adding an edited play.png into a copy of the default theme to no effect. i'm going to play again in a bit with it.
While this is all very interesting and major props for figuring it all out...arent the elements like calculator, media, the keyboard etc etc part of the actual operating system only??? There has been lots of talk in the past about being able to "Theme" other parts of the phone but it all always resulted back in "You cant because they are built into the operating system" basically.


Maybe Im wrong, I dunno
__________________
GET KD THEMES HERE
For KD Themes news and updates follow me on My Twitter
Reply With Quote Tip this Post
  #8  
Old 08-13-2010, 12:31 PM
CrackBerry User
Device(s): 9930, PlayBook
Carrier: Verizon
 
Join Date: May 2008
Posts: 37
Likes Received: 5
Thanked 7 Times in 4 Posts
Default

I successfully got an "extra" icon into the theme

Check out the home icon: before and after (in the attachments)
Attached Images
File Type: png oldHomeIcon.png (116.2 KB, 58 views)
File Type: png newHomeIcon.png (115.9 KB, 59 views)
__________________
http://redlightoflove.com
Reply With Quote Tip this Post
  #9  
Old 08-14-2010, 05:30 AM
CrackBerry Abuser
Device(s): 8520 (Curve)
Carrier: Telstra
Pin: 214D06EB
 
Join Date: Mar 2010
Posts: 112
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

yay, good job, reminds me off my old lg which was a flash based phone, you could change anything, to any flash file, maybe one day we will get there
__________________
Cand take the KID from the FIGHT take the FIGHT from the KID
Reply With Quote Tip this Post
  #10  
Old 08-16-2010, 08:06 AM
CrackBerry Master
Device(s): 9850 (Torch 2)
Carrier: Verizon
 
Location: New York
Join Date: Jan 2009
Posts: 1,157
Likes Received: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by thatsjeek View Post
I successfully got an "extra" icon into the theme

Check out the home icon: before and after (in the attachments)
Can you please PM the instructions on exactly how you did it.

Posted from my CrackBerry at wapforums.crackberry.com
Reply With Quote Tip this Post
  #11  
Old 08-16-2010, 09:57 AM
CrackBerry Master
Device(s): 9530 (Storm)
Carrier: Verizon
Pin: 306F0656
 
Location: Lockport Ny
Join Date: May 2009
Posts: 1,049
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

if you wouldnt mind pming me also id appreciate it
__________________
AHazDesigns.com For Tutorials
Reply With Quote Tip this Post
  #12  
Old 08-16-2010, 11:27 PM
CrackBerry Master
Device(s): 9850 (Torch 2)
Carrier: Verizon
 
Location: New York
Join Date: Jan 2009
Posts: 1,157
Likes Received: 0
Thanked 1 Time in 1 Post
Default

Forget it jeek, I figured it out. Was able to change the thumbnail image when previewing theme and am working on a few other things now. Thanks and great job!
__________________
Come check out my Website with all of my Storm and S2 themes!
Follow me on Twitter @Padgoi.
Reply With Quote Tip this Post
    Thread Author   #13  
Old 08-17-2010, 09:37 AM
CrackBerry Abuser
Device(s): 8530
Carrier: Sprint/Nextel
 
Join Date: Feb 2010
Posts: 346
Likes Received: 0
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by kdjayo View Post
While this is all very interesting and major props for figuring it all out...arent the elements like calculator, media, the keyboard etc etc part of the actual operating system only??? There has been lots of talk in the past about being able to "Theme" other parts of the phone but it all always resulted back in "You cant because they are built into the operating system" basically.


Maybe Im wrong, I dunno
I actually have no idea what you can and can't do. I know that theme graphics appear in the browser and BBM, so ate least some of the apps can be themed to some extent.
And things like the calculator background, media player buttons, and camera graphics are are in the precision cod files, so they're skinned by the default theme at least.
Reply With Quote Tip this Post
  #14  
Old 09-12-2010, 11:59 AM
CrackBerry Newbie
 
Join Date: Sep 2010
Posts: 1
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

Thank you for this fantastic work :-)
This helps me a lot on building the theme by using command line. Anyway, i have another question about theme name. I tried to change name in properties file but it seems like when i installed theme in my BB, the name still be the same name that we export from theme builder. Does it have anyway to change the theme name before run command line?
Reply With Quote Tip this Post
  #15  
Old 09-14-2010, 02:31 AM
CrackBerry Abuser
Device(s): HTC Thunderbolt
Carrier: Verizon
 
Location: Tennessee
Join Date: Jan 2009
Posts: 485
Likes Received: 3
Thanked 41 Times in 28 Posts
Default

what version of tb are you guys using here? 5.0 or 5.1?
__________________
i am tech revive designs.....
Themes In Motion
Free Wallpapers, Free BerryWeather Icon Sets, Free BattEx Icon Sets! Register for lots of goodies!
Follow Me On Twitter
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   Compile theme from command line?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes