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