Skip to content

GwtMaterialDesign/gwt-material-themes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gwt-material-themes

Gwt Material Design Themes for https://github.com/GwtMaterialDesign/gwt-material

Build Status Join us

Usage

<dependency>
    <groupId>com.github.gwtmaterialdesign</groupId>
    <artifactId>gwt-material-themes</artifactId>
    <version>2.8.3</version>
</dependency>

Changelog

You can view the changelog here

Import the theme in your GWT Module

<inherits name="gwt.material.design.themes.ThemeBlue"/>

Dynamic Themes

Starting GMD 2.0 we supported dynamic theming.

Step 1: Choose GMD Theme Resources you want to include into your app.

<inherits name="gwt.material.design.themes.ThemeAmberResources"/>
<inherits name="gwt.material.design.themes.ThemeBlueResources"/>
<inherits name="gwt.material.design.themes.ThemeBrownResources"/>
<inherits name="gwt.material.design.themes.ThemeGreenResources"/>
<inherits name="gwt.material.design.themes.ThemeGreyResources"/>
<inherits name="gwt.material.design.themes.ThemeOrangeResources"/>
<inherits name="gwt.material.design.themes.ThemePinkResources"/>
<inherits name="gwt.material.design.themes.ThemePurpleResources"/>
<inherits name="gwt.material.design.themes.ThemeRedResources"/>
<inherits name="gwt.material.design.themes.ThemeYellowResources"/>

Step 2: Create your theme switcher (Below is a custom example)

A ComboBox widget that contains lists of theme selection. Sample

Step 3: Create your Theme Manager (Below is a custom example)

A Custom theme manager to store selected theme to browser’s cache. Theme Manager