aboutsummaryrefslogtreecommitdiffstats
path: root/assetstudio
Commit message (Collapse)AuthorAgeFilesLines
* Cherrypick 025af8 from master. do not merge.Roman Nurik2011-09-2931-11/+11
| | | | | | | | | | | Update Asset Studio launcher icon stencils per UX spec Per discussion with the Android UX team, we've decided to update the spec for launcher icons. In a future update we will change some of the underlying behavior to provide more shapes and allow freeform shapes. Change-Id: I8dcdd5884d093fd4a7713c5796dd2dc83784be83
* Use project minimum SDK to generate fewer iconsTor Norbye2011-09-0125-26/+73
| | | | | | | | | | | | | This changeset makes the icon generator consider the project's minimum SDK version, to only create necessary icons. For example, by default the tab icon generator will generate different icons for v5 and newer and folder older icons. With this CL, if the minimum SDK is 5 or higher, then only the newer style icons are created (and they are placed in the default drawable folder instead of a -v5 version of the folder). Similarly, notification icons for v11, v9 and older are also created conditionally. Change-Id: Id96d572d4b8f23cd59d0f1b983c6aea85683eb0f
* Add support for remaining asset types in Asset Studio WizardTor Norbye2011-09-0185-127/+1221
| | | | | | | | | | | | | | | | | | | | This changeset ports the remaining graphic generators from the HTML5 version (notifications, tabs, action bar), and hooks up wizard support for them. It also adds unit tests for the generators which generates images and compares them to known good versions. I ran these tests comparing them to the output from the HTML5 version of Asset Studio and all but 3 of the images varied less than 5% (and I verified the remaining manually and they're all fine and the difference is due to the images being aligned slightly differently.) The icon wizard is now also hooked up to the "New" button in the Resource Chooser for drawable resources, and this changeset also fixes a few related issues ("New" didn't work for file-based resources, and newly created resources weren't showing up in the selection list.) Change-Id: I48c49f1d5de452aa5b78e491d9b07e7156397fa9
* Add clipart support to the asset set wizardTor Norbye2011-08-023-0/+80
| | | | | | | | | | | This changeset adds clipart support to the asset set wizard. There is only one placeholder clipart image now but the code reads the available images from the jar dynamically. This changeset also adds "file exists - replace yes, no, always, never" handling for the generated icons. Change-Id: I38d0c40957eff4a9e844e29d61f2c57493bd10f0
* Add a text rendering utility class to the Asset Studio library.Roman Nurik2011-07-282-4/+114
| | | | | | | | | Add a text rendering utility class to the Asset Studio library. Also fix a tiny edge-case bug in image scaling. The text rendering class allows rendering a String with some options to a BufferedImage, for input as the sourceImage to a GraphicGenerator. Change-Id: I8e17e9a25ac2e48fa55e2994706aeb572da54223
* Asset Studio wizardTor Norbye2011-07-2760-26/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | This is an initial integration of the Android Asset Studio into Eclipse, as a New Asset wizard. It uses the Java port of the Android Asset Studio to generate the assets: https://code.google.com/a/google.com/p/android-asset-studio-java/ It only supports launcher icons, and some of the configurable parameters (file, shape, crop). To run it, put the AssetStudioLib.jar file into the the adt libs directory. There's a new "Asset Set" wizard in the New wizard, which will open up a two page wizard; the first page lets you select the project (which it attempts to pick up from context), as well as the type of asset to create, and the asset output name. In the second page there are the various widgets to tweak the code generator, and a preview area on the right which updates as you tweak the various controls. The main remaining work is to support additional asset types as they are added to the assetstudio generator library. Change-Id: I2e556337f8e5c3bc09e84b35a342ba05110abebc
* Initial commit for the Asset Studio library in the SDKRoman Nurik2011-07-1655-0/+714
Change-Id: I8f0aa6283af03c64c3563530defcf57ee2238bd8