diff --git a/src/main/java/org/saturnclient/ui2/elements/Notification.java b/src/main/java/org/saturnclient/ui2/elements/Notification.java index 61916d0..0da60c7 100644 --- a/src/main/java/org/saturnclient/ui2/elements/Notification.java +++ b/src/main/java/org/saturnclient/ui2/elements/Notification.java @@ -1,7 +1,7 @@ package org.saturnclient.ui2.elements; import org.saturnclient.saturnclient.config.Property; -import org.saturnclient.saturnclient.config.ThemeManager; +import org.saturnclient.saturnclient.config.Theme; import org.saturnclient.ui2.Element; import org.saturnclient.ui2.ElementContext; import org.saturnclient.ui2.RenderScope; @@ -10,11 +10,9 @@ import org.saturnclient.ui2.resources.Fonts; import org.saturnclient.ui2.resources.Textures; public class Notification extends Element { - private static ThemeManager theme = new ThemeManager("Notification"); - private static Property bgColor = theme.property("bg-color", Property.color(0xFF000000)); - private static Property error = theme.property("error", Property.color(0xFFbf212f)); - private static Property info = theme.property("info", Property.color(0xFF264b96)); - private static Property success = theme.property("success", Property.color(0xFF27b376)); + private static Property error = Property.color(0xFFbf212f); + private static Property info = Property.color(0xFF264b96); + private static Property success = Property.color(0xFF27b376); public static enum NotificationKind { Error, @@ -40,7 +38,7 @@ public class Notification extends Element { @Override public void render(RenderScope renderScope, ElementContext ctx) { - renderScope.drawRoundedRectangle(0, 0, width, height, 10, bgColor.value); + renderScope.drawRoundedRectangle(0, 0, width, height, 10, Theme.PRIMARY.value); switch (kind) { case Error: renderScope.drawTexture(Textures.CIRCLE_X, 9, 9, 0, 0, 15, 15, error.value);