fade grid opacity on zooms lower than 0.7

preferencesAboutTextFull
Clément Fauconnier 7 years ago
parent 1dcd59e307
commit 2a92fc1ba1
  1. 2
      src/board/UBBoardView.cpp
  2. 2
      src/domain/UBGraphicsScene.cpp

@ -1609,7 +1609,7 @@ void UBBoardView::drawBackground (QPainter *painter, const QRectF &rect)
else
bgCrossColor = QColor(UBSettings::settings()->boardCrossColorLightBackground->get().toString());
if (transform ().m11 () < 1.0)
if (transform ().m11 () < 0.7)
{
int alpha = 255 * transform ().m11 () / 2;
bgCrossColor.setAlpha (alpha); // fade the crossing on small zooms

@ -2628,7 +2628,7 @@ void UBGraphicsScene::drawBackground(QPainter *painter, const QRectF &rect)
bgCrossColor = QColor(UBSettings::settings()->boardCrossColorDarkBackground->get().toString());
else
bgCrossColor = QColor(UBSettings::settings()->boardCrossColorLightBackground->get().toString());
if (mZoomFactor < 1.0)
if (mZoomFactor < 0.7)
{
int alpha = 255 * mZoomFactor / 2;
bgCrossColor.setAlpha (alpha); // fade the crossing on small zooms

Loading…
Cancel
Save