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 05-08-2011, 08:49 PM
CrackBerry Abuser
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Aug 2008
Posts: 121
Likes Received: 0
Thanked 6 Times in 1 Post
Default How do I hide the clock in landscape using SVG for Torch?

I have been struggling with this for about a week now. I can easily hide the time clock in portrait view on the torch using the following code:

<set xlink:href="#BannerTime-home" attributeName="display" to="none" begin="0"/>

however, the following code to hide the clock when in landscape mode does not seem to work at all:

<set xlink:href="#BannerTime-homescreen__Landscape" attributeName="display" to="none" begin="0"/>

I am almost positive this code worked for me before upgrading to the unofficially named theme builder beta 2. Anyone know the coding to complete this task for the Torch? Your help would be much appreciated.


thanks in advance,


Jtekt
Reply With Quote Tip this Post
  #2  
Old 05-12-2011, 03:00 PM
Banned
 
Join Date: May 2011
Posts: 24
Likes Received: 0
Thanked 1 Time in 1 Post
Default

Have you tried looking at the homescreen.svg in the temp folder?
Reply With Quote Tip this Post
  #3  
Old 05-12-2011, 07:48 PM
CrackBerry Master
Device(s): 9850 7.1.0.402 + PlayBook 16Gb
Carrier: Verizon
Pin: PM me for it!
 
Location: Eastern Shore of MD
Join Date: Sep 2008
Posts: 1,091
Likes Received: 119
Thanked 217 Times in 126 Posts
Default

Here's the problem:

Code:
<image
      id="BannerTime-home"
      x="115"
      y="83"
      width="130"
      height="40"
      xlink:href="x-object:/CurrentDateTime?clocktype=time&amp;width=130&amp;height=40&amp;font-family=theme_Untitled_2-0&amp;font-style=plain&amp;font-size=40&amp;fill=fefefe&amp;align=center&amp;altFont=BBMillbank&amp;ampmSize=40"/>
<set
      xlink:href="#BannerTime-home"
      attributeName="display"
      to="none"
      begin="custom(oc_to_landscape)"
      end="custom(oc_to_portrait)"/>
<image
      id="BannerTime-homescreen__Landscape"
      x="176"
      y="74"
      width="130"
      height="40"
      display="none"
      xlink:href="x-object:/CurrentDateTime?clocktype=time&amp;width=130&amp;height=40&amp;font-family=theme_Untitled_2-0&amp;font-style=plain&amp;font-size=40&amp;fill=fefefe&amp;align=center&amp;altFont=BBMillbank&amp;ampmSize=40"/>
<set
      xlink:href="#BannerTime-homescreen__Landscape"
      attributeName="display"
      to="inline"
      begin="custom(oc_to_landscape)"
      end="custom(oc_to_portrait)"/>
The ID's you are using are correct, however, in the homescreen.svg the theme is setting the display attribute to inline/none depending on the orientation used. In other words, even though you're hiding the time on the landscape screen, the theme builder generated svg is re-displaying it when it picks up on the orientation changing.

One way you are going to get around this is by using my method for compiling the theme by hand and changing the homescreen.svg directly. Another method would be to add your own code for responding to the orientation change events and adding a time delay, i.e. "begin(oc_to_landscape)+1".

Can I ask why you didn't just turn the clock off in theme builder?

Russ.
__________________
"If anyone would come after me, let him deny himself and take up his cross and follow me" - Matthew 16:24

Follow me on twitter: graymatteron

Last edited by russnash; 05-12-2011 at 07:53 PM.
Reply With Quote Tip this Post
    Thread Author   #4  
Old 05-20-2011, 11:30 AM
CrackBerry Abuser
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Aug 2008
Posts: 121
Likes Received: 0
Thanked 6 Times in 1 Post
Default

Quote:
Originally Posted by russnash View Post
Here's the problem:

Code:
<image
      id="BannerTime-home"
      x="115"
      y="83"
      width="130"
      height="40"
      xlink:href="x-object:/CurrentDateTime?clocktype=time&amp;width=130&amp;height=40&amp;font-family=theme_Untitled_2-0&amp;font-style=plain&amp;font-size=40&amp;fill=fefefe&amp;align=center&amp;altFont=BBMillbank&amp;ampmSize=40"/>
<set
      xlink:href="#BannerTime-home"
      attributeName="display"
      to="none"
      begin="custom(oc_to_landscape)"
      end="custom(oc_to_portrait)"/>
<image
      id="BannerTime-homescreen__Landscape"
      x="176"
      y="74"
      width="130"
      height="40"
      display="none"
      xlink:href="x-object:/CurrentDateTime?clocktype=time&amp;width=130&amp;height=40&amp;font-family=theme_Untitled_2-0&amp;font-style=plain&amp;font-size=40&amp;fill=fefefe&amp;align=center&amp;altFont=BBMillbank&amp;ampmSize=40"/>
<set
      xlink:href="#BannerTime-homescreen__Landscape"
      attributeName="display"
      to="inline"
      begin="custom(oc_to_landscape)"
      end="custom(oc_to_portrait)"/>
The ID's you are using are correct, however, in the homescreen.svg the theme is setting the display attribute to inline/none depending on the orientation used. In other words, even though you're hiding the time on the landscape screen, the theme builder generated svg is re-displaying it when it picks up on the orientation changing.

One way you are going to get around this is by using my method for compiling the theme by hand and changing the homescreen.svg directly. Another method would be to add your own code for responding to the orientation change events and adding a time delay, i.e. "begin(oc_to_landscape)+1".

Can I ask why you didn't just turn the clock off in theme builder?

Russ.
Thanks Russ. This makes sense. The reason I have chosen to use this method and not just turn off the clock is because I was using [the artist formerly known as] Vince the Prince's Big Clock method. This method needs both clocks present, which you then override with code, in order to use a custom font.

Last edited by JTekt; 05-20-2011 at 11:33 AM. Reason: misspelling, better clarification in explanation
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   How do I hide the clock in landscape using SVG for Torch?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes