GwtMaterialDesign/gwt-material-themes


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

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.gwtmaterialdesign:gwt-material-themes:2.8.5'
	}
	dependencies {
		implementation("com.github.gwtmaterialdesign:gwt-material-themes:2.8.5")
	}
	<dependency>
	    <groupId>com.github.gwtmaterialdesign</groupId>
	    <artifactId>gwt-material-themes</artifactId>
	    <version>2.8.5</version>
	</dependency>

                            
    libraryDependencies += "com.github.gwtmaterialdesign" % "gwt-material-themes" % "2.8.5"
        
        

                            
    :dependencies [[com.github.gwtmaterialdesign/gwt-material-themes "2.8.5"]]
        
        

Readme


<img src="http://i.imgur.com/jxTSZ3K.png" />

gwt-material-themes

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

Build Status Join us

Usage

<dependency>
    <groupId>com.github.gwtmaterialdesign</groupId>
    <artifactId>gwt-material-themes</artifactId>
    <version>2.8.5</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