1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-22 11:05:43 +00:00

chore(core/tests): add green to UI diff

[no changelog]
This commit is contained in:
Ioan Bizău 2025-03-19 10:38:04 +01:00 committed by Ioan Bizău
parent b07ed98ba4
commit 9b29cd2027

View File

@ -213,7 +213,7 @@ function createRowDiff(row) {
// Process differences
const difData = difCtx.createImageData(width, height);
options = {threshold: 0.0, includeAA: true};
options = {threshold: 0.0, includeAA: true, diffColorAlt: [0, 255, 0]};
pixelmatch(recData.data, curData.data, difData.data, width, height, options);
difCtx.putImageData(difData, 0, 0);