mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdInfo: Fixed header underline problem
This commit is contained in:
parent
4f6c44e5c1
commit
218b43ecfa
1 changed files with 61 additions and 5 deletions
|
@ -114,10 +114,28 @@ int CmdInfo::execute (std::string& output)
|
|||
Color alternate (context.config.get ("color.alternate"));
|
||||
view.colorOdd (alternate);
|
||||
|
||||
view.colorHeader (Color ("underline " + context.config.get ("color.label")));
|
||||
if (context.config.getBoolean ("fontunderline"))
|
||||
{
|
||||
view.colorHeader (Color ("underline " + context.config.get ("color.label")));
|
||||
}
|
||||
else
|
||||
{
|
||||
view.underlineHeaders ();
|
||||
view.colorHeader (Color (context.config.get ("color.label")));
|
||||
}
|
||||
}
|
||||
else
|
||||
view.underlineHeaders ();
|
||||
{
|
||||
if (context.config.getBoolean ("fontunderline"))
|
||||
{
|
||||
view.colorHeader (Color ("underline " + context.config.get ("color.label")));
|
||||
}
|
||||
else
|
||||
{
|
||||
view.underlineHeaders ();
|
||||
view.colorHeader (Color (context.config.get ("color.label")));
|
||||
}
|
||||
}
|
||||
|
||||
Datetime now;
|
||||
|
||||
|
@ -444,7 +462,27 @@ int CmdInfo::execute (std::string& output)
|
|||
urgencyDetails.colorOdd (alternate);
|
||||
urgencyDetails.intraColorOdd (alternate);
|
||||
|
||||
urgencyDetails.colorHeader (Color ("underline " + context.config.get ("color.label")));
|
||||
if (context.config.getBoolean ("fontunderline"))
|
||||
{
|
||||
urgencyDetails.colorHeader (Color ("underline " + context.config.get ("color.label")));
|
||||
}
|
||||
else
|
||||
{
|
||||
urgencyDetails.underlineHeaders ();
|
||||
urgencyDetails.colorHeader (Color (context.config.get ("color.label")));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (context.config.getBoolean ("fontunderline"))
|
||||
{
|
||||
urgencyDetails.colorHeader (Color ("underline " + context.config.get ("color.label")));
|
||||
}
|
||||
else
|
||||
{
|
||||
urgencyDetails.underlineHeaders ();
|
||||
urgencyDetails.colorHeader (Color (context.config.get ("color.label")));
|
||||
}
|
||||
}
|
||||
|
||||
if (context.config.getBoolean ("obfuscate"))
|
||||
|
@ -547,10 +585,28 @@ int CmdInfo::execute (std::string& output)
|
|||
journal.colorOdd (alternate);
|
||||
journal.intraColorOdd (alternate);
|
||||
|
||||
journal.colorHeader (Color ("underline " + context.config.get ("color.label")));
|
||||
if (context.config.getBoolean ("fontunderline"))
|
||||
{
|
||||
journal.colorHeader (Color ("underline " + context.config.get ("color.label")));
|
||||
}
|
||||
else
|
||||
{
|
||||
journal.underlineHeaders ();
|
||||
journal.colorHeader (Color (context.config.get ("color.label")));
|
||||
}
|
||||
}
|
||||
else
|
||||
journal.underlineHeaders ();
|
||||
{
|
||||
if (context.config.getBoolean ("fontunderline"))
|
||||
{
|
||||
journal.colorHeader (Color ("underline " + context.config.get ("color.label")));
|
||||
}
|
||||
else
|
||||
{
|
||||
journal.underlineHeaders ();
|
||||
journal.colorHeader (Color (context.config.get ("color.label")));
|
||||
}
|
||||
}
|
||||
|
||||
if (context.config.getBoolean ("obfuscate"))
|
||||
journal.obfuscate ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue