1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Apparently I don't know how to spell 'sigil'

This commit is contained in:
Chris Cummer 2018-05-24 22:05:37 -07:00
parent 9f1bad6571
commit 6d230a3d70
4 changed files with 10 additions and 10 deletions

View File

@ -20,7 +20,7 @@ func (widget *Widget) display() {
title := fmt.Sprintf("[green]%s[white]\n", repoData.Repository) title := fmt.Sprintf("[green]%s[white]\n", repoData.Repository)
widget.View.SetTitle(fmt.Sprintf(" Git: %s ", title)) widget.View.SetTitle(fmt.Sprintf(" Git: %s ", title))
str := wtf.SygilStr(len(widget.Data), widget.Idx, widget.View) + "\n" str := wtf.SigilStr(len(widget.Data), widget.Idx, widget.View) + "\n"
str = str + " [red]Branch[white]\n" str = str + " [red]Branch[white]\n"
str = str + fmt.Sprintf(" %s", repoData.Branch) str = str + fmt.Sprintf(" %s", repoData.Branch)
str = str + "\n" str = str + "\n"

View File

@ -17,7 +17,7 @@ func (widget *Widget) display() {
widget.View.SetTitle(fmt.Sprintf(" Github: %s ", widget.title(repo))) widget.View.SetTitle(fmt.Sprintf(" Github: %s ", widget.title(repo)))
str := wtf.SygilStr(len(widget.Data), widget.Idx, widget.View) + "\n" str := wtf.SigilStr(len(widget.Data), widget.Idx, widget.View) + "\n"
str = str + " [red]Open Review Requests[white]\n" str = str + " [red]Open Review Requests[white]\n"
str = str + widget.prsForReview(repo, Config.UString("wtf.mods.github.username")) str = str + widget.prsForReview(repo, Config.UString("wtf.mods.github.username"))
str = str + "\n" str = str + "\n"

View File

@ -24,7 +24,7 @@ func (widget *Widget) display() {
widget.View.SetTitle(widget.title(cityData)) widget.View.SetTitle(widget.title(cityData))
str := wtf.SygilStr(len(widget.Data), widget.Idx, widget.View) + "\n" str := wtf.SigilStr(len(widget.Data), widget.Idx, widget.View) + "\n"
str = str + widget.description(cityData) + "\n\n" str = str + widget.description(cityData) + "\n\n"
str = str + widget.temperatures(cityData) + "\n" str = str + widget.temperatures(cityData) + "\n"
str = str + widget.sunInfo(cityData) str = str + widget.sunInfo(cityData)

View File

@ -119,18 +119,18 @@ func RowColor(module string, idx int) string {
} }
} }
func SygilStr(len, pos int, view *tview.TextView) string { func SigilStr(len, pos int, view *tview.TextView) string {
sygils := "" sigils := ""
if len > 0 { if len > 0 {
sygils = strings.Repeat(Config.UString("wtf.paging.pageSygil", "*"), pos) sigils = strings.Repeat(Config.UString("wtf.paging.pagesigil", "*"), pos)
sygils = sygils + Config.UString("wtf.paging.selectedSygil", "_") sigils = sigils + Config.UString("wtf.paging.selectedsigil", "_")
sygils = sygils + strings.Repeat(Config.UString("wtf.paging.pageSygil", "*"), len-1-pos) sigils = sigils + strings.Repeat(Config.UString("wtf.paging.pagesigil", "*"), len-1-pos)
sygils = "[lightblue]" + fmt.Sprintf(RightAlignFormat(view), sygils) + "[white]" sigils = "[lightblue]" + fmt.Sprintf(RightAlignFormat(view), sigils) + "[white]"
} }
return sygils return sigils
} }
/* -------------------- Slice Conversion -------------------- */ /* -------------------- Slice Conversion -------------------- */