Skip to content

Commit

Permalink
Color: change yellow threshold from 5% to 10% free
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbbbr committed Oct 9, 2022
1 parent 3155f85 commit 8d87ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/banks_color.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static uint8_t bank_get_color(bank_item * p_bank) {

// Color ramp from Default -> Green -> Yellow -> Red
if (perc_free == 0) color_esc_code = VT_COLOR_RED_LIGHT;
else if (perc_free <= 5) color_esc_code = VT_COLOR_YELLOW_LIGHT;
else if (perc_free <= 10) color_esc_code = VT_COLOR_YELLOW_LIGHT;
else if (perc_free <= 25) color_esc_code = VT_COLOR_GREEN_LIGHT;
// implied: else if (> 25) PRINT_COLOR_DEFAULT
}
Expand Down

0 comments on commit 8d87ccd

Please sign in to comment.