diff options
author | aristocratos <gnmjpl@gmail.com> | 2021-10-02 22:39:45 +0200 |
---|---|---|
committer | aristocratos <gnmjpl@gmail.com> | 2021-10-02 22:39:45 +0200 |
commit | 585bb7bb1e31e7193b8d749ac9b999a1c9870f52 (patch) | |
tree | a9120022ed142197c61a48452bc6047efebbe5ef | |
parent | 6c77620b2042d760ec860bf84f7209e17abace13 (diff) |
Changed: Graph empty symbol is now regular whitespace
-rw-r--r-- | src/btop_draw.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/btop_draw.cpp b/src/btop_draw.cpp index 7406d15..6a8cf68 100644 --- a/src/btop_draw.cpp +++ b/src/btop_draw.cpp @@ -43,42 +43,42 @@ namespace Symbols { const unordered_flat_map<string, vector<string>> graph_symbols = { { "braille_up", { - " ", "⢀", "⢠", "⢰", "⢸", + " ", "⢀", "⢠", "⢰", "⢸", "⡀", "⣀", "⣠", "⣰", "⣸", "⡄", "⣄", "⣤", "⣴", "⣼", "⡆", "⣆", "⣦", "⣶", "⣾", "⡇", "⣇", "⣧", "⣷", "⣿" }}, {"braille_down", { - " ", "⠈", "⠘", "⠸", "⢸", + " ", "⠈", "⠘", "⠸", "⢸", "⠁", "⠉", "⠙", "⠹", "⢹", "⠃", "⠋", "⠛", "⠻", "⢻", "⠇", "⠏", "⠟", "⠿", "⢿", "⡇", "⡏", "⡟", "⡿", "⣿" }}, {"block_up", { - " ", "▗", "▗", "▐", "▐", + " ", "▗", "▗", "▐", "▐", "▖", "▄", "▄", "▟", "▟", "▖", "▄", "▄", "▟", "▟", "▌", "▙", "▙", "█", "█", "▌", "▙", "▙", "█", "█" }}, {"block_down", { - " ", "▝", "▝", "▐", "▐", + " ", "▝", "▝", "▐", "▐", "▘", "▀", "▀", "▜", "▜", "▘", "▀", "▀", "▜", "▜", "▌", "▛", "▛", "█", "█", "▌", "▛", "▛", "█", "█" }}, {"tty_up", { - " ", "░", "░", "▒", "▒", + " ", "░", "░", "▒", "▒", "░", "░", "▒", "▒", "█", "░", "▒", "▒", "▒", "█", "▒", "▒", "▒", "█", "█", "▒", "█", "█", "█", "█" }}, {"tty_down", { - " ", "░", "░", "▒", "▒", + " ", "░", "░", "▒", "▒", "░", "░", "▒", "▒", "█", "░", "▒", "▒", "▒", "█", "▒", "▒", "▒", "█", "█", @@ -431,7 +431,7 @@ namespace Draw { //? Populate the two switching graph vectors and fill empty space if data size < width for (const int& i : iota(0, height * 2)) { if (tty_mode and i % 2 != current) continue; - graphs[(i % 2 != 0)].push_back((value_width < width) ? ((height == 1) ? Mv::r(1) : " "s) * (width - value_width) : ""); + graphs[(i % 2 != 0)].push_back((value_width < width) ? ((height == 1) ? Mv::r(1) : " "s) * (width - value_width) : ""); } if (data.size() == 0) return; this->_create(data, data_offset); @@ -444,6 +444,7 @@ namespace Draw { if (not tty_mode) current = not current; for (const int& i : iota(0, height)) { if (graphs.at(current).at(i).at(1) == '[') graphs.at(current).at(i).erase(0, 4); + else if (graphs.at(current).at(i).at(0) == ' ') graphs.at(current).at(i).erase(0, 1); else graphs.at(current).at(i).erase(0, 3); } this->_create(data, (int)data.size() - 1); |