9735f9483da3236ec2eb9fb5f2b8d93f13075ac6

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Color NPC speech: yellow romaji, orange English

Diff

 1diff --git a/internal/ui/app.go b/internal/ui/app.go
 2index 43f824a738b97e2c21fab9b6e2cb21168a8c106a..b3922eaabcb45c81c06766ae67e8e62ff8cf41b7 100644
 3--- a/internal/ui/app.go
 4+++ b/internal/ui/app.go
 5@@ -28,6 +28,8 @@ var (
 6 	playerSaidStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("42"))  // green
 7 	hintStyle       = lipgloss.NewStyle().Foreground(lipgloss.Color("245")) // gray
 8 	cursorStyle     = lipgloss.NewStyle().Reverse(true)                     // input cursor
 9+	npcRomajiStyle  = lipgloss.NewStyle().Foreground(lipgloss.Color("226")) // yellow
10+	npcEngStyle     = lipgloss.NewStyle().Foreground(lipgloss.Color("208")) // orange
11 )
12 
13 type phase int
14@@ -292,12 +294,12 @@ func entryLines(e game.DisplayEntry, width int) []string {
15 	}
16 	if e.HasSpeech {
17 		if e.ShowRomaji {
18-			lines = append(lines, "  » "+sanitizeRomajiOnly(valueOrNone(e.Romaji)))
19+			lines = append(lines, npcRomajiStyle.Render("  » "+sanitizeRomajiOnly(valueOrNone(e.Romaji))))
20 		} else {
21 			lines = append(lines, hintStyle.Render("  » [F3] romaji hidden"))
22 		}
23 		if e.ShowEnglish {
24-			lines = append(lines, "    "+sanitizeRomajiOnly(valueOrNone(e.English)))
25+			lines = append(lines, npcEngStyle.Render("    "+sanitizeRomajiOnly(valueOrNone(e.English))))
26 		} else {
27 			lines = append(lines, hintStyle.Render("    [F4] english hidden"))
28 		}