mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
fill text and inactive masks in reviewer
This commit is contained in:
parent
1a907af5d0
commit
9a94b202d7
1 changed files with 2 additions and 2 deletions
|
|
@ -217,7 +217,7 @@ function drawShapes(
|
|||
context,
|
||||
size,
|
||||
shape,
|
||||
fill: properties.inActiveShapeColor,
|
||||
fill: shape.fill ?? properties.inActiveShapeColor,
|
||||
stroke: properties.inActiveBorder.color,
|
||||
strokeWidth: properties.inActiveBorder.width,
|
||||
});
|
||||
|
|
@ -358,7 +358,7 @@ function drawShape({
|
|||
maxWidth + TEXT_PADDING,
|
||||
totalHeight + TEXT_PADDING,
|
||||
);
|
||||
ctx.fillStyle = "#000";
|
||||
ctx.fillStyle = shape.fill ?? "#000";
|
||||
for (const line of linePositions) {
|
||||
ctx.fillText(line.text, line.x, line.y);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue