From e9d245223a96ecde188140c1716f5891cf16ad6c Mon Sep 17 00:00:00 2001 From: mlichvar Date: Wed, 31 Jan 2007 11:14:59 +0000 Subject: [PATCH] - highlight active compact button on monochrome terminals --- button.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/button.c b/button.c index bbf0612..fa819eb 100644 --- a/button.c +++ b/button.c @@ -106,8 +106,10 @@ static void buttonDrawIt(newtComponent co, int active, int pushed) { if (bu->compact) { if (!active) SLsmg_set_color(NEWT_COLORSET_COMPACTBUTTON); - else + else if (SLtt_Use_Ansi_Colors) SLsmg_set_color(NEWT_COLORSET_BUTTON); + else + SLsmg_set_color(NEWT_COLORSET_ACTBUTTON); newtGotorc(co->top+ pushed, co->left + 1 + pushed); SLsmg_write_char('<'); SLsmg_write_string(bu->text); -- 2.47.2