Rename Par to Paragraph

This commit is contained in:
Caleb Bassi 2018-11-28 18:24:38 -08:00
parent ea15e228f4
commit 7f3648562a
10 changed files with 77 additions and 77 deletions

View File

@ -20,7 +20,7 @@ func main() {
} }
defer ui.Close() defer ui.Close()
p := ui.NewPar("PRESS q TO QUIT DEMO") p := ui.NewParagraph("PRESS q TO QUIT DEMO")
p.Height = 3 p.Height = 3
p.Width = 50 p.Width = 50
p.TextFgColor = ui.ColorWhite p.TextFgColor = ui.ColorWhite
@ -120,7 +120,7 @@ func main() {
lc2.AxesColor = ui.ColorWhite lc2.AxesColor = ui.ColorWhite
lc2.LineColor["default"] = ui.ColorYellow | ui.AttrBold lc2.LineColor["default"] = ui.ColorYellow | ui.AttrBold
p2 := ui.NewPar("Hey!\nI am a borderless block!") p2 := ui.NewParagraph("Hey!\nI am a borderless block!")
p2.Border = false p2.Border = false
p2.Width = 26 p2.Width = 26
p2.Height = 2 p2.Height = 2

View File

@ -76,9 +76,9 @@ func main() {
} }
ls.Height = 5 ls.Height = 5
par := ui.NewPar("<> This row has 3 columns\n<- Widgets can be stacked up like left side\n<- Stacked widgets are treated as a single widget") p := ui.NewParagraph("<> This row has 3 columns\n<- Widgets can be stacked up like left side\n<- Stacked widgets are treated as a single widget")
par.Height = 5 p.Height = 5
par.BorderLabel = "Demonstration" p.BorderLabel = "Demonstration"
// build layout // build layout
ui.Body.AddRows( ui.Body.AddRows(