Commit 4e1b6394 authored by Scott Petrovic's avatar Scott Petrovic Committed by Scott Petrovic
Browse files

add background to rulers so it is easier to see bounds


Signed-off-by: Scott Petrovic's avatarScott Petrovic <scottpetrovic@gmail.com>
parent dfa67d56
......@@ -141,6 +141,9 @@ QRectF HorizontalPaintingStrategy::drawBackground(const KoRulerPrivate *d, QPain
activeRangeRectangle.setHeight(rectangle.height() - 2);
painter.setPen(d->ruler->palette().color(QPalette::Mid));
painter.fillRect(rectangle,d->ruler->palette().color(QPalette::AlternateBase)); // make background slightly different so it is easier to see
painter.drawRect(rectangle);
if(d->effectiveActiveRangeStart() != d->effectiveActiveRangeEnd())
......@@ -457,6 +460,8 @@ QRectF VerticalPaintingStrategy::drawBackground(const KoRulerPrivate *d, QPainte
d->viewConverter->documentToViewY(d->effectiveActiveRangeEnd()) + d->offset));
painter.setPen(d->ruler->palette().color(QPalette::Mid));
painter.fillRect(rectangle,d->ruler->palette().color(QPalette::AlternateBase));
painter.drawRect(rectangle);
if(d->effectiveActiveRangeStart() != d->effectiveActiveRangeEnd())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment