rem: data->gc = WMColorGC(color);
add: data->gc = WMColorGC(WMWhiteColor(scr)); data->selGC = WMColorGC(color);
context: WMTableColumnDelegate *WTCreateBooleanSwitchDelegate(WMTableView *parent){    WMTableColumnDelegate *delegate = wmalloc(sizeof(WMTableColumnDelegate));    WMScreen *scr = WMWidgetScreen(parent);    BooleanSwitchData *data = wmalloc(sizeof(BooleanSwitchData));    WMColor *color;    data->widget = WMCreateSwitchButton(parent);    W_ReparentView(WMWidgetView(data->widget), 		   WMGetTableViewDocumentView(parent), 		   0, 0);    WMSetButtonText(data->widget, NULL);    WMSetButtonImagePosition(data->widget, WIPImageOnly);    WMSetButtonImage(data->widget, NULL);    WMSetButtonAltImage(data->widget, WMGetSystemPixmap(scr, WSICheckMark));	    data->table = parent;    color = WMCreateNamedColor(scr, SelectionColor, False);    WMSetWidgetBackgroundColor(data->widget, color);        data->gc = WMColorGC(color);        delegate->data = data;    delegate->drawCell = BSCellPainter;    delegate->drawSelectedCell = selectedBSCellPainter;    delegate->beginCellEdit = beginBSCellEdit;    delegate->endCellEdit = endBSCellEdit;    return delegate;}