Mercurial > hg > svgui
diff view/Pane.cpp @ 287:cd2492c5fe45
* Add SingleColourLayer to manage colours for layers that have a single
predominant colour (i.e. most of them).
author | Chris Cannam |
---|---|
date | Thu, 12 Jul 2007 16:14:59 +0000 |
parents | 86a112b5b319 |
children | 3101c68a00c1 |
line wrap: on
line diff
--- a/view/Pane.cpp Wed Jul 11 20:46:37 2007 +0000 +++ b/view/Pane.cpp Thu Jul 12 16:14:59 2007 +0000 @@ -568,8 +568,8 @@ // std::cerr << "Pane::paintEvent: calling paint.save() in vertical scale block" << std::endl; paint.save(); - paint.setPen(Qt::black); - paint.setBrush(Qt::white); + paint.setPen(getForeground()); + paint.setBrush(getBackground()); paint.drawRect(0, -1, m_scaleWidth, height()+1); paint.setBrush(Qt::NoBrush); @@ -750,7 +750,7 @@ for (size_t i = 0; i < texts.size(); ++i) { if (i + 1 == texts.size()) { - paint.setPen(Qt::black); + paint.setPen(getForeground()); } drawVisibleText(paint, llx, @@ -776,11 +776,7 @@ } paint.save(); - if (hasLightBackground()) { - paint.setPen(QPen(Qt::black, 2)); - } else { - paint.setPen(QPen(Qt::white, 2)); - } + paint.setPen(QPen(getForeground(), 2)); //!!! duplicating display policy with View::drawSelections @@ -856,8 +852,8 @@ paint.save(); - paint.setPen(Qt::black); - paint.setBrush(Qt::white); + paint.setPen(getForeground()); + paint.setBrush(getBackground()); paint.drawRect(xorigin, -1, m_scaleWidth, height()+1); paint.setBrush(Qt::NoBrush);