CmdHistory: Removed table header coloring which is handled elsewhere
This commit is contained in:
@@ -65,8 +65,6 @@ void CmdHistoryBase<HistoryStrategy>::outputGraphical (std::string &output)
|
||||
// Now build the view.
|
||||
Table view;
|
||||
setHeaderUnderline (view);
|
||||
if (context.config.getBoolean ("color"))
|
||||
view.forceColor ();
|
||||
view.width (context.getWidth ());
|
||||
|
||||
HistoryStrategy::setupTableDates (view);
|
||||
@@ -78,8 +76,6 @@ void CmdHistoryBase<HistoryStrategy>::outputGraphical (std::string &output)
|
||||
Color color_delete (context.config.get ("color.history.delete"));
|
||||
Color label (context.config.get ("color.label"));
|
||||
|
||||
view.colorHeader (label);
|
||||
|
||||
// Determine the longest line, and the longest "added" line.
|
||||
auto maxAddedLine = 0;
|
||||
auto maxRemovedLine = 0;
|
||||
@@ -197,8 +193,6 @@ void CmdHistoryBase<HistoryStrategy>::outputTabular (std::string &output)
|
||||
{
|
||||
Table view;
|
||||
setHeaderUnderline (view);
|
||||
if (context.config.getBoolean ("color"))
|
||||
view.forceColor ();
|
||||
view.width (context.getWidth ());
|
||||
|
||||
HistoryStrategy::setupTableDates (view);
|
||||
@@ -208,12 +202,6 @@ void CmdHistoryBase<HistoryStrategy>::outputTabular (std::string &output)
|
||||
view.add (STRING_CMD_HISTORY_DEL, false);
|
||||
view.add (STRING_CMD_HISTORY_NET, false);
|
||||
|
||||
if (context.color ())
|
||||
{
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
}
|
||||
|
||||
auto totalAdded = 0;
|
||||
auto totalCompleted = 0;
|
||||
auto totalDeleted = 0;
|
||||
|
||||
Reference in New Issue
Block a user