Upload files to "src/openonyx/features/hud/group_d"

This commit is contained in:
winterflyt committed 2026-11-30 05:51:24 +02:00
1 parent 46224f522f
commit aedb35b546
2 files changed
+75

No files matched your search

@@ -0,0 +1,7 @@
package openonyx.features.hud.group_d;
public record Notification(String title, String message, NotificationLevel level, Integer accent) {
public Notification(String string, String string1, NotificationLevel notificationLevel) {
this(string, string1, notificationLevel, null);
}
}
@@ -0,0 +1,68 @@
package openonyx.features.hud.group_d;
import openonyx.history.DisplayNamed;
import openonyx.theme.Palette;
public enum NotificationLevel implements DisplayNamed {
SUCCESS("Success"),
ERROR("Error"),
INFO("Info"),
WARNING("Warning");
private final String d;
private static NotificationLevel[] L() {
NotificationLevel[] notificationLevels = new NotificationLevel[4];
boolean bl = true;
notificationLevels[0] = INFO;
notificationLevels[1] = SUCCESS;
notificationLevels[2] = WARNING;
notificationLevels[3] = ERROR;
return notificationLevels;
}
NotificationLevel(String string1) {
this.d = string1;
}
@Override
public String getDisplayName() {
return this.d;
}
public String d() {
switch (this) {
case SUCCESS:
while (false) {
}
return "\ue88e";
case ERROR:
return "\ue5ca";
case INFO:
return "\ue002";
case WARNING:
return "\ue001";
default:
throw new MatchException(null, null);
}
}
public int L(Palette palette) {
switch (this) {
case SUCCESS:
while (false) {
}
return palette.primary();
case ERROR:
return palette.tertiary();
case INFO:
return palette.secondary();
case WARNING:
return palette.error();
default:
throw new MatchException(null, null);
}
}
}