aboutsummaryrefslogtreecommitdiff
path: root/core/src/UI/UI_Utils.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-03-29 17:55:02 -0700
committerrtk0c <[email protected]>2021-03-29 17:55:02 -0700
commit70cc233165b5efa3a3888af34f7afce095fe6947 (patch)
treeb15e8f2e3816acc204846188e78514f2ba6ad816 /core/src/UI/UI_Utils.cpp
parent6032ae108064650324b2c45352e1baa5b36961cc (diff)
More work on project tab
Diffstat (limited to 'core/src/UI/UI_Utils.cpp')
-rw-r--r--core/src/UI/UI_Utils.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/src/UI/UI_Utils.cpp b/core/src/UI/UI_Utils.cpp
new file mode 100644
index 0000000..61a62f0
--- /dev/null
+++ b/core/src/UI/UI_Utils.cpp
@@ -0,0 +1,16 @@
+#include "UI.hpp"
+
+#include <IconsFontAwesome.h>
+#include <imgui.h>
+
+void ImGui::ErrorIcon() {
+ ImGui::PushStyleColor(ImGuiCol_Text, ImVec4{ 237 / 255.0f, 67 / 255.0f, 55 / 255.0f, 1.0f }); // #ED4337
+ ImGui::Text(ICON_FA_EXCLAMATION_CIRCLE);
+ ImGui::PopStyleColor();
+}
+
+void ImGui::WarningIcon() {
+ ImGui::PushStyleColor(ImGuiCol_Text, ImVec4{ 255 / 255.0f, 184 / 255.0f, 24 / 255.0f, 1.0f }); // #FFB818
+ ImGui::Text(ICON_FA_EXCLAMATION_TRIANGLE);
+ ImGui::PopStyleColor();
+}