Color in the console
Allow each gui_print command to specify a color
Change LOGERR to use the error color
Theme should specify colors for error, warning, and highlight
Change-Id: Ie8ece34111f604e25fcb79e5b731cd4e61038ff9
diff --git a/twrp.cpp b/twrp.cpp
index ec87dd5..dda84dd 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -135,14 +135,14 @@
lgetfilecon("/sbin/teamwin", &contexts);
}
if (!contexts) {
- gui_print("Kernel does not have support for reading SELinux contexts.\n");
+ gui_print_color("warning", "Kernel does not have support for reading SELinux contexts.\n");
} else {
free(contexts);
gui_print("Full SELinux support is present.\n");
}
}
#else
- gui_print("No SELinux support (no libselinux).\n");
+ gui_print_color("warning", "No SELinux support (no libselinux).\n");
#endif
PartitionManager.Mount_By_Path("/cache", true);