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"]]
Gwt Material Design Themes for https://github.com/GwtMaterialDesign/gwt-material <br>
<dependency>
<groupId>com.github.gwtmaterialdesign</groupId>
<artifactId>gwt-material-themes</artifactId>
<version>2.8.5</version>
</dependency>
You can view the changelog here
Import the theme in your GWT Module
<inherits name="gwt.material.design.themes.ThemeBlue"/>
Starting GMD 2.0 we supported dynamic theming.
<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"/>
A ComboBox widget that contains lists of theme selection. Sample
A Custom theme manager to store selected theme to browser’s cache. Theme Manager