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 11-07-2011, 11:31 AM
CrackBerry User
 
Join Date: Dec 2010
Posts: 88
Likes Received: 7
Thanked 23 Times in 13 Posts
Default Dock Colors

I've been seeing alot of themes where you have the option to choose different colrs for youe dock, text, banners, etc. and it's absolutely driving me insane trying to figure out how to do this. If anyone knows and can help me out it would be greatly appreciated. Thanks!
__________________
Check Out My Blog

Like Me On Facebook

Follow Me On Twitter

Just A Girl Who Loves BB Themes
Reply With Quote Tip this Post
  #2  
Old 11-07-2011, 02:56 PM
CrackBerry Master
Device(s): 9800 (Torch)
Carrier: Telus
Pin: cushion
 
Join Date: Oct 2009
Posts: 1,294
Likes Received: 442
Thanked 286 Times in 153 Posts
Default

The following code would start your theme using "red" docks.

Once you hit the "Blue_Button", it turns the docks to Blue.

make your blue dock in Layer_1
make your red dock Layer_2
make your green dock Layer_3....or whatever.

Code:
<set xlink:href="#Layer_1" attributeName="visibility" to="none" begin="0"/>
<set xlink:href="#Layer_2" attributeName="visibility" to="visible" begin="0"/>
<set xlink:href="#Layer_3" attributeName="visibility" to="none" begin="0"/>

Code:
<set xlink:href="#Layer_1" attributeName="visibility" to="visible" begin="blue_button.activate"/>
<set xlink:href="#Layer_2" attributeName="visibility" to="none" begin="blue_button.activate"/>
<set xlink:href="#Layer_3" attributeName="visibility" to="none" begin="blue_button.activate"/>

You will need to do this for all colors.
Reply With Quote Tip this Post
  #3  
Old 11-28-2011, 08:36 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

the above is correct, further more you can go about the content of the layers 2 different ways. You can either: a) have multiple images which you separate into individual layers and then hide/show the layers accordingly. OR b) you can create a rectangle or watever shape in composer and then just change the colour of the object and place the different coloured objects into different layers. and then again hide/show accordingly. Option B will save on theme file size and if you are just having a straight forward rectangle like dock then that is most likely the option I would go with...... personally speaking of course....
__________________
32GB Playbook
Unlocked Bold 9700 - Berrylicious VI Hybrid
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   Dock Colors

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes