aboutsummaryrefslogtreecommitdiff
path: root/core/src/UI/UI_Utils.cpp
blob: 61a62f0c27d512765cf898326764f31946bef512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();
}