Add field reference_hour, extract determination of color for hour label

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2019-04-11 23:13:41 +02:00
parent a6b9e4204c
commit 920e3b4019
2 changed files with 14 additions and 11 deletions

View file

@ -58,6 +58,7 @@ private:
std::pair <int, int> determineHourRange (const Interval&, const std::vector <Interval>&);
Color getDayColor (const Datetime&, const std::map <Datetime, std::string>&);
Color getHourColor (int) const;
const Datetime reference_datetime;
const bool with_label_month;
@ -79,7 +80,9 @@ private:
const Color color_label;
const Color color_exclusion;
const std::map<std::string, Color> tag_colors;
const int cell_width;
const int reference_hour;
};
#endif