minor polishing

This commit is contained in:
sqshq 2019-07-29 22:39:17 -04:00
parent 18d8a08449
commit 1a6a1d25b7
5 changed files with 5 additions and 5 deletions

2
.github/FUNDING.yml vendored
View File

@ -1,2 +1,2 @@
patreon: sampler patreon: sampler
custom: ['http://sampler.dev/#pricing'] custom: ['http://sampler.dev/#pricing']

View File

@ -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

View File

@ -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))
} }
} }

View File

@ -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 {

View File

@ -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