1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Rudimentary modal showing up for Todo on 'e'

This commit is contained in:
Chris Cummer
2018-04-24 19:41:15 -07:00
parent ed52835650
commit bef57d799b
7 changed files with 47 additions and 31 deletions

View File

@@ -2,6 +2,8 @@ package clocks
import (
"fmt"
"github.com/senorprogrammer/wtf/wtf"
)
func (widget *Widget) display(clocks []Clock) {
@@ -16,8 +18,8 @@ func (widget *Widget) display(clocks []Clock) {
" [%s]%-12s %-10s %7s[white]\n",
widget.rowColor(idx),
clock.Label,
clock.LocalTime.Format(TimeFormat),
clock.LocalTime.Format(DateFormat),
clock.LocalTime.Format(wtf.SimpleTimeFormat),
clock.LocalTime.Format(wtf.SimpleDateFormat),
)
}

View File

@@ -7,9 +7,6 @@ import (
"github.com/senorprogrammer/wtf/wtf"
)
const TimeFormat = "15:04 MST"
const DateFormat = "Jan 2"
// Config is a pointer to the global config object
var Config *config.Config