mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdReportDay: Obeys tag color mapping
This commit is contained in:
parent
21166a044f
commit
9699cb8293
1 changed files with 9 additions and 3 deletions
|
@ -133,10 +133,16 @@ int CmdReportDay (
|
|||
int start_offset = (start_hour - first_hour) * 5 + start_block;
|
||||
int end_offset = (end_hour - 1 - first_hour) * 5 + end_block;
|
||||
|
||||
// TODO Determine color of interval.
|
||||
auto colorTrack = palette.next ();
|
||||
// Determine color of interval.
|
||||
Color colorTrack;
|
||||
if (track.tags ().size ())
|
||||
// TODO Instead of using the first tag, look at them all, and choose one
|
||||
// that has a color defined over any other.
|
||||
colorTrack = tag_colors [*(track.tags ().begin ())];
|
||||
else
|
||||
colorTrack = palette.next ();
|
||||
|
||||
// TODO Properly format the tags in the space, if possible.
|
||||
// Properly format the tags within the space.
|
||||
std::string label;
|
||||
for (auto& tag : track.tags ())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue