code formatting
This commit is contained in:
@@ -7,9 +7,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Label struct {
|
type Label struct {
|
||||||
Text string
|
Text string
|
||||||
Fg Attribute
|
Fg, Bg Attribute
|
||||||
Bg Attribute
|
|
||||||
|
|
||||||
ui *Ui
|
ui *Ui
|
||||||
x0, y0, x1, y1 int
|
x0, y0, x1, y1 int
|
||||||
|
|||||||
@@ -8,9 +8,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Textbox struct {
|
type Textbox struct {
|
||||||
Text string
|
Text string
|
||||||
Fg Attribute
|
Fg, Bg Attribute
|
||||||
Bg Attribute
|
|
||||||
|
|
||||||
Input func(ui *Ui, textbox *Textbox, text string)
|
Input func(ui *Ui, textbox *Textbox, text string)
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,7 @@ import (
|
|||||||
type Textview struct {
|
type Textview struct {
|
||||||
Lines []string
|
Lines []string
|
||||||
CurrentLine int
|
CurrentLine int
|
||||||
Fg Attribute
|
Fg, Bg Attribute
|
||||||
Bg Attribute
|
|
||||||
|
|
||||||
parsedLines []string
|
parsedLines []string
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ type renderedTreeItem struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Tree struct {
|
type Tree struct {
|
||||||
Fg Attribute
|
Fg, Bg Attribute
|
||||||
Bg Attribute
|
|
||||||
Generator func(item TreeItem) []TreeItem
|
Generator func(item TreeItem) []TreeItem
|
||||||
Listener func(ui *Ui, tree *Tree, item TreeItem)
|
Listener func(ui *Ui, tree *Tree, item TreeItem)
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ type UiManager interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Ui struct {
|
type Ui struct {
|
||||||
Fg Attribute
|
Fg, Bg Attribute
|
||||||
Bg Attribute
|
|
||||||
|
|
||||||
close chan bool
|
close chan bool
|
||||||
manager UiManager
|
manager UiManager
|
||||||
|
|||||||
Reference in New Issue
Block a user