From 2b5d8f595f96a2864899f4c7e28bc06fa52d2603 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 18 Jul 2026 04:44:50 -0400 Subject: feat: expose all colors in config.yaml for easier theming --- internal/game/cmd_aps.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'internal/game/cmd_aps.go') diff --git a/internal/game/cmd_aps.go b/internal/game/cmd_aps.go index 727bf8b..56820ad 100644 --- a/internal/game/cmd_aps.go +++ b/internal/game/cmd_aps.go @@ -125,15 +125,18 @@ func displayApsNodes(g *Game, sess *net.Session, p *player.Player, known []int) }) mode := g.colorMode(sess) + hLabel := g.resolveConstant(sess, "table_header_label") + hDetail := g.resolveConstant(sess, "table_header_detail") + hValue := g.resolveConstant(sess, "table_header_value") rows := make([][]string, len(infos)) for i, info := range infos { distStr := strconv.Itoa(info.Distance) if info.Distance == 0 { - distStr = color.Render(mode, color.Parse("6C"), "here") + distStr = color.Render(mode, g.resolveConstant(sess, "aps_here"), "here") } rows[i] = []string{ - color.Render(mode, color.Parse("F5"), fmt.Sprintf("#%d", info.ID)), - color.Render(mode, color.Parse("49"), info.Name), + color.Render(mode, hDetail, fmt.Sprintf("#%d", info.ID)), + color.Render(mode, hLabel, info.Name), distStr, } } @@ -141,9 +144,9 @@ func displayApsNodes(g *Game, sess *net.Session, p *player.Player, known []int) t := &ui.Table{ Title: "APS Datapad", Columns: []string{ - color.Render(mode, color.Parse("F5"), "Room"), - color.Render(mode, color.Parse("49"), "Name"), - color.Render(mode, color.Parse("FA"), "Distance"), + color.Render(mode, hDetail, "Room"), + color.Render(mode, hLabel, "Name"), + color.Render(mode, hValue, "Distance"), }, Rows: rows, } -- cgit v1.2.3