Global: add support for colored percentage numbers output

This commit is contained in:
李通洲
2023-01-31 19:42:02 +08:00
parent d36e827ec9
commit 2476b44300
8 changed files with 63 additions and 9 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ static void printDisk(FFinstance* instance, const FFDisk* disk)
if(instance->config.percentType & FF_PERCENTAGE_TYPE_NUM_BIT)
{
ffStrbufAppendF(&str, str.length > 0 ? "(%u%%) " : "%u%% ", bytesPercentage);
ffAppendPercentNum(instance, &str, (uint8_t) bytesPercentage, 50, 80, str.length > 0);
ffStrbufAppendC(&str, ' ');
}
}
else