From 397b8de9c2a590f98c1a3255a6dbe7570a7b70b8 Mon Sep 17 00:00:00 2001 From: citrons Date: Sun, 1 Jun 2025 17:14:51 -0500 Subject: color scheme definition --- client/cmd_window.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'client/cmd_window.go') diff --git a/client/cmd_window.go b/client/cmd_window.go index 6a69bb9..d468385 100644 --- a/client/cmd_window.go +++ b/client/cmd_window.go @@ -37,18 +37,9 @@ func (m logMsg) Show(odd bool) { var style *tui.Style switch m.logType { case logErr: - var bg int32 = tui.Red - if odd { - bg = tui.BrightRed - } - style = &tui.Style {Bg: bg, Fg: tui.White} + style = &tui.Style {Bg: colorErr[odd], Fg: tui.White} case logCmd: - var bg int32 = tui.Blue - if odd { - bg = tui.BrightBlue - } - style = &tui.Style {Bg: bg, Fg: tui.Black} - default: + style = &tui.Style {Bg: colorCmd[odd], Fg: tui.White} } tui.Push("", tui.Box { -- cgit v1.2.3