mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
15 lines
438 B
C
15 lines
438 B
C
#pragma once
|
|
|
|
#include "fastfetch.h"
|
|
|
|
enum
|
|
{
|
|
FF_PERCENTAGE_TYPE_NUM_BIT = 1 << 0,
|
|
FF_PERCENTAGE_TYPE_BAR_BIT = 1 << 1,
|
|
FF_PERCENTAGE_TYPE_HIDE_OTHERS_BIT = 1 << 2,
|
|
FF_PERCENTAGE_TYPE_NUM_COLOR_BIT = 1 << 3,
|
|
};
|
|
|
|
void ffAppendPercentBar(FFstrbuf* buffer, double percent, uint8_t green, uint8_t yellow, uint8_t red);
|
|
void ffAppendPercentNum(FFstrbuf* buffer, double percent, uint8_t green, uint8_t yellow, bool parentheses);
|