Fixed marker preview circle color

preferencesAboutTextFull
Craig Watson 8 years ago
parent 334839d2d7
commit 91f534e152
  1. 4
      src/core/UBSettings.cpp
  2. 7
      src/domain/UBGraphicsScene.cpp

@ -80,8 +80,8 @@ QBrush UBSettings::eraserBrushLightBackground = QBrush(QColor(255, 255, 255, 30)
QPen UBSettings::eraserPenDarkBackground = QPen(QColor(255, 255, 255, 127)); QPen UBSettings::eraserPenDarkBackground = QPen(QColor(255, 255, 255, 127));
QPen UBSettings::eraserPenLightBackground = QPen(QColor(0, 0, 0, 127)); QPen UBSettings::eraserPenLightBackground = QPen(QColor(0, 0, 0, 127));
QColor UBSettings::markerCircleBrushColorDarkBackground = QColor(127, 127, 127, 0); QColor UBSettings::markerCircleBrushColorDarkBackground = QColor(127, 127, 127, 80);
QColor UBSettings::markerCircleBrushColorLightBackground = QColor(255, 255, 255, 0); QColor UBSettings::markerCircleBrushColorLightBackground = QColor(255, 255, 255, 30);
QColor UBSettings::markerCirclePenColorDarkBackground = QColor(255, 255, 255, 127); QColor UBSettings::markerCirclePenColorDarkBackground = QColor(255, 255, 255, 127);
QColor UBSettings::markerCirclePenColorLightBackground = QColor(0, 0, 0, 127); QColor UBSettings::markerCirclePenColorLightBackground = QColor(0, 0, 0, 127);

@ -2608,20 +2608,19 @@ void UBGraphicsScene::updateMarkerCircleColor()
if (!mMarkerCircle) if (!mMarkerCircle)
return; return;
QBrush mcBrush = mMarkerCircle->brush();
QPen mcPen = mMarkerCircle->pen(); QPen mcPen = mMarkerCircle->pen();
if (mDarkBackground) { if (mDarkBackground) {
mcBrush.setColor(UBSettings::markerCircleBrushColorDarkBackground);
mcPen.setColor(UBSettings::markerCirclePenColorDarkBackground); mcPen.setColor(UBSettings::markerCirclePenColorDarkBackground);
mMarkerCircle->setBrush(UBSettings::markerCircleBrushColorDarkBackground);
} }
else { else {
mcBrush.setColor(UBSettings::markerCircleBrushColorLightBackground);
mcPen.setColor(UBSettings::markerCirclePenColorLightBackground); mcPen.setColor(UBSettings::markerCirclePenColorLightBackground);
mMarkerCircle->setBrush(UBSettings::markerCircleBrushColorLightBackground);
} }
mMarkerCircle->setBrush(mcBrush); mcPen.setStyle(Qt::DotLine);
mMarkerCircle->setPen(mcPen); mMarkerCircle->setPen(mcPen);
} }

Loading…
Cancel
Save