From 621d1288d1b721ce3010e510a5c49d0bbeb6802d Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 19 Jan 2012 22:21:38 +0100 Subject: [PATCH] Make New Variant dialog visible in mono-mode All colored buttons did get a black background, and also black text... Use timer background color in stead, which is white. --- xoptions.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/xoptions.c b/xoptions.c index 0ace8b6..688f3f3 100644 --- a/xoptions.c +++ b/xoptions.c @@ -83,6 +83,7 @@ extern char *getenv(); // [HGM] the following code for makng menu popups was cloned from the FileNamePopUp routines static Widget previous = NULL; +extern Pixel timerBackgroundPixel; void SetFocus (Widget w, XtPointer data, XEvent *event, Boolean *b) @@ -727,7 +728,7 @@ SetColor (char *colorName, Option *box) } else { buttonColor = *(Pixel *) vTo.addr; } - } else buttonColor = (Pixel) 0; + } else buttonColor = timerBackgroundPixel; XtSetArg(args[0], XtNbackground, buttonColor);; XtSetValues(box->handle, args, 1); } -- 1.7.0.4