From 9b47b1fe9921ae454e8ee7517a22b2424aed5042 Mon Sep 17 00:00:00 2001 From: Dennis <48474109+Dennke@users.noreply.github.com> Date: Fri, 26 Nov 2021 09:49:38 +0100 Subject: [PATCH 1/4] npe fixed in MaterialToast.isOpen() If a toast was previously closed and afterwards you check if it is open a null pointer exception is thrown. --- .../main/java/gwt/material/design/client/ui/MaterialToast.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gwt-material/src/main/java/gwt/material/design/client/ui/MaterialToast.java b/gwt-material/src/main/java/gwt/material/design/client/ui/MaterialToast.java index c0b790700..fd5eb00e7 100644 --- a/gwt-material/src/main/java/gwt/material/design/client/ui/MaterialToast.java +++ b/gwt-material/src/main/java/gwt/material/design/client/ui/MaterialToast.java @@ -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; From 9a06eeaeb8d2e15676db1bbf967ae06bc21341a1 Mon Sep 17 00:00:00 2001 From: kevzlou7979 Date: Fri, 18 Aug 2023 09:32:02 +0800 Subject: [PATCH 2/4] Added set Dark Theme --- .../gwt/material/design/client/theme/ThemeManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gwt-material/src/main/java/gwt/material/design/client/theme/ThemeManager.java b/gwt-material/src/main/java/gwt/material/design/client/theme/ThemeManager.java index 7e13c4649..2d6dcd340 100644 --- a/gwt-material/src/main/java/gwt/material/design/client/theme/ThemeManager.java +++ b/gwt-material/src/main/java/gwt/material/design/client/theme/ThemeManager.java @@ -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; @@ -34,6 +35,7 @@ ThemeManager { private static SortedSet themes; + private static DarkThemeLoader darkTheme; private static Map> themeCache = new HashMap<>(); @@ -131,4 +133,12 @@ public static void addWidgetTheme(String themeName, W public static void addWidgetTheme(Theme theme, WidgetTheme widgetTheme) { theme.put(widgetTheme.getClassSelector(), widgetTheme); } + + public static DarkThemeLoader getDarkTheme() { + return darkTheme; + } + + public static void setDarkTheme(DarkThemeLoader darkTheme) { + ThemeManager.darkTheme = darkTheme; + } } From d546a1a3222ed29049f319aab76fe620169f6fa3 Mon Sep 17 00:00:00 2001 From: kevzlou7979 Date: Fri, 18 Aug 2023 17:05:17 +0800 Subject: [PATCH 3/4] Updated version to 2.8.0-SNAPSHOT --- gwt-material/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gwt-material/pom.xml b/gwt-material/pom.xml index 123716408..29efcb0be 100644 --- a/gwt-material/pom.xml +++ b/gwt-material/pom.xml @@ -4,7 +4,7 @@ gwt-material-parent com.github.gwtmaterialdesign - 2.8.0 + 2.8.0-SNAPSHOT 4.0.0 diff --git a/pom.xml b/pom.xml index 3b83a2c85..1927f57f3 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.github.gwtmaterialdesign gwt-material-parent - 2.8.0 + 2.8.0-SNAPSHOT pom gwt-material From 1ed47c94900048357ad4ea49d4de66a37dc35622 Mon Sep 17 00:00:00 2001 From: kevzlou7979 Date: Fri, 22 Sep 2023 07:14:11 +0800 Subject: [PATCH 4/4] Preparation for release. --- README.md | 4 ++-- gwt-material/pom.xml | 2 +- pom.xml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 938d197dd..4819de319 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,12 @@ Support documentation can be found [here](https://github.com/GwtMaterialDesign/g We created Java Docs for developers ## Maven -### Current Version 2.8.0 +### Current Version 2.8.1 ```xml com.github.gwtmaterialdesign gwt-material - 2.8.0 + 2.8.1 ``` ### Snapshot Version 2.8.0-SNAPSHOT diff --git a/gwt-material/pom.xml b/gwt-material/pom.xml index 29efcb0be..07f4c293c 100644 --- a/gwt-material/pom.xml +++ b/gwt-material/pom.xml @@ -4,7 +4,7 @@ gwt-material-parent com.github.gwtmaterialdesign - 2.8.0-SNAPSHOT + 2.8.1 4.0.0 diff --git a/pom.xml b/pom.xml index 1927f57f3..45b4cdfdc 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.github.gwtmaterialdesign gwt-material-parent - 2.8.0-SNAPSHOT + 2.8.1 pom gwt-material @@ -75,7 +75,7 @@ scm:git:git@github.com:GwtMaterialDesign/gwt-material.git scm:git:git@github.com:GwtMaterialDesign/gwt-material.git http://github.com/GwtMaterialDesign/gwt-material - v2.8.0 + v2.8.1