continuing compact widget refactor

This commit is contained in:
Bradley Cicenas
2019-07-05 23:05:21 +00:00
parent 8427b0c81d
commit 0ca5235ae5
9 changed files with 143 additions and 233 deletions

View File

@@ -22,19 +22,6 @@ var colWidths = []int{
4, // pids
}
// Calculate per-column width, given total width
func calcWidth(width int) int {
spacing := colSpacing * len(colWidths)
var staticCols int
for _, w := range colWidths {
width -= w
if w == 0 {
staticCols++
}
}
return (width - spacing) / staticCols
}
func centerParText(p *ui.Par) {
var text string
var padding string