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-22-2011, 06:24 PM
CrackBerry User
Device(s): Torch 9800
 
Location: Canada
Join Date: Jun 2011
Posts: 95
Likes Received: 2
Thanked 5 Times in 5 Posts
Default Custom6 theme for torch with hidden docks

Ok, so here's the situation...

Im making a theme with 3 hidden docks, and a hidden today. I made my svg for portrait in composer...adding all the docks and buttons, exported the svg, threw in the sliding/hidden dock codes, then did it all again for landscape (480x360) view in a different svg. I open up TB, import my portrait svg, go to flip to landscape to import that svg....and I cant. It seems that in custom6 layout for the torch you cant flip to landscape to apply a different svg for that view......even though you can import 2 different svgs in blackberry6 layout.

So I have to do it all in one svg for the 2 views. So whats the best way of doing this? Im assuming I would have to change between the 2 sets of code for the 2 views with :

Code:
begin="custom(oc_to_landscape)"
end="custom(oc_to_portrait)"/>
...but can I wrap everything for each view into a group <g></g> and set the oc_blahblahblah for the entire group? Or do I have to individually edit in the begin/end for every element/line of code for that view?

And if I can apply the begin/end for the entire group once, how would I code that so that it applies to everything within the group?

thanks!
Reply With Quote Tip this Post
    Thread Author   #2  
Old 08-22-2011, 06:54 PM
CrackBerry User
Device(s): Torch 9800
 
Location: Canada
Join Date: Jun 2011
Posts: 95
Likes Received: 2
Thanked 5 Times in 5 Posts
Default

Nevermind, problem solved....didnt see that there was a checkbox that says "enable landscape homescreen". Thank God too.....was not looking forward to having to edit all that into one svg.
Reply With Quote Tip this Post
    Thread Author   #3  
Old 08-22-2011, 07:41 PM
CrackBerry User
Device(s): Torch 9800
 
Location: Canada
Join Date: Jun 2011
Posts: 95
Likes Received: 2
Thanked 5 Times in 5 Posts
Default

Actually I guess this question would sort of still apply in regards to the hidden today code. Since I would have 2 hidden todays for the 2 views....or would I just have one set of today code for the 2 views?
Reply With Quote Tip this Post
  #4  
Old 08-24-2011, 08:55 AM
CrackBerry Genius
Device(s): iPhone 4s
Carrier: Verizon
 
Join Date: Nov 2009
Posts: 2,310
Likes Received: 88
Thanked 169 Times in 112 Posts
Default

2 seperate today codes.. one in each SVG. but.. how are you doing it? just wondering because once you add the landscape svg.. theme builder adds extra code to your ID names when it exports..... like it adds HC-landscape- or something like that. I hand coded the hidden today in a theme, but found it didnt work on export. So.. i had to manually change the code back after export then compile by hand to make it work. PAIN IN THE ***!
__________________
Reply With Quote Tip this Post
    Thread Author   #5  
Old 08-24-2011, 09:57 AM
CrackBerry User
Device(s): Torch 9800
 
Location: Canada
Join Date: Jun 2011
Posts: 95
Likes Received: 2
Thanked 5 Times in 5 Posts
Default

Actually if you use the custom 6 layout in tb and check off enable landscape homescreen, when TB exports, it still only creates the one homescreen.svg for both views....unlike blackberry6 layout where you always get the two. And from what I can see, there's no begin/end for the portrait and landscape in regards to the today items...so it looks like its just using the one set of today elements for both portrait and landscape.....soooo I would assume the one set of hidden code would work for both views as well. I havent had the chance to try it out yet though.
Reply With Quote Tip this Post
  #6  
Old 08-24-2011, 10:30 AM
CrackBerry Genius
Device(s): iPhone 4s
Carrier: Verizon
 
Join Date: Nov 2009
Posts: 2,310
Likes Received: 88
Thanked 169 Times in 112 Posts
Default

what it does when it exports is combine the two.. but it puts each piece inside of other code that separates the landscape and portrait. So, if you put it all in the port svg it will not be in the right location in the exported homescreen.svg - so you have to use 2 svgs. (or if you are up to it.. manually altering the homescreen.svg to split them.. no thanks! lol)
__________________
Reply With Quote Tip this Post
    Thread Author   #7  
Old 08-24-2011, 11:46 AM
CrackBerry User
Device(s): Torch 9800
 
Location: Canada
Join Date: Jun 2011
Posts: 95
Likes Received: 2
Thanked 5 Times in 5 Posts
Default

Ugh....when I did a quick test of this to check out the code, I didnt add any today items in for landscape view because I had the link portrait/landscape button checked in TB...and assumed that it would apply the items i added in landscape as well...and I didnt check. Thats why I wasnt seeing the

begin="custom(oc_to_landscape)"
end="custom(oc_to_portrait)"/>

for the 2 views...the today items were only in portrait. I did another quick test and yea, Im seeing it now. And theres a crapload of lines of code switching between the 2 for the portrait and landscape. Also, There doesnt seem to be any reference to hs0, hs0_line, hs1, or hs1_line in there anywhere....but I am seeing the calendar1hotspot, messages1hotspot...etc. So Im assuming if I put in the full code:

<set xlink:href="#hs0_line" attributeName="display" to="none" begin="0"/>
<set xlink:href="#hs0" attributeName="display" to="none" begin="0"/>
<set xlink:href="#calendar1hotspot" attributeName="display" to="none" begin="0"/>

then I would get some kind of error about hs0 and hs0_line not being defined. I guess I could try to omit those lines and just go with the individual hotspot codes....but theres waaaaaay too many spots that would have to be altered. For say calendar1hotspot alone, theres a ton....for each focusin and focusout, portrait, landscape, etc...and some of the code generated by TB seems pretty redundant.

Im thinking its best to leave the hidden today in portrait only for the torch....the code is much more straight forward, and its not like its the end of the world having to access your today items in portrait only...I have a torch and I look at my notifications in portrait only all the time.
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   Custom6 theme for torch with hidden docks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes