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 03-15-2011, 05:23 PM
CrackBerry Abuser
Device(s): Unlocked 9700 (Bold) / 32GB Playbook
Carrier: Rogers
Pin: hrm...
 
Location: Toronto, Canada
Join Date: Nov 2010
Posts: 264
Likes Received: 2
Thanked 16 Times in 15 Posts
Default Using SVG code from Homscreen.svg

I wish to change the speed at which the application description text fades/unfades from the homescreen.

I have found this code within the homescreen.svg file:

Entire Block of code for the Application Description text:

Code:
<switch>
    <foreignObject x="0"
          y="0"
          width="0"
          height="0"
          xlink:href="dummy"
          requiredExtensions="x-object:/EntryDescription"
          display="none">
      x-object:/EntryDescription?showname&amp;width=276&amp;height=25&amp;font-family=BBAlpha Sans&amp;font-style=plain&amp;font-size=20&amp;fill=ffffff&amp;id=net_rim_bb_calendar_app.Calendar&amp;align=center&amp;enclosing=()&amp;showinfo=left&amp;target=status_font_description1
    </foreignObject>
  </switch>
  <text id="status_font_description1"
        x="148"
        y="348"
        font-family="BBAlpha Sans"
        font-size="20"
        fill="#ffffff"
        display="none"
        text-anchor="middle"/>
  <set xlink:href="#status_font_description1"
        attributeName="display"
        to="inline"
        begin="hs2.focusin"
        end="hs2.focusout"/>
  <animate xlink:href="#status_font_description1"
        attributeName="opacity"
        values="0;0;1;1;0"
        keyTimes="0;.1;.175;.8;1"
        dur="5"
        begin="hs2.focusin"
        end="hs2.focusout"
        fill="freeze"/>
Code which I wish to change:
Code:
<animate xlink:href="#status_font_description1" 
        attributeName="opacity" values="0;0;1;1;0" 
        keyTimes="0;.1;.175;.8;1" 
        dur="5" 
        begin="hs2.focusin" 
        end="hs2.focusout" 
        fill="freeze"/>
The duration was initially 5. I tried changing this to 3 and placed it just before the end of the svg file (</svg>) which I import into TB.

I receive no errors during import/export and the theme loads fine however there is no change in the duration of the fade effect...


Any suggestions? Is it the keytimes? Or am I not placing it correctly in the svg file? Do I need to place the whole block of code in my svg file or just the line I wish to change?

Edit: I exported my theme and took a look at the homescreen.svg file with the added code. It appears the code I add in my svg file is placed above the full code block which I listed above. Is it not executing the code I desire because there is similar code below it? I am going to try and remove the application name from TB and copy the code from Homescreen.svg and then add it that way in my svg file...hopefully that will work!

Edit #2: Ok so that didn't work..."Unable to parse <switch> correctly" was the error. I found a post stating that you cannot use switch within your svg file. Anyone know how to work around this?
__________________
32GB Playbook
Unlocked Bold 9700 - Berrylicious VI Hybrid

Last edited by Justam; 03-15-2011 at 06:57 PM.
Reply With Quote Tip this Post
    Thread Author   #2  
Old 03-16-2011, 06:28 PM
CrackBerry Abuser
Device(s): Unlocked 9700 (Bold) / 32GB Playbook
Carrier: Rogers
Pin: hrm...
 
Location: Toronto, Canada
Join Date: Nov 2010
Posts: 264
Likes Received: 2
Thanked 16 Times in 15 Posts
Default

anybody!?!............
__________________
32GB Playbook
Unlocked Bold 9700 - Berrylicious VI Hybrid
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   Using SVG code from Homscreen.svg

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes