mirror of
https://github.com/charmbracelet/glow
synced 2024-10-06 16:09:24 +00:00
Simplify news header
This commit is contained in:
parent
1922bfaa68
commit
fa6952ea88
|
@ -4,5 +4,4 @@ package ui
|
||||||
|
|
||||||
const (
|
const (
|
||||||
pagerStashIcon = "🔒"
|
pagerStashIcon = "🔒"
|
||||||
newsIcon = "⚡️"
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,5 +4,4 @@ package ui
|
||||||
|
|
||||||
const (
|
const (
|
||||||
pagerStashIcon = "•"
|
pagerStashIcon = "•"
|
||||||
newsIcon = ""
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -972,7 +972,7 @@ func (m stashModel) view() string {
|
||||||
if m.isFiltering() {
|
if m.isFiltering() {
|
||||||
logoOrFilter = m.filterInput.View()
|
logoOrFilter = m.filterInput.View()
|
||||||
} else if m.docState == stashShowNewsDocs {
|
} else if m.docState == stashShowNewsDocs {
|
||||||
logoOrFilter += newsTitleStyle(" News ") + " " + newsIcon
|
logoOrFilter += normalFg(" News ")
|
||||||
}
|
}
|
||||||
|
|
||||||
var pagination string
|
var pagination string
|
||||||
|
|
|
@ -41,12 +41,6 @@ var (
|
||||||
dullYellowFg = newFgStyle(common.NewColorPair("#9BA92F", "#6BCB94")) // renders light green on light backgrounds
|
dullYellowFg = newFgStyle(common.NewColorPair("#9BA92F", "#6BCB94")) // renders light green on light backgrounds
|
||||||
redFg = newFgStyle(common.Red)
|
redFg = newFgStyle(common.Red)
|
||||||
faintRedFg = newFgStyle(common.FaintRed)
|
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.
|
// Returns a termenv style with foreground and background options.
|
||||||
|
|
Loading…
Reference in a new issue