CmdCalendar: Adjust styling

This commit is contained in:
Tomas Babej
2021-04-21 23:06:21 -04:00
parent 14fd8ea673
commit 282f3d344a

View File

@@ -584,8 +584,7 @@ std::string CmdCalendar::renderMonths (
auto end = config.get ("holiday." + hol.first.substr (8, hol.first.size () - 14) + ".end"); auto end = config.get ("holiday." + hol.first.substr (8, hol.first.size () - 14) + ".end");
Datetime holStart (start.c_str (), dateFormat); Datetime holStart (start.c_str (), dateFormat);
Datetime holEnd (end.c_str (), dateFormat); Datetime holEnd (end.c_str (), dateFormat);
if (holStart <= date && if (holStart <= date && date <= holEnd)
date <= holEnd)
cellColor.blend (color_holiday); cellColor.blend (color_holiday);
} }
} }