MEMORIAL DAY SALE: Save 15% on ALL BlackBerry Accessories! Use Coupon Code MEM12.
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 12-10-2009, 08:06 AM
CrackBerry User
Device(s): 8900 (Curve)
Carrier: O2
 
Location: Germany
Join Date: May 2009
Posts: 43
Likes Received: 1
Thanked 0 Times in 0 Posts
Default Icon Focus in different size?

Hi guys!

I try to make a new theme where the icon I focus is bigger than the others.
Just to make clear what I mean: I want some effect like on the Mac in the bottom bar!

I tried this code, but the Icon doesn't scale... it just stayes the same size!


Quote:
<g id="Theme_Button_1"
transform="translate(-224 100)">
<!-- pz:tag type="button" -->
<useApplicationIcons app-id="slot0"
normal-group="normalImage"
focus-group="focusImage"/>
<g id="Theme_Button_1-Contents">
<!-- pz:tag type="layer" -->
<g id="normalImage">
<image id="img_1_5_72"
x="0" y="0" width="80" height="80"
xlink:href="Images/normalImage_img_1_5.png"/>
<image id="img_11_5_73"
x="0" y="0" width="80" height="80"
xlink:href="Images/normalImage_img_1_5.png" visibility="hidden"/>
<image id="img_21_5_74"
x="0" y="0" width="80" height="80"
xlink:href="Images/normalImage_img_1_5.png" visibility="hidden"/>
<image id="img_31_5_75"
x="0" y="0" width="80" height="80"
xlink:href="Images/normalImage_img_1_5.png" visibility="hidden"/>
</g>
<g id="focusImage">
<image id="img_1_5_76"
x="0" y="0" width="80" height="80"
xlink:href="Images/focusImage_img_1_5.png" visibility="hidden"
transform="scale(1.25 1.25)"/>
<image id="img_11_5_77"
x="0" y="0" width="80" height="80"
xlink:href="Images/focusImage_img_1_5.png" visibility="hidden"
transform="scale(1.25 1.25)"/>
<image id="img_21_5_78"
x="0" y="0" width="80" height="80"
xlink:href="Images/focusImage_img_1_5.png" visibility="hidden"
transform="scale(1.25 1.25)"/>
<image id="img_31_5_79"
x="0" y="0" width="80" height="80"
xlink:href="Images/focusImage_img_1_5.png" visibility="hidden"
transform="scale(1.25 1.25)"/>
</g>
</g>
</g>
Please help me!

Of course the Icons should be customizable, with fixed Icons it wouldn't be a problem.

Hope you can help!

ruebyi
Reply With Quote Tip this Post
  #2  
Old 12-10-2009, 02:36 PM
CrackBerry Master
Device(s): 9930 (Bold)
Carrier: Sprint/Nextel
 
Join Date: Oct 2009
Posts: 1,014
Likes Received: 30
Thanked 38 Times in 19 Posts
Default

I'm interested in this as well.
Reply With Quote Tip this Post
    Thread Author   #3  
Old 12-13-2009, 03:43 PM
CrackBerry User
Device(s): 8900 (Curve)
Carrier: O2
 
Location: Germany
Join Date: May 2009
Posts: 43
Likes Received: 1
Thanked 0 Times in 0 Posts
Default

is really nobody here, who has an answer? or is it just impossible?

ruebyi
Reply With Quote Tip this Post
  #4  
Old 12-14-2009, 10:16 PM
CrackBerry Master
Device(s): 9930 (7.1.0.267) | Playbook (2.0.0.7971)
Carrier: Verizon
 
Location: Colorado
Join Date: Jul 2009
Posts: 1,273
Likes Received: 183
Thanked 123 Times in 60 Posts
Default

Try this.

Find the location where your core icons are stored. For instance,

C: > programs files > research in motion > BB Theme Studio 5.0 > Samples > Themes > Images > Precision 480x360 > Icons

Copy all of those icons into a new folder at a place of your choosing.

Now using an imaging editor to resize the default_application_focus icon to the size you want. I"m assuming you want the normal icon to remain the same, otherwise you can resize default_application icon as well.

Now open composer and go to edit > preferences. On the miscellaneous tab, look for Theme Builder Icons. In the pulldown select "browse." Now navigate to the folder you just created, with the resized default app icons and select it. OK, OK and you're back in composer.

Now when you create a new button, and change it to "use device applicaiton order" in the inspector, the focus icon will automatically be resized. Should not need to edit the SVG file.

This will only work for "use device app order" icons, but I think that's what you wanted to do. It works for me making them smaller, so it should work going bigger.
__________________
Foppa Themes Website
Reply With Quote Tip this Post
    Thread Author   #5  
Old 12-15-2009, 05:26 PM
CrackBerry User
Device(s): 8900 (Curve)
Carrier: O2
 
Location: Germany
Join Date: May 2009
Posts: 43
Likes Received: 1
Thanked 0 Times in 0 Posts
Default

Quote:
This will only work for "use device app order" icons, but I think that's what you wanted to do. It works for me making them smaller, so it should work going bigger.
Sorry no, thats exactly what I know how to do!

I want to use any Applilcation Icon and want to be able to use "application order"
Reply With Quote Tip this Post
  #6  
Old 12-16-2009, 12:06 AM
CrackBerry Master
Device(s): 9930 (7.1.0.267) | Playbook (2.0.0.7971)
Carrier: Verizon
 
Location: Colorado
Join Date: Jul 2009
Posts: 1,273
Likes Received: 183
Thanked 123 Times in 60 Posts
Default

Quote:
Originally Posted by ruebyi View Post
Sorry no, thats exactly what I know how to do!

I want to use any Applilcation Icon and want to be able to use "application order"
By changing the default_application_focus to a larger pixel size, and selecting "use application order" when adding a button, it will resize any app icon that the user puts in that app slot. This isn't working?
__________________
Foppa Themes Website
Reply With Quote Tip this Post
    Thread Author   #7  
Old 12-16-2009, 08:44 AM
CrackBerry User
Device(s): 8900 (Curve)
Carrier: O2
 
Location: Germany
Join Date: May 2009
Posts: 43
Likes Received: 1
Thanked 0 Times in 0 Posts
Default

sorry! Now I understood!

I'll report what happen!
Reply With Quote Tip this Post
    Thread Author   #8  
Old 12-16-2009, 05:59 PM
CrackBerry User
Device(s): 8900 (Curve)
Carrier: O2
 
Location: Germany
Join Date: May 2009
Posts: 43
Likes Received: 1
Thanked 0 Times in 0 Posts
Default

THANKS! this worked!

You're great! Now I have only to experiment with the aligment of the smaller/bigger Icon
Reply With Quote Tip this Post
  #9  
Old 12-16-2009, 07:30 PM
CrackBerry Addict
Device(s): Storm2 9550
Carrier: Verizon
 
Location: Chico, CA
Join Date: Mar 2009
Posts: 859
Likes Received: 0
Thanked 1 Time in 1 Post
Default

What image editor are you using?

In Paint.net, you can change the image size, which grows or shrinks the entire image.

You can also change canvas size, which changes the dimensions of the image but keeps the picture at the same size. This can result cropping the image if you shrink it, or increasing the blank space if you grow it.

Here's a suggestion to keep the image alignment intact (assuming you're using 73x73 icons for a Storm; adjust accordingly):

Open your original icon in Paint.net, use Image-->Resize to take it down to 60x60. Save as icon_focus.png or whatever.

Now use Image --->Canvas Size and go back to 72x72. At the bottom of the canvas size window, you can set your anchor point; keep it centered so the canvas will grow equally in all directions.

The additional border space around your original image will be white, so you'll have to erase it if you have a transparent background.
Reply With Quote Tip this Post
    Thread Author   #10  
Old 12-18-2009, 01:33 AM
CrackBerry User
Device(s): 8900 (Curve)
Carrier: O2
 
Location: Germany
Join Date: May 2009
Posts: 43
Likes Received: 1
Thanked 0 Times in 0 Posts
Default

sorry, but this Way didn't work for me! It only recognizes 2 files with the same pixel size not the drawn Item size! I edited the svg istead, works brilliant!

Last edited by ruebyi; 12-18-2009 at 02:28 AM.
Reply With Quote Tip this Post
  #11  
Old 05-02-2010, 01:56 PM
CrackBerry Addict
Device(s): 9630 (Tour)
Carrier: Verizon
 
Location: bay area Ca
Join Date: Sep 2009
Posts: 978
Likes Received: 4
Thanked 7 Times in 7 Posts
Default

this is an old thread but I'm having trouble getting this to work.

i pointed composer to my folder with all 80x80 icons, non-focus icons have been shrunk in photoshop, the preview in composer looks right but when i import to theme builder and export its all one size. how is this happening?
Reply With Quote Tip this Post
  #12  
Old 05-06-2010, 08:19 PM
CrackBerry Genius
Device(s): 9930
Carrier: Big Red
Pin: TBA
 
Join Date: Feb 2009
Posts: 1,649
Likes Received: 5
Thanked 14 Times in 10 Posts
Default

Do you want to resize the icons on the home screen while using app order?

Blackberry Tutorial: Resize buttons on home screen (video)
__________________

*** Blackberry Theme Lab ***
Icons, Tutorials, OTA Hosting and more!
FOLLOW US: Twitter | Facebook
Want to chat??? PIN: 32A439D7
I LOVE MY PLAYBOOK!!!
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   Icon Focus in different size?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes