minor polishing
This commit is contained in:
parent
18d8a08449
commit
1a6a1d25b7
|
@ -1,2 +1,2 @@
|
||||||
patreon: sampler
|
patreon: sampler
|
||||||
custom: ['http://sampler.dev/#pricing']
|
custom: ['http://sampler.dev/#pricing']
|
||||||
|
|
|
@ -20,7 +20,7 @@ type StatusBar struct {
|
||||||
pause bool
|
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 := *ui.NewBlock()
|
||||||
block.Border = false
|
block.Border = false
|
||||||
|
|
|
@ -65,7 +65,7 @@ func GetPalette(theme Theme) Palette {
|
||||||
ReverseColor: ColorWhite,
|
ReverseColor: ColorWhite,
|
||||||
}
|
}
|
||||||
default:
|
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())
|
defer updateStatistics(cfg, time.Now())
|
||||||
|
|
||||||
palette := console.GetPalette(*cfg.Theme)
|
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))
|
component.NewMenu(palette), component.NewIntro(palette), component.NewNagWindow(palette))
|
||||||
|
|
||||||
if statistics.LaunchCount == 0 {
|
if statistics.LaunchCount == 0 {
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Statistics represents anonymous usage data, which we collect for analyses and improvements
|
// 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 {
|
type Statistics struct {
|
||||||
Version string
|
Version string
|
||||||
OS string
|
OS string
|
||||||
|
|
Loading…
Reference in New Issue