You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
439 B
20 lines
439 B
package ui |
|
|
|
import ( |
|
"fmt" |
|
|
|
"github.com/RasmusLindroth/go-mastodon" |
|
"github.com/RasmusLindroth/tut/config" |
|
"github.com/rivo/tview" |
|
) |
|
|
|
type List struct { |
|
} |
|
|
|
func drawList(tut *Tut, data *mastodon.List, main *tview.TextView, controls *tview.TextView) { |
|
|
|
controlItem := config.ColorFromKey(tut.Config, tut.Config.Input.ListOpenFeed, true) |
|
|
|
main.SetText(fmt.Sprintf("List %s", tview.Escape(data.Title))) |
|
controls.SetText(controlItem) |
|
}
|
|
|