diff --git a/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.cpp b/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.cpp index d7c623d7a..16901692d 100644 --- a/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.cpp +++ b/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.cpp @@ -299,7 +299,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *) QPen pen ; pen.setWidth(2) ; - pen.setBrush(Qt::black) ; + pen.setBrush(FOREGROUND_COLOR) ; _painter->setPen(pen) ; int i=0; @@ -350,7 +350,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *) pen.setWidth(2) ; if(_current_service_id == it->second.mServiceType) - pen.setBrush(Qt::black) ; + pen.setBrush(FOREGROUND_COLOR) ; else pen.setBrush(Qt::gray) ; @@ -364,7 +364,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *) _painter->drawLine(QPointF(X,Y+3),QPointF(X+text_width,Y+3)) ; _painter->drawLine(QPointF(X+text_width/2, Y+3), QPointF(X+text_width/2,S*fMATRIX_START_Y+peer_ids.size()*S*fROW_SIZE - S*fROW_SIZE+5)) ; - pen.setBrush(Qt::black) ; + pen.setBrush(FOREGROUND_COLOR) ; _painter->setPen(pen) ; _painter->drawText(QPointF(X,Y),name); @@ -497,7 +497,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *) QPen pen ; pen.setWidth(2) ; - pen.setBrush(Qt::black) ; + pen.setBrush(FOREGROUND_COLOR) ; _painter->setPen(pen) ; diff --git a/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.h b/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.h index 6dec86389..6b64150cb 100644 --- a/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.h +++ b/retroshare-gui/src/gui/settings/RSPermissionMatrixWidget.h @@ -33,11 +33,12 @@ #define HOR_SPC 2 /** Space between data points */ #define SCALE_WIDTH 75 /** Width of the scale */ -#define BACK_COLOR Qt::white -#define SCALE_COLOR Qt::black -#define GRID_COLOR Qt::lightGray -#define RSDHT_COLOR Qt::magenta -#define ALLDHT_COLOR Qt::yellow +#define BACK_COLOR Qt::white +#define FOREGROUND_COLOR Qt::black +#define SCALE_COLOR Qt::black +#define GRID_COLOR Qt::lightGray +#define RSDHT_COLOR Qt::magenta +#define ALLDHT_COLOR Qt::yellow #define FONT_SIZE 11