Code cleanup

This commit is contained in:
Caleb Bassi 2018-04-13 22:17:57 -07:00
parent 674b04b0ad
commit e185593334
3 changed files with 3 additions and 7 deletions

View File

@ -85,10 +85,11 @@ Feel free to add a new one. You can use 256 colors, bold, underline, and reverse
## Built With
* [cjbassi/termui](https://github.com/cjbassi/termui)
* [A termui fork](https://github.com/cjbassi/termui)
* [drawille-go](https://github.com/exrook/drawille-go)
* [gopsutil](https://github.com/shirou/gopsutil)
* [goreleaser](https://github.com/goreleaser/goreleaser)
* [termbox](https://github.com/nsf/termbox-go)
## Stargazers over time

View File

@ -8,11 +8,9 @@ package colorschemes
You can combine a color with 'Bold', 'Underline', or 'Reverse' by using bitwise OR ('|') and the name of the attribute.
For example, to get Bold red Labels, you would do 'Labels: 2 | Bold'.
Once you've created a colorscheme, add an entry for it in the `handleColorscheme` function
in `gotop.go`.
Once you've created a colorscheme, add an entry for it in the `handleColorscheme` function in `gotop.go`.
*/
// Ignore this
const (
Bold int = 1 << (iota + 9)
Underline

View File

@ -250,9 +250,6 @@ func main() {
ui.Body.Width, ui.Body.Height = e.Width, e.Height
ui.Body.Resize()
help.XOffset = (ui.Body.Width - help.X) / 2
help.YOffset = (ui.Body.Height - help.Y) / 2
termResized <- true
})