Skip to content

Latest commit

 

History

History

gxt-theme-40x

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Simple GXT Application with Theme module

This is a very basic GXT project with a theme module.

Sencha

Generate Project

You can generate your own project based on this project using this Maven Archtype.

Requirements

IDE

Importing the project into the IDE.

  1. Run mvn install from the project root to build the theme.
    • The reason this is done to start with is to generate the theme source files which will be in the generated source directory.
  2. Import this project into your IDE as Maven project.
  3. Create a launcher in the IDE for the application.
    • Eclipse - Right click and debug as GWT Development Mode with Embedded Jetty Server.
    • IntellJ IDEA - Create a GWT launcher.

Building the theme

The theme was copied from Triton and renamed as Tritium for example.

GXT 101 - Building Themes with the Theme Builder

Full Build

Running mvn install from the root of the project will do a full project build which includes the theme.

Theme Only Build

Running mvn install from the theme module, or theme folder, will allow you to only build the theme.

Theme Reference

Using Client Bundles

Client bundles are ideal for encapsulating reuseable code. Like we do with Appearances. I like to suggest using gss variables in a global gss file that cascades into all of your client bundles so you only have one place for global values. Check out the Theme Utilities for using the Themebuilder theme values.

Extending the theme

Extending the theme allows you full control of the GSS, styles, and widget look and styling.

Extending Button Appearance Example

Extending GXT Appearances

This video covers extending the GXT appearance, and providing your own css styling.

GXT 101 - Extending Appearances

Theme File Locations

This images covers where the theme module stores the themes appearances and associated ClientBundle resources.

  • NOTE: The Triton* class names in the image have been renamed to Tritium*.

Theme File Locations

Tips & Tricks

There is more than one to style widgets. Check out some of the tips and tricks for ideas. (Check out the example images at the bottom of the gists.)

Misc

Animations

Buttons

Grids

Trees

Containers

Error Handling

Icons

Fonts

Extending Appearances

ImageResource

Embedded Layout

DND Images

SVG