Add SetStyle Function
This commit is contained in:
@@ -129,7 +129,8 @@ func (w *DatePicker) Draw(screen tcell.Screen) {
|
||||
w.GetPos().DrawOffset(w.dateNow, screen)
|
||||
}
|
||||
|
||||
func (w *DatePicker) Active() bool { return w.active }
|
||||
func (w *DatePicker) SetStyle(s tcell.Style) { w.style = s }
|
||||
func (w *DatePicker) Active() bool { return w.active }
|
||||
func (w *DatePicker) SetActive(a bool) {
|
||||
if !w.active && a {
|
||||
// Wasn't active, but turning on
|
||||
|
||||
Reference in New Issue
Block a user