diff --git a/Main.go b/Main.go index 5213f30..5d9cfbe 100644 --- a/Main.go +++ b/Main.go @@ -22,9 +22,6 @@ func main() { if err := drw.Wall.Init(); err != nil { log.Fatalf("%+v", err) } - drw.DefStyle = tcell.StyleDefault.Background(tcell.ColorReset).Foreground(tcell.ColorReset) - drw.TodayStyle = tcell.StyleDefault.Background(tcell.ColorReset).Foreground(tcell.GetColor("blue")).Bold(true).Reverse(true) - drw.SelStyle = tcell.StyleDefault.Background(tcell.ColorReset).Foreground(tcell.GetColor("green")).Bold(true) drw.Wall.SetStyle(drw.DefStyle) drw.Wall.Clear() diff --git a/drw/drw.go b/drw/drw.go index 7d13d4c..f0536bc 100644 --- a/drw/drw.go +++ b/drw/drw.go @@ -15,9 +15,18 @@ var ( ) var ( - DefStyle tcell.Style - TodayStyle tcell.Style - SelStyle tcell.Style + DefStyle tcell.Style = tcell.StyleDefault. + Background(tcell.ColorReset). + Foreground(tcell.ColorReset) + TodayStyle tcell.Style = tcell.StyleDefault. + Background(tcell.ColorReset). + Foreground(tcell.GetColor("blue")). + Bold(true). + Reverse(true) + SelStyle tcell.Style = tcell.StyleDefault. + Background(tcell.ColorReset). + Foreground(tcell.GetColor("green")). + Bold(true) ) func centeredText(s string, x, y, width int, scr tcell.Screen, style tcell.Style) {