mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Border color on the widgets
This commit is contained in:
committed by
Chris Cummer
parent
46d3983cf3
commit
7555ae3b5c
@@ -2,9 +2,9 @@ package status
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
//"math/rand"
|
||||
"time"
|
||||
|
||||
"github.com/gdamore/tcell"
|
||||
"github.com/rivo/tview"
|
||||
"github.com/senorprogrammer/wtf/wtf"
|
||||
)
|
||||
@@ -38,7 +38,7 @@ func (widget *Widget) Refresh() {
|
||||
widget.RefreshedAt = time.Now()
|
||||
|
||||
widget.View.Clear()
|
||||
fmt.Fprintf(widget.View, "%s", widget.contentFrom())
|
||||
fmt.Fprintf(widget.View, " %s", widget.contentFrom())
|
||||
}
|
||||
|
||||
/* -------------------- Unexported Functions -------------------- */
|
||||
@@ -47,6 +47,7 @@ func (widget *Widget) addView() {
|
||||
view := tview.NewTextView()
|
||||
|
||||
view.SetBorder(true)
|
||||
view.SetBorderColor(tcell.ColorGray)
|
||||
view.SetDynamicColors(true)
|
||||
view.SetTitle(widget.Name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user