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-11-2011, 06:37 PM
CrackBerry Addict
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Mar 2009
Posts: 835
Likes Received: 12
Thanked 159 Times in 63 Posts
Default Shrink the homescreen wallpaper?

I've seen themes where they are able to wrap icons around a miniature version of the wallpaper which allows the user to see their full wallpaper; how is this done?
__________________
#eric_on_twit
Reply With Quote Tip this Post
  #2  
Old 03-13-2011, 11:26 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

I will try to post the code tomorrow...away from pc at the moment.

Posted from my CrackBerry at wapforums.crackberry.com
Reply With Quote Tip this Post
  #3  
Old 03-13-2011, 12:30 PM
CrackBerry Master
Device(s): Torch 9850 / 64 gb PB
Carrier: Verizon
 
Join Date: Dec 2008
Posts: 1,163
Likes Received: 12
Thanked 4 Times in 4 Posts
Default

You are not talking about transparency/opacity, right ? Can you include an example of what you are talking about ? Doctor Neutron
Reply With Quote Tip this Post
  #4  
Old 03-14-2011, 05:33 AM
CrackBerry Genius
Device(s): 9930 + 9850 (Torch2) + PlayBook 64
Carrier: I don't even know her?!?
 
Location: 322oh8
Join Date: Nov 2009
Posts: 2,348
Likes Received: 368
Thanked 444 Times in 162 Posts
Default

Easiest way...
In composer...import an image the size of default wp.

Open animation window.
Move the animation forward 5 or so frames.
Change the size of the image (by clicking on it and changing the w: h: values on the toolbar.

Export.
Edit svg.
Take the Imgsrc? line from the image you put in and replace with the wallpaper Imgsrc? line from the homescreen svg.


Posted from my BlackBerry using BerryBlab
__________________
Discontent is the first necessity of progress --Thomas A. Edison
drkapprentice @drkapprentice
Reply With Quote Tip this Post
  #5  
Old 03-14-2011, 06:38 AM
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

Code:
<g  id="miniwallpaper"
	transform="translate(-156 -209) scale(0.871866 0.550004)">
	<!-- pz:tag type="button" -->
<g  id="miniwallpaper-Contents">
	<!-- pz:tag type="layer" -->
<image id="miniwallp" x="0" y="0" width="360" height="480"
        xlink:href="x-object:/Image?src=wallpaper&amp;width=360&amp;height=480"/>
</g>
</g>
for scale: 1.0 = 100%
Reply With Quote Tip this Post
  #6  
Old 03-14-2011, 08:48 AM
CrackBerry Genius
Device(s): 9930 + 9850 (Torch2) + PlayBook 64
Carrier: I don't even know her?!?
 
Location: 322oh8
Join Date: Nov 2009
Posts: 2,348
Likes Received: 368
Thanked 444 Times in 162 Posts
Default

Or you could do that

Posted from my BlackBerry using BerryBlab
__________________
Discontent is the first necessity of progress --Thomas A. Edison
drkapprentice @drkapprentice
Reply With Quote Tip this Post
  #7  
Old 03-14-2011, 09:49 AM
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

LOL



10 chars
Reply With Quote Tip this Post
    Thread Author   #8  
Old 03-14-2011, 11:06 AM
CrackBerry Addict
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Mar 2009
Posts: 835
Likes Received: 12
Thanked 159 Times in 63 Posts
Default

Quote:
Originally Posted by dcburke789 View Post
Easiest way...
In composer...import an image the size of default wp.

Open animation window.
Move the animation forward 5 or so frames.
Change the size of the image (by clicking on it and changing the w: h: values on the toolbar.

Export.
Edit svg.
Take the Imgsrc? line from the image you put in and replace with the wallpaper Imgsrc? line from the homescreen svg.


Posted from my BlackBerry using BerryBlab
Thanks dcburke.

Quote:
Originally Posted by molson0 View Post
Code:
<g  id="miniwallpaper"
	transform="translate(-156 -209) scale(0.871866 0.550004)">
	<!-- pz:tag type="button" -->
<g  id="miniwallpaper-Contents">
	<!-- pz:tag type="layer" -->
<image id="miniwallp" x="0" y="0" width="360" height="480"
        xlink:href="x-object:/Image?src=wallpaper&amp;width=360&amp;height=480"/>
</g>
</g>
for scale: 1.0 = 100%
I have built themes in composer, but I have not edited SVG yet. I'm assuming the above code is within the SVG from Composer and not something from Theme Builder? Do I just use my text editing program (Crimson Editor) to edit these lines of code in the SVG?
__________________
#eric_on_twit
Reply With Quote Tip this Post
  #9  
Old 03-14-2011, 11: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

cut down the code

Quote:
<image x="62" y="195" width="360" height="480"
xlink:href="x-object:/Image?src=wallpaper&amp;width=360&amp;height=480"
transform="scale(0.586369 0.603713)"/>
__________________
Reply With Quote Tip this Post
    Thread Author   #10  
Old 03-14-2011, 11:59 AM
CrackBerry Addict
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Mar 2009
Posts: 835
Likes Received: 12
Thanked 159 Times in 63 Posts
Default

molson, using the code you provided, and testing in simulator, the screenshot below is what I ended up with. I also added the SVG in text format if you want to take a look and advise. Thanks for your help so far by the way!

Looks like I'm really close, I just need to figure out how to get rid of the original BG? Or, do I just use a solid dock to wrap where the original BG is?

Attached Images
File Type: png ShrinkTest.png (178.3 KB, 27 views)
Attached Files
File Type: txt ShrinkTest.txt (40.3 KB, 2 views)
__________________
#eric_on_twit
Reply With Quote Tip this Post
    Thread Author   #11  
Old 03-14-2011, 12:03 PM
CrackBerry Addict
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Mar 2009
Posts: 835
Likes Received: 12
Thanked 159 Times in 63 Posts
Default

Quote:
Originally Posted by StaticFX View Post
cut down the code
I will give that a shot as well, thanks!!
__________________
#eric_on_twit
Reply With Quote Tip this Post
  #12  
Old 03-14-2011, 12:04 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

Quote:
Originally Posted by StaticFX View Post
cut down the code

hehe.....Thanky
Reply With Quote Tip this Post
    Thread Author   #13  
Old 03-14-2011, 12:13 PM
CrackBerry Addict
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Mar 2009
Posts: 835
Likes Received: 12
Thanked 159 Times in 63 Posts
Default

I'm getting molson's code figured out (still have the original BG behind it though). StaticFX, I tried your code, but nothing seemed to happen. I am extremely new to editing the SVG... OK, this is my first time to give it a shot. Do I need the <g> code at all for your script or should it work as is?

note; I am "coding friendly" and have played with HTML/PHP quiet a bit over the years, so I'm not skeered to code, just have to get it figured out.

Attached is what I did with StaticFX's code...
Attached Files
File Type: txt ShrinkTest2.txt (40.1 KB, 2 views)
__________________
#eric_on_twit

Last edited by KahneFan; 03-14-2011 at 12:19 PM.
Reply With Quote Tip this Post
  #14  
Old 03-14-2011, 12:20 PM
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

yeah sorry.. it needs to be in a g set

Quote:
<g id="wallpaper">
<image x="62" y="195" width="360" height="480"
xlink:href="x-object:/Image?src=wallpaper&amp;width=360&amp;height=480"
transform="scale(0.586369 0.603713)"/>
</g>
also, you cant get rid of the wallpaper... you need to put another image behind the wallpaper.. or a rect... like this:

Quote:

<g id="wallpaper">
<rect x="-180" y="-240" width="360" height="480" fill="black" />
<image x="62" y="195" width="360" height="480"
xlink:href="x-object:/Image?src=wallpaper&amp;width=360&amp;height=480"
transform="scale(0.586369 0.603713)"/>
</g>
that will fill the background with black
__________________
Reply With Quote Tip this Post
    Thread Author   #15  
Old 03-14-2011, 12:35 PM
CrackBerry Addict
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Mar 2009
Posts: 835
Likes Received: 12
Thanked 159 Times in 63 Posts
Default

Quote:
Originally Posted by StaticFX View Post
yeah sorry.. it needs to be in a g set



also, you cant get rid of the wallpaper... you need to put another image behind the wallpaper.. or a rect... like this:



that will fill the background with black
No biggie, I will just make solid colored docks to cover. Thanks!! Pay no attention to how ugly this is, but here's a test screen...

Attached Images
File Type: png ShrinkTest2.png (74.6 KB, 27 views)
__________________
#eric_on_twit
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   Shrink the homescreen wallpaper?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes