FORUMS
Remove All Ads from XDA

[TOOL][8/14/11]BatteryIconMaker-Generate % battery icons.Vertical,Horizontal,Circular

675 posts
Thanks Meter: 109
 
By jsmith8858, Senior Member on 16th July 2011, 02:34 PM
Post Reply Email Thread
30th July 2011, 01:37 AM |#11  
OP Senior Member
Flag Boston
Thanks Meter: 109
 
More
Quote:
Originally Posted by raider3bravo

I just made another battery icon. This program is a huge time-saver.

When I asked about the power widgets. I was wanting to know if it's possible to include those images in the battery icon similar to the numbers being populated in the icon. The battery power widgets are easy to get but populating them inside a battery icon can be tricky and again time consuming. Just putting the thought out there. I'm happy the way it is, but maybe consider it for a future update?

I'm afraid that I don't really understand what you are requesting, can you be a little more specific or explain a bit more what you are trying to do?
3rd August 2011, 07:19 PM |#12  
AndroidGraphix's Avatar
Senior Member
Flag Paradise Valley, AZ
Thanks Meter: 378
 
Donate to Me
More
Quote:
Originally Posted by jsmith8858

I'm afraid that I don't really understand what you are requesting, can you be a little more specific or explain a bit more what you are trying to do?

Sure thing. Right now, the script populates 100 icons. However, there are 110 "battery icons." The other 10 are for charging. What I'm requesting is if the script could somehow, populate those charging icons along with the modified battery png's. I can easily add the charging icons but theming them will be a huge hassle. If it's possible, great. No big deal if it can't be done right now. I'm just thankful we have this script to make all 100 Png's.
3rd August 2011, 11:23 PM |#13  
[-Amrish-]'s Avatar
Senior Member
Thanks Meter: 173
 
More
How do I compress series png files as 1png file?

I'm running MIUI galnet 6.0 and need to add 1 png file that has all the percentage inside (0-100)

Do you guys know how I need to do this?

Thanks
10th August 2011, 07:39 PM |#14  
R3D X's Avatar
Senior Member
Flag NJ
Thanks Meter: 2,291
 
Donate to Me
More
This is amazing! Why doesen't everyone use it! Please create charging and different types of batteries like circular ones!
15th August 2011, 02:25 AM |#16  
OP Senior Member
Flag Boston
Thanks Meter: 109
 
More
Version .2
Here's version .2. The OP will be updated at some point when I have time to rewrite it.

Changes:

1) The % text is now smoothed and anti-aliased.

2) You can draw a circular progress bar by specifying rotateStart and rotateEnd attributes for the bar element. These are in degrees (0-360). The "bar" image will be drawn at the startX, startY point (usually 0,0; omit if you like as this is the default) and then repeatedly rotated and drawn up to the currently drawn battery level. endX and endY are ignored if you use rotation. (The included config.xml file has an example of using this feature.)

3) You can now specify a "step" attribute in the batteryLevels element. This allows you to draw icons for only every nth battery level, say, 0,5,10,15...90,95,100. (the default config.xml file includes this attribute so you can see where it is; it is set to 1, which is the default.)

4) in the bar element, you can specify drawCount and skipCount attributes to toggle drawing the progress bar on and off to make a "dotted progress bar" effect. This is often done for circular battery icons. Basically, specify how many % to draw and then how many % to skip using these attributes. (The included config.xml file has an example of using this feature.)

5) An image called "preview.png" will be created in the output folder with a simple compilation of all of your icons in one image. This is useful for posting for others to see or for you to quickly review all in 1 place.

The standard horizontal bar example included with the app has been renamed to "config-bar.xml", while the default "config.xml" included creates a dotted circular progress bar and includes most of the features described above.

Have fun! See some attached examples. (PLEASE NOTE: I literally threw the examples together in 10 minutes, they are a little sloppy since I didn't take the time to line things up perfectly, you can do better!)
Attached Thumbnails
Click image for larger version

Name:	example-circular dotted.png
Views:	562
Size:	47.6 KB
ID:	689067   Click image for larger version

Name:	example-horizontal-dotted.png
Views:	544
Size:	22.4 KB
ID:	689068   Click image for larger version

Name:	example-circular smooth.png
Views:	459
Size:	48.0 KB
ID:	689069   Click image for larger version

Name:	example-circular alternate.png
Views:	424
Size:	52.6 KB
ID:	689070   Click image for larger version

Name:	example - circular dotted alt.png
Views:	456
Size:	49.3 KB
ID:	689076  
Attached Files
File Type: zip BatteryIconMakerv.2.zip - [Click for QR Code] (9.9 KB, 444 views)
The Following 7 Users Say Thank You to jsmith8858 For This Useful Post: [ View ] Gift jsmith8858 Ad-Free
18th August 2011, 08:57 PM |#17  
R3D X's Avatar
Senior Member
Flag NJ
Thanks Meter: 2,291
 
Donate to Me
More
this tool is premium quality!
19th August 2011, 03:12 AM |#18  
OP Senior Member
Flag Boston
Thanks Meter: 109
 
More
Since no one really knows about this tool, I have two requests:

1) If you use this for a theme you make available to others here on XDA, if you could include a link to this thread and (very) briefly mention that you used this to generate your icons that would be much appreciated.

2) Maybe a few clicks to "Submit to Portal" (on the top-right) can get this thread on the XDA home page! (I apologize if soliciting this is against forum rules)

3) Share your work here! Use the cool "preview.png" feature to post some examples of what you've created.

Enjoy!
19th August 2011, 01:51 PM |#19  
OP Senior Member
Flag Boston
Thanks Meter: 109
 
More
Quote:
Originally Posted by R3D X

this tool is premium quality!

Thanks, glad it works for you!
11th September 2011, 05:33 AM |#20  
AndroidGraphix's Avatar
Senior Member
Flag Paradise Valley, AZ
Thanks Meter: 378
 
Donate to Me
More
Quote:
Originally Posted by jsmith8858

Since no one really knows about this tool, I have two requests:

1) If you use this for a theme you make available to others here on XDA, if you could include a link to this thread and (very) briefly mention that you used this to generate your icons that would be much appreciated.

2) Maybe a few clicks to "Submit to Portal" (on the top-right) can get this thread on the XDA home page! (I apologize if soliciting this is against forum rules)

3) Share your work here! Use the cool "preview.png" feature to post some examples of what you've created.

Enjoy!

Ya, this should have been on the homepage of XDA months ago. lol. Thanks for the update. I know I included a link on my first theme to this thread, but forgot about the others. I'll mention you now in every OP. Thanks a million. My themes wouldn't be possible without this. Submitting to portal now!
9th October 2011, 05:45 PM |#21  
MJPollard's Avatar
Senior Member
Flag Wixom, Michigan
Thanks Meter: 950
 
More
Excellent tool, Jeff! Saves people hours and days of slaving over Photoshop to create each individual icon. I'd be tearing my hair out right about now, and I can't spare any.

I do have a suggestion for a future release, and it is related to the "battery charge animation icons" thing mentioned earlier. It's easy enough to create a set of stat_sys_battery_charge_anim##.png files by creating a custom XML, but currently there is no way to add a symbol (such as a "lightning bolt") on top of the generated image. That would be a neat feature to add: the ability to specify a .png file, instead of text, that could be overlaid onto the image. The overlay .png would have to use transparency, of course, but that would be the user's issue. This would allow any sort of custom graphic to be overlaid on top of the icons. (Right now, I just did a quick-and-dirty hack by using the text feature to overlay an "X" onto each icon, but I'd prefer to have a symbol.) If you could add this feature, I think your utility would truly be the answer to everyone's dream!

Again, thanks for such a useful app!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes