mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
gui: rspermissionmatrixwidget: use define for qt::black
This commit is contained in:
parent
55ff018166
commit
209e1541ff
@ -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) ;
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user