From 2a7d6eb26a839b943e92119364107a779403b0f3 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 20 Mar 2017 09:08:45 -0400 Subject: [PATCH] CmdCalendar: Table headers consistent --- src/commands/CmdCalendar.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/commands/CmdCalendar.cpp b/src/commands/CmdCalendar.cpp index 5dfbd3307..f3b221c57 100644 --- a/src/commands/CmdCalendar.cpp +++ b/src/commands/CmdCalendar.cpp @@ -286,7 +286,6 @@ int CmdCalendar::execute (std::string& output) Color color_weekend (context.config.get ("color.calendar.weekend")); Color color_holiday (context.config.get ("color.calendar.holiday")); Color color_weeknumber (context.config.get ("color.calendar.weeknumber")); - Color color_label (context.config.get ("color.label")); if (context.color () && context.config.getBoolean ("calendar.legend")) out << "Legend: " @@ -368,7 +367,7 @@ int CmdCalendar::execute (std::string& output) holTable.width (context.getWidth ()); holTable.add (STRING_CMD_CAL_LABEL_DATE); holTable.add (STRING_CMD_CAL_LABEL_HOL); - holTable.colorHeader (color_label); + setHeaderUnderline (holTable); std::map > hm; // we need to store multiple holidays per day for (auto& it : context.config) @@ -428,10 +427,8 @@ std::string CmdCalendar::renderMonths ( throw std::string (STRING_CMD_CAL_SUN_MON); // Build table for the number of months to be displayed. - Color label (context.config.get ("color.label")); - Table view; - view.colorHeader (label); + setHeaderUnderline (view); view.width (context.getWidth ()); for (int i = 0 ; i < (monthsPerLine * 8); i += 8) {