From bf2cb1c4d85b8212c481777aa846b182ca3014a4 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 2 Jul 2014 10:15:54 -0500 Subject: 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 --- partitionmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'partitionmanager.cpp') diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 47c2ebe49..df623fa83 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -827,7 +827,7 @@ int TWPartitionManager::Run_Backup(void) { gui_print("[%llu MB TOTAL BACKED UP]\n", actual_backup_size); Update_System_Details(); UnMount_Main_Partitions(); - gui_print("[BACKUP COMPLETED IN %d SECONDS]\n\n", total_time); // the end + gui_print_color("highlight", "[BACKUP COMPLETED IN %d SECONDS]\n\n", total_time); // the end string backup_log = Full_Backup_Path + "recovery.log"; TWFunc::copy_file("/tmp/recovery.log", backup_log, 0644); return true; @@ -932,7 +932,7 @@ int TWPartitionManager::Run_Restore(string Restore_Name) { Update_System_Details(); UnMount_Main_Partitions(); time(&rStop); - gui_print("[RESTORE COMPLETED IN %d SECONDS]\n\n",(int)difftime(rStop,rStart)); + gui_print_color("highlight", "[RESTORE COMPLETED IN %d SECONDS]\n\n",(int)difftime(rStop,rStart)); return true; } -- cgit v1.2.3