]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
- highlight active compact button on monochrome terminals
authormlichvar <mlichvar>
Wed, 31 Jan 2007 11:14:59 +0000 (11:14 +0000)
committermlichvar <mlichvar>
Wed, 31 Jan 2007 11:14:59 +0000 (11:14 +0000)
button.c

index bbf0612ec07e01a9d85e03fe9e113b85a91c1ac0..fa819ebfdfd9a1ced4064d35ca7e5d095dd735db 100644 (file)
--- 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);