minor polishing
This commit is contained in:
parent
18d8a08449
commit
1a6a1d25b7
|
@ -20,7 +20,7 @@ type StatusBar struct {
|
|||
pause bool
|
||||
}
|
||||
|
||||
func NewStatusLine(configFileName string, palette console.Palette, license *metadata.License) *StatusBar {
|
||||
func NewStatusBar(configFileName string, palette console.Palette, license *metadata.License) *StatusBar {
|
||||
|
||||
block := *ui.NewBlock()
|
||||
block.Border = false
|
||||
|
|
|
@ -65,7 +65,7 @@ func GetPalette(theme Theme) Palette {
|
|||
ReverseColor: ColorWhite,
|
||||
}
|
||||
default:
|
||||
panic(fmt.Sprintf("Following theme is not supported: %v", theme))
|
||||
panic(fmt.Sprintf("Specified theme is not supported: %v", theme))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -90,7 +90,7 @@ func main() {
|
|||
defer updateStatistics(cfg, time.Now())
|
||||
|
||||
palette := console.GetPalette(*cfg.Theme)
|
||||
lout := layout.NewLayout(component.NewStatusLine(*opt.ConfigFile, palette, license),
|
||||
lout := layout.NewLayout(component.NewStatusBar(*opt.ConfigFile, palette, license),
|
||||
component.NewMenu(palette), component.NewIntro(palette), component.NewNagWindow(palette))
|
||||
|
||||
if statistics.LaunchCount == 0 {
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
// Statistics represents anonymous usage data, which we collect for analyses and improvements
|
||||
// User can disable it, along with crash reports, using --telemetry flag
|
||||
// User can disable it, along with crash reports, using --disable-telemetry flag
|
||||
type Statistics struct {
|
||||
Version string
|
||||
OS string
|
||||
|
|
Loading…
Reference in New Issue