fixes board task colors

This commit is contained in:
2026-10-04 18:56:36 +02:00
parent 8863e29160
commit 830ec6a13c
+8 -8
View File
@@ -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