MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / setHeaderUnderline

Function setHeaderUnderline

src/util.cpp:237–256  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

235
236////////////////////////////////////////////////////////////////////////////////
237void setHeaderUnderline(Table& table) {
238 // If an alternating row color is specified, notify the table.
239 if (Context::getContext().color()) {
240 Color alternate(Context::getContext().config.get("color.alternate"));
241 table.colorOdd(alternate);
242 table.intraColorOdd(alternate);
243
244 if (Context::getContext().config.getBoolean("fontunderline")) {
245 table.colorHeader(Color("underline " + Context::getContext().config.get("color.label")));
246 } else {
247 table.colorHeader(Color(Context::getContext().config.get("color.label")));
248 table.underlineHeaders();
249 }
250 } else {
251 if (Context::getContext().config.getBoolean("fontunderline"))
252 table.colorHeader(Color("underline"));
253 else
254 table.underlineHeaders();
255 }
256}
257
258////////////////////////////////////////////////////////////////////////////////
259// Perform strtol on a string and check if the extracted value matches.

Callers 15

executeMethod · 0.85
listContextsMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
renderMonthsMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85

Calls 5

colorMethod · 0.80
colorOddMethod · 0.80
intraColorOddMethod · 0.80
colorHeaderMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected