New GWT Theme: Pinky?
Now that GWT has real themes, we're busy putting some nifty ones together. As I am the least gifted person in terms of visual design at Pathfinder Development, I thought I'd just tweak one of the existing ones -- standard.
So, how did I build my theme? First I created my GWT app with projectCreator:
./projectCreator -out /u1/dkappe/src/RedBlack -ant RedBlack cd /u1/dkappe/src/RedBlack/src # create out package and subdirs mkdir -p com/pathf/gwt/user/theme/redblack/public/gwt/redblack/images/ie6
Then I copied the images and css files from the gwt 1.5 trunk for standard into the directories below public, renaming anything from standard to redblack. There are xml files for normal, RTL (right to left) and "resources," and css files for normal (or left to right) and RTL (right to left).
In my simple style, I flipped blue and red in the images with GIMP and flipped blue and red in the css files by simply flipping the hex values in each of the colors defined in the css. Voila! Red instead of blue. Or actually kinda pink.
You build the jar by simply running
ant -f RedBlack.ant.xml package
I modified the ShowCase application by including
Normally, you would actually include the base theme instead of the empty "resources" xml.
I finished off the Showcase application by adding a Showcase.css file for redblack, a style for the redblack button, and modified the ShowCaseContants.java file to add my redblack style. I don't have the "view CSS" for redblack working yet. Something for another day.
/** * The available style themes that the user can select. */ String[] STYLE_THEMES = {"standard", "chrome", "dark", "redblack"};
As you can see from the screenshot and the demo, the theme isn't really the Rottweiler red I had expected but a kind of pink cousin to the baby blue of standard. So maybe I should have called the theme "Pinky." Anyhow, the RTL (right to left) style has not been completed. I'll update the app and the jar with that change tomorrow.
The jar file for "pinky", aka redblack, can be found here. Again, we'll have an update of the "pinky" theme tomorrow, and some more sophisticated themes next week.
Update: the RedBlack.jar has been fixed and updated. Now both regular and RTL should work. The showcase app, however has not been updated.
Topics: GWT
Comments: 1 so far
Leave a comment
About Pathfinder
Follow the Blog
-
Get a monthly update on best practices for delivering successful software.
Subscribe via email
Subscribe via RSS
Categories
Topics
Archives
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
Blogroll
Recent
- Elements of Testing Style
- Aesthetics and Web Design
- Asterisk-Java Testing with Groovy
- 3 Misuses of Code Comments
- Fluently NHibernate
- Digging a Hole and Covering it with Leaves — The Software Development Version
- The Importance of User Experience - Do You Understand It in Your Bones?
- Writing Your Own Protocol With NSURLProtocol
- What’s In Your Dock: iPhone edition
- Feature Fatigue

[...] New GWT Theme: Pinky? Dietrich Kappe shows the process of building his own GWT theme. [...]
Pingback by Weekly GWT Links For 6/14/08 | GWT Site, Sunday, June 15, 2008 @ 1:05 am