diff options
author | Tor Norbye <tnorbye@google.com> | 2012-07-25 16:43:46 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-07-27 16:45:04 -0700 |
commit | 279445ad4561895db41309681de8dd1544d0ae22 (patch) | |
tree | bdb7b35660a31e3b03e4c036279c768caab47ef6 /assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java | |
parent | 61c223a8db885680752fa3504da3bc078bce6798 (diff) | |
download | sdk-279445ad4561895db41309681de8dd1544d0ae22.zip sdk-279445ad4561895db41309681de8dd1544d0ae22.tar.gz sdk-279445ad4561895db41309681de8dd1544d0ae22.tar.bz2 |
Add support for icon generators in templates
This CL adds an <icon> element to the template xml file which
allows the template to request the icon generator to be
chained to the wizard to generate icons instead of using
hardcoded ones. The variable ${copyIcons} will be set in the
template context if for some reason the icons were not
generated (for example, because the surrounding template
infrastructure does not support icon generation.)
Example:
<globals file="globals.xml.ftl" />
<execute file="recipe.xml.ftl" />
+ <icons
+ type="notification"
+ name="${activityToLayout(viewClass)}"
+ background="#ff00ff"
+ foreground="#ffff00"
+ shape="square"
+ trim="true"
+ padding="5"
+ />
This CL also removes some obsolete code from the
graphic generators and wizards, and changes the default
icon used by new projects from the white circle with a
blue shape to the default packaging icon (which you can
then further customize.)
Change-Id: Ia039bf511b9939d01e16265449c1ad6c930279c2
Diffstat (limited to 'assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java')
-rw-r--r-- | assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java b/assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java index 5d18d4d..a88618c 100644 --- a/assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java +++ b/assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java @@ -77,11 +77,7 @@ public abstract class GraphicGenerator { /** Foreground effects styles */ public static enum Style { /** No effects */ - SIMPLE("fore1"), - /** "Fancy" effects */ - FANCY("fore2"), - /** A glossy look */ - GLOSSY("fore3"); + SIMPLE("fore1"); /** Id, used in filenames to identify associated stencils */ public final String id; |