From 1a6a1d25b7c62dddb8503e227dba70ec55679b33 Mon Sep 17 00:00:00 2001 From: sqshq Date: Mon, 29 Jul 2019 22:39:17 -0400 Subject: [PATCH] minor polishing --- .github/FUNDING.yml | 2 +- component/statusbar.go | 2 +- console/palette.go | 2 +- main.go | 2 +- metadata/statistics.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 28bfa97..dbc3d21 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,2 @@ patreon: sampler -custom: ['http://sampler.dev/#pricing'] \ No newline at end of file +custom: ['http://sampler.dev/#pricing'] diff --git a/component/statusbar.go b/component/statusbar.go index a5f61a2..8d43033 100644 --- a/component/statusbar.go +++ b/component/statusbar.go @@ -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 diff --git a/console/palette.go b/console/palette.go index d36f77d..88b865a 100644 --- a/console/palette.go +++ b/console/palette.go @@ -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)) } } diff --git a/main.go b/main.go index 0d7b492..cb22444 100644 --- a/main.go +++ b/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 { diff --git a/metadata/statistics.go b/metadata/statistics.go index a211f00..240b9ac 100644 --- a/metadata/statistics.go +++ b/metadata/statistics.go @@ -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