Using tcell.Colors instead of HardCoding Hex Values

This commit is contained in:
aditya-K2
2021-12-30 17:17:58 +05:30
parent a3c5af06c8
commit 4a0a3e18f7
5 changed files with 12 additions and 11 deletions

View File

@@ -59,7 +59,7 @@ func InsertAt(inputString, stringTobeInserted string, index int) string {
}
func GetText(width, percentage float64, eta string) string {
q := "[#000000:#ffffff:b]"
q := "[black:white:b]"
var a string
a += strings.Repeat(" ", int(width)-len(eta))
a = InsertAt(a, eta, int(width/2)-10)