]> git.0d.be Git - barnard.git/commitdiff
code formatting
authorTim Cooper <tim.cooper@layeh.com>
Tue, 23 Dec 2014 00:37:36 +0000 (20:37 -0400)
committerTim Cooper <tim.cooper@layeh.com>
Tue, 23 Dec 2014 00:37:36 +0000 (20:37 -0400)
uiterm/label.go
uiterm/textbox.go
uiterm/textview.go
uiterm/tree.go
uiterm/ui.go

index 648d07e6a8ce00a033417bad9aea90b9f234ec9d..9ba39e4968d0d65bf298aa8c56b2de14b7397134 100644 (file)
@@ -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
index d2233ab1278351ad1746167b15e1b8cd2833a79d..a7d0d4d943c6b8df2f67a5f0f41067669221fd06 100644 (file)
@@ -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)
 
index 945081e8b3bb4086fd520da779614c9e46882105..d1c155f99918f40cac773b1a8252bd817ff02b08 100644 (file)
@@ -9,8 +9,7 @@ import (
 type Textview struct {
        Lines       []string
        CurrentLine int
-       Fg          Attribute
-       Bg          Attribute
+       Fg, Bg      Attribute
 
        parsedLines []string
 
index 0ac3fe0b57ba68ad337ee7bb1d94ef25f19047d1..628fbb1b8958092419ebfb111a2c87b16307b5d9 100644 (file)
@@ -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)
 
index 65fb6a995917d0ecb3f6c3e26799e579bee35190..31114c7aed1bd15995dccbcadacd1414e038a7b6 100644 (file)
@@ -15,8 +15,7 @@ type UiManager interface {
 }
 
 type Ui struct {
-       Fg Attribute
-       Bg Attribute
+       Fg, Bg Attribute
 
        close   chan bool
        manager UiManager