summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Kohl2024-12-04 13:37:26 +0100
committerJonas Kohl2024-12-04 13:37:26 +0100
commitb0028d7ff10985224f99462617b8e2d9b6e5c14d (patch)
tree773f52109c19c368e3de533e994811bbaed6449c
parent1ccf0be7a8999f3353591aaf2e91b8cb3763a9fb (diff)
Add info alert
-rw-r--r--images/info16.gifbin0 -> 159 bytes
-rw-r--r--includes/desktop/components/alert.php2
2 files changed, 2 insertions, 0 deletions
diff --git a/images/info16.gif b/images/info16.gif
new file mode 100644
index 0000000..1053109
--- /dev/null
+++ b/images/info16.gif
Binary files differ
diff --git a/includes/desktop/components/alert.php b/includes/desktop/components/alert.php
index fce6376..a47b99b 100644
--- a/includes/desktop/components/alert.php
+++ b/includes/desktop/components/alert.php
@@ -3,10 +3,12 @@ function c_alert(string $html_message, string $type, ?string $icon = null): void
$type_colors = [
"warning" => ["olive","yellow"],
"success" => ["green","lime"],
+ "info" => ["teal","aqua"],
][$type] ?? ["gray","white"];
if ($icon !== null)
$icon = [
"warning-sign" => "warn16",
+ "info-sign" => "info16",
][$icon] ?? $icon;
?>
<center>