Skip to content

Commit

Permalink
Merge branch 'release_2.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
kevzlou7979 committed Sep 22, 2023
2 parents 1f812f9 + 1ed47c9 commit 565d53b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -20,12 +20,12 @@ Support documentation can be found [here](https://github.com/GwtMaterialDesign/g
We created <a href="http://gwtmaterialdesign.github.io/gwt-material-demo/apidocs" > Java Docs </a> for developers

## Maven
### Current Version 2.8.0
### Current Version 2.8.1
```xml
<dependency>
<groupId>com.github.gwtmaterialdesign</groupId>
<artifactId>gwt-material</artifactId>
<version>2.8.0</version>
<version>2.8.1</version>
</dependency>
```
### Snapshot Version 2.8.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion gwt-material/pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>gwt-material-parent</artifactId>
<groupId>com.github.gwtmaterialdesign</groupId>
<version>2.8.0</version>
<version>2.8.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Expand Up @@ -21,6 +21,7 @@

import com.google.gwt.core.client.GWT;
import gwt.material.design.client.base.MaterialWidget;
import gwt.material.design.client.theme.dark.DarkThemeLoader;

import java.util.ArrayList;
import java.util.HashMap;
Expand All @@ -34,6 +35,7 @@
ThemeManager {

private static SortedSet<Theme> themes;
private static DarkThemeLoader darkTheme;

private static Map<Class, List<WidgetTheme>> themeCache = new HashMap<>();

Expand Down Expand Up @@ -131,4 +133,12 @@ public static <T extends MaterialWidget> void addWidgetTheme(String themeName, W
public static <T extends MaterialWidget> void addWidgetTheme(Theme theme, WidgetTheme<T> widgetTheme) {
theme.put(widgetTheme.getClassSelector(), widgetTheme);
}

public static DarkThemeLoader getDarkTheme() {
return darkTheme;
}

public static void setDarkTheme(DarkThemeLoader darkTheme) {
ThemeManager.darkTheme = darkTheme;
}
}
Expand Up @@ -200,6 +200,9 @@ public boolean isOpen() {
String id = getId();
if (id != null && !id.isEmpty()) {
Widget toast = RootPanel.get(id);
if(toast == null){
return false;
}
return toast.isAttached() && toast.isVisible();
}
return false;
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.gwtmaterialdesign</groupId>
<artifactId>gwt-material-parent</artifactId>
<version>2.8.0</version>
<version>2.8.1</version>
<packaging>pom</packaging>
<modules>
<module>gwt-material</module>
Expand Down Expand Up @@ -75,7 +75,7 @@
<connection>scm:git:git@github.com:GwtMaterialDesign/gwt-material.git</connection>
<developerConnection>scm:git:git@github.com:GwtMaterialDesign/gwt-material.git</developerConnection>
<url>http://github.com/GwtMaterialDesign/gwt-material</url>
<tag>v2.8.0</tag>
<tag>v2.8.1</tag>
</scm>

<licenses>
Expand Down

0 comments on commit 565d53b

Please sign in to comment.