Rename Par to Paragraph
This commit is contained in:
parent
ea15e228f4
commit
7f3648562a
@ -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
|
||||||
|
|||||||
@ -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(
|
||||||