Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Remove regression from rebasing
Dat Le2e2333ace54c
diff --git a/libs/ui/forms/wdggeneralsettings.ui b/libs/ui/forms/wdggeneralsettings.uiindex 754840408d..1da5910c1e 100644--- a/libs/ui/forms/wdggeneralsettings.ui+++ b/libs/ui/forms/wdggeneralsettings.ui@@ -1047,7 +1047,7 @@</widget></item><item row="3" column="0">- <widget class="QLabel" name="label_23">+ <widget class="QLabel" name="m_lblColorSamplerZoomPreviewScale"><property name="text"><string>Zoom Preview Scale:</string></property>diff --git a/libs/ui/tool/KisAsyncColorSamplerHelper.cpp b/libs/ui/tool/KisAsyncColorSamplerHelper.cppindex c024cdf9f6..dc4c04c2b2 100644--- a/libs/ui/tool/KisAsyncColorSamplerHelper.cpp+++ b/libs/ui/tool/KisAsyncColorSamplerHelper.cpp@@ -507,15 +507,6 @@ void KisAsyncColorSamplerHelper::paintCircle(QPainter &gc,if (needsNewCache || (needsDualColor && !qFuzzyCompare(m_d->cacheRotation, canvasRotationAngle))) {m_d->cacheRotation = canvasRotationAngle;- QColor backgroundColor = colorWithAlpha(qApp->palette().color(QPalette::Base), OPACITY_OPAQUE_U8 / 2 + 1);- qreal penWidth = m_d->circlePreviewDiameter > 100 ? (2.0 * dpr) : (1.0 * dpr);- QPen pen = QPen(backgroundColor, penWidth);- if (m_d->circlePreviewOutlineEnabled) {- cachePainter.setPen(pen);- } else {- cachePainter.setPen(Qt::NoPen);- }-QRectF outerRect = cacheRect.marginsRemoved(QMarginsF(penWidth, penWidth, penWidth, penWidth));if (needsDualColor) {@@ -582,7 +573,7 @@ void KisAsyncColorSamplerHelper::paintCircle(QPainter &gc,// Or fill with an opaque color to hide normal view when zooming at edge of canvascachePainter.setPen(Qt::NoPen);// If the cached block don't run, no brush is set. So set it- cachePainter.setBrush(qApp->palette().color(QPalette::ColorRole::Base));+ cachePainter.setBrush(m_d->backgroundColor);if (m_d->circleZoomPreviewScale > 1){cachePainter.setCompositionMode(QPainter::CompositionMode_SourceOver);}