12.2a: folders duplicate with their contents, folder opacity, format version 8, View > Snap (Compositor 1.1.5–1.1.6)

This commit is contained in:
雷电芽衣 committed 2026-09-26 18:17:14 -04:00
1 parent ee34c338d4
commit f1b2c65c1e
52 files changed
+909 -239

No files matched your search

+6 -3
View File
@@ -168,9 +168,12 @@ void TransformOverlayTests::handlesAndGuidesArePaintedWhereTheyBelong()
QCOMPARE(shot.pixelColor(190, 140), QColor(Qt::white));
QCOMPARE(shot.pixelColor(210, 160), QColor(Qt::white));
QCOMPARE(shot.pixelColor(200, 112), QColor(Qt::white));
// The accent outline runs between the handles, over the red.
QVERIFY(shot.pixelColor(190, 145) != QColor(Qt::red));
QVERIFY(shot.pixelColor(190, 145).blue() > shot.pixelColor(190, 145).red());
// The accent alone runs between handles, half over red.
const QColor accent = canvas.palette().color(QPalette::Highlight);
const QColor edge = shot.pixelColor(190, 145);
QVERIFY2(std::abs(edge.red() - (accent.red() + 255) / 2) <= 2 && std::abs(edge.green() - accent.green() / 2) <= 2
&& std::abs(edge.blue() - accent.blue() / 2) <= 2,
qPrintable(edge.name()));
session.setShowsTransformControls(false);
QVERIFY(overlay.drawnRect(canvas.rect()).isEmpty());
shot = canvas.grab().toImage();