go fmt sources & add command-line file loading
This commit is contained in:
10
ui/button.go
10
ui/button.go
@ -7,21 +7,21 @@ import (
|
||||
)
|
||||
|
||||
type Button struct {
|
||||
Text string
|
||||
Text string
|
||||
Callback func()
|
||||
|
||||
x, y int
|
||||
x, y int
|
||||
width, height int
|
||||
focused bool
|
||||
focused bool
|
||||
|
||||
Theme *Theme
|
||||
}
|
||||
|
||||
func NewButton(text string, theme *Theme, callback func()) *Button {
|
||||
return &Button{
|
||||
Text: text,
|
||||
Text: text,
|
||||
Callback: callback,
|
||||
Theme: theme,
|
||||
Theme: theme,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user