mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdReportDay: Renders report axis
This commit is contained in:
parent
47f21d88bf
commit
bc5754584e
1 changed files with 7 additions and 7 deletions
|
@ -30,6 +30,7 @@
|
||||||
#include <Range.h>
|
#include <Range.h>
|
||||||
#include <commands.h>
|
#include <commands.h>
|
||||||
#include <timew.h>
|
#include <timew.h>
|
||||||
|
#include <format.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ int CmdReportDay (
|
||||||
palette.enabled = rules.getBoolean ("color");
|
palette.enabled = rules.getBoolean ("color");
|
||||||
|
|
||||||
Color colorExc (palette.enabled ? rules.get ("theme.colors.exclusion") : "");
|
Color colorExc (palette.enabled ? rules.get ("theme.colors.exclusion") : "");
|
||||||
|
Color colorLabel (palette.enabled ? rules.get ("theme.colors.label") : "");
|
||||||
|
|
||||||
// Map tags to colors.
|
// Map tags to colors.
|
||||||
auto tag_colors = createTagColorMap (rules, palette, tracked);
|
auto tag_colors = createTagColorMap (rules, palette, tracked);
|
||||||
|
@ -83,13 +85,11 @@ int CmdReportDay (
|
||||||
|
|
||||||
// Render the axis.
|
// Render the axis.
|
||||||
std::string indent = " ";
|
std::string indent = " ";
|
||||||
std::cout << '\n'
|
std::cout << indent;
|
||||||
<< indent
|
for (int hour = first_hour; hour <= last_hour; hour++)
|
||||||
<< "0 1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11\n";
|
std::cout << colorLabel.colorize (leftJustify (hour, 5));
|
||||||
|
|
||||||
// TODO Data, missing.
|
std::cout << '\n';
|
||||||
std::cout << '\n'
|
|
||||||
<< '\n';
|
|
||||||
|
|
||||||
// TODO Summary, missing.
|
// TODO Summary, missing.
|
||||||
std::cout << '\n'
|
std::cout << '\n'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue