From: mlichvar Date: Wed, 31 Jan 2007 11:14:59 +0000 (+0000) Subject: - highlight active compact button on monochrome terminals X-Git-Tag: r0-52-5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9d245223a96ecde188140c1716f5891cf16ad6c;p=thirdparty%2Fnewt.git - highlight active compact button on monochrome terminals --- 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);