mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdHistory: Removed table header coloring which is handled elsewhere
This commit is contained in:
parent
22da6c2e42
commit
66c11f635e
1 changed files with 0 additions and 12 deletions
|
@ -65,8 +65,6 @@ void CmdHistoryBase<HistoryStrategy>::outputGraphical (std::string &output)
|
||||||
// Now build the view.
|
// Now build the view.
|
||||||
Table view;
|
Table view;
|
||||||
setHeaderUnderline (view);
|
setHeaderUnderline (view);
|
||||||
if (context.config.getBoolean ("color"))
|
|
||||||
view.forceColor ();
|
|
||||||
view.width (context.getWidth ());
|
view.width (context.getWidth ());
|
||||||
|
|
||||||
HistoryStrategy::setupTableDates (view);
|
HistoryStrategy::setupTableDates (view);
|
||||||
|
@ -78,8 +76,6 @@ void CmdHistoryBase<HistoryStrategy>::outputGraphical (std::string &output)
|
||||||
Color color_delete (context.config.get ("color.history.delete"));
|
Color color_delete (context.config.get ("color.history.delete"));
|
||||||
Color label (context.config.get ("color.label"));
|
Color label (context.config.get ("color.label"));
|
||||||
|
|
||||||
view.colorHeader (label);
|
|
||||||
|
|
||||||
// Determine the longest line, and the longest "added" line.
|
// Determine the longest line, and the longest "added" line.
|
||||||
auto maxAddedLine = 0;
|
auto maxAddedLine = 0;
|
||||||
auto maxRemovedLine = 0;
|
auto maxRemovedLine = 0;
|
||||||
|
@ -197,8 +193,6 @@ void CmdHistoryBase<HistoryStrategy>::outputTabular (std::string &output)
|
||||||
{
|
{
|
||||||
Table view;
|
Table view;
|
||||||
setHeaderUnderline (view);
|
setHeaderUnderline (view);
|
||||||
if (context.config.getBoolean ("color"))
|
|
||||||
view.forceColor ();
|
|
||||||
view.width (context.getWidth ());
|
view.width (context.getWidth ());
|
||||||
|
|
||||||
HistoryStrategy::setupTableDates (view);
|
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_DEL, false);
|
||||||
view.add (STRING_CMD_HISTORY_NET, 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 totalAdded = 0;
|
||||||
auto totalCompleted = 0;
|
auto totalCompleted = 0;
|
||||||
auto totalDeleted = 0;
|
auto totalDeleted = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue