fixes board task colors
This commit is contained in:
+8
-8
@@ -108,17 +108,17 @@ func createBoard(ctx context.Context, _ terminalapi.Terminal, _ interface{}) wid
|
||||
if durr < 0 {
|
||||
durr = math.MaxInt
|
||||
}
|
||||
if durr < 14 && !column.IsFinal {
|
||||
fgColor = cell.ColorBlack
|
||||
bgColor = cell.ColorRed
|
||||
d := fmt.Sprintf("%02dd", durr)
|
||||
title = title[0:colWidth-3] + d
|
||||
}
|
||||
if durr < 28 && !column.IsFinal {
|
||||
bgColor = cell.ColorYellow
|
||||
fgColor = cell.ColorBlack
|
||||
d := fmt.Sprintf("%02dd", durr)
|
||||
title = title[0:colWidth-3] + d
|
||||
d := fmt.Sprintf("..% 2dd", durr)
|
||||
title = title[0:colWidth-5] + d
|
||||
}
|
||||
if durr < 14 && !column.IsFinal {
|
||||
fgColor = cell.ColorBlack
|
||||
bgColor = cell.ColorRed
|
||||
d := fmt.Sprintf("..% 2dd", durr)
|
||||
title = title[0:colWidth-5] + d
|
||||
}
|
||||
if column.IsFinal {
|
||||
bgColor = cell.ColorBlack
|
||||
|
||||
Reference in New Issue
Block a user