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 {
|
if durr < 0 {
|
||||||
durr = math.MaxInt
|
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 {
|
if durr < 28 && !column.IsFinal {
|
||||||
bgColor = cell.ColorYellow
|
bgColor = cell.ColorYellow
|
||||||
fgColor = cell.ColorBlack
|
fgColor = cell.ColorBlack
|
||||||
d := fmt.Sprintf("%02dd", durr)
|
d := fmt.Sprintf("..% 2dd", durr)
|
||||||
title = title[0:colWidth-3] + d
|
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 {
|
if column.IsFinal {
|
||||||
bgColor = cell.ColorBlack
|
bgColor = cell.ColorBlack
|
||||||
|
|||||||
Reference in New Issue
Block a user