In budget report, color large percentages magenta
This commit is contained in:
parent
12616dd030
commit
cbf8f355d1
1 changed files with 20 additions and 4 deletions
24
src/report.h
24
src/report.h
|
|
@ -378,15 +378,31 @@ public:
|
|||
on(none,
|
||||
"%(justify(scrub(get_at(total_expr, 0)), 12, -1, true, color))"
|
||||
" %(justify(scrub(- get_at(total_expr, 1)), 12, -1, true, color))"
|
||||
" %(justify(scrub(get_at(total_expr, 1) + get_at(total_expr, 0)), 12, -1, true, color))"
|
||||
" %(justify(scrub((100% * get_at(total_expr, 0)) / - get_at(total_expr, 1)), 5, -1, true, color))"
|
||||
" %(justify(scrub(get_at(total_expr, 1) + "
|
||||
" get_at(total_expr, 0)), 12, -1, true, color))"
|
||||
" %(ansify_if("
|
||||
" justify((get_at(total_expr, 1) ? "
|
||||
" scrub((100% * get_at(total_expr, 0)) / "
|
||||
" - get_at(total_expr, 1)) : 0), "
|
||||
" 5, -1, true, false),"
|
||||
" magenta if (color and get_at(total_expr, 1) and "
|
||||
" (abs(quantity(get_at(total_expr, 0)) / "
|
||||
" quantity(get_at(total_expr, 1))) >= 1))))"
|
||||
" %(!options.flat ? depth_spacer : \"\")"
|
||||
"%-(ansify_if(partial_account(options.flat), blue if color))\n"
|
||||
"%/"
|
||||
"%(justify(scrub(get_at(total_expr, 0)), 12, -1, true, color))"
|
||||
" %(justify(scrub(- get_at(total_expr, 1)), 12, -1, true, color))"
|
||||
" %(justify(scrub(get_at(total_expr, 1) + get_at(total_expr, 0)), 12, -1, true, color))"
|
||||
" %(justify(scrub((100% * get_at(total_expr, 0)) / - get_at(total_expr, 1)), 5, -1, true, color))\n%/"
|
||||
" %(justify(scrub(get_at(total_expr, 1) + "
|
||||
" get_at(total_expr, 0)), 12, -1, true, color))"
|
||||
" %(ansify_if("
|
||||
" justify((get_at(total_expr, 1) ? "
|
||||
" scrub((100% * get_at(total_expr, 0)) / "
|
||||
" - get_at(total_expr, 1)) : 0), "
|
||||
" 5, -1, true, false),"
|
||||
" magenta if (color and get_at(total_expr, 1) and "
|
||||
" (abs(quantity(get_at(total_expr, 0)) / "
|
||||
" quantity(get_at(total_expr, 1))) >= 1))))\n%/"
|
||||
"------------ ------------ ------------ -----\n");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue