From fa6952ea8879d1d47ea761a1570a67e14320a655 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Tue, 1 Dec 2020 16:56:29 -0500 Subject: [PATCH] Simplify news header --- ui/consts_unix.go | 1 - ui/consts_windows.go | 1 - ui/stash.go | 2 +- ui/styles.go | 6 ------ 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/ui/consts_unix.go b/ui/consts_unix.go index 56f264e..fd13ad3 100644 --- a/ui/consts_unix.go +++ b/ui/consts_unix.go @@ -4,5 +4,4 @@ package ui const ( pagerStashIcon = "🔒" - newsIcon = "⚡️" ) diff --git a/ui/consts_windows.go b/ui/consts_windows.go index f39c1e4..25f9851 100644 --- a/ui/consts_windows.go +++ b/ui/consts_windows.go @@ -4,5 +4,4 @@ package ui const ( pagerStashIcon = "•" - newsIcon = "" ) diff --git a/ui/stash.go b/ui/stash.go index 61abfa6..16530b9 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -972,7 +972,7 @@ func (m stashModel) view() string { if m.isFiltering() { logoOrFilter = m.filterInput.View() } else if m.docState == stashShowNewsDocs { - logoOrFilter += newsTitleStyle(" News ") + " " + newsIcon + logoOrFilter += normalFg(" News ") } var pagination string diff --git a/ui/styles.go b/ui/styles.go index eb5cf01..479013f 100644 --- a/ui/styles.go +++ b/ui/styles.go @@ -41,12 +41,6 @@ var ( dullYellowFg = newFgStyle(common.NewColorPair("#9BA92F", "#6BCB94")) // renders light green on light backgrounds redFg = newFgStyle(common.Red) faintRedFg = newFgStyle(common.FaintRed) - - newsTitleStyle = newStyle( - common.NewColorPair(common.Indigo.String(), common.Cream.String()), - common.NewColorPair(common.Cream.String(), common.Indigo.String()), - true, - ) ) // Returns a termenv style with foreground and background options.