~taiite/public-inbox

senpai: Rename ColorGrey to ColorGray for consistency v1 PROPOSED

Hugo Machet: 1
 Rename ColorGrey to ColorGray for consistency

 2 files changed, 3 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~taiite/public-inbox/patches/27988/mbox | git am -3
Learn more about email & git

[PATCH senpai] Rename ColorGrey to ColorGray for consistency Export this patch

---
I changed to Gray as it was the most used one, but I could do the other way
around if you prefer.

 commands.go | 4 ++--
 ui/style.go | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/commands.go b/commands.go
index 403aec8..ace813b 100644
--- a/commands.go
+++ b/commands.go
@@ -359,13 +359,13 @@ func commandDoNames(app *App, args []string) (err error) {
		return fmt.Errorf("this is not a channel")
	}
	var sb ui.StyledStringBuilder
	sb.SetStyle(tcell.StyleDefault.Foreground(tcell.ColorGrey))
	sb.SetStyle(tcell.StyleDefault.Foreground(tcell.ColorGray))
	sb.WriteString("Names: ")
	for _, name := range s.Names(buffer) {
		if name.PowerLevel != "" {
			sb.SetStyle(tcell.StyleDefault.Foreground(tcell.ColorGreen))
			sb.WriteString(name.PowerLevel)
			sb.SetStyle(tcell.StyleDefault.Foreground(tcell.ColorGrey))
			sb.SetStyle(tcell.StyleDefault.Foreground(tcell.ColorGray))
		}
		sb.WriteString(name.Name.Name)
		sb.WriteByte(' ')
diff --git a/ui/style.go b/ui/style.go
index 2f9c588..91cd2e1 100644
--- a/ui/style.go
+++ b/ui/style.go
@@ -32,7 +32,7 @@ var baseCodes = []tcell.Color{
	tcell.ColorWhite, tcell.ColorBlack, tcell.ColorBlue, tcell.ColorGreen,
	tcell.ColorRed, tcell.ColorBrown, tcell.ColorPurple, tcell.ColorOrange,
	tcell.ColorYellow, tcell.ColorLightGreen, tcell.ColorTeal, tcell.ColorLightCyan,
	tcell.ColorLightBlue, tcell.ColorPink, tcell.ColorGrey, tcell.ColorLightGrey,
	tcell.ColorLightBlue, tcell.ColorPink, tcell.ColorGray, tcell.ColorLightGray,
}

// unused
-- 
2.34.1