O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting a default theme

There are three built-in themes in the standard GXT distribution: Blue (the all too familiar default), Gray, and Slate. Each of these themes (and any other for that matter) encapsulates a set of images and CSS for the peculiar styling it performs on the UI components.

Although GXT comes with the Blue theme set as default, we can easily change it to any other theme that we deem appropriate; after all it just takes a single line of code.

The following screenshot shows components using the gray theme:

Setting a default theme

Getting ready

The GXT system expects that theme resources will reside under a gxt folder within the web applications root directory ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required