refactor(common): move button selector corner to common

This commit is contained in:
2025-12-18 16:47:17 +01:00
parent c5f07e7b80
commit 0c40597b04
2 changed files with 4 additions and 4 deletions

View File

@@ -43,21 +43,21 @@ useRender((ctx) => {
ctx.globalAlpha = props.opacity; ctx.globalAlpha = props.opacity;
ctx.drawImage(assets.home.bottomScreen.buttons.corner, x, y); ctx.drawImage(assets.common.selectorCorner, x, y);
ctx.save(); ctx.save();
ctx.scale(-1, 1); ctx.scale(-1, 1);
ctx.drawImage(assets.home.bottomScreen.buttons.corner, -(x + w), y); ctx.drawImage(assets.common.selectorCorner, -(x + w), y);
ctx.restore(); ctx.restore();
ctx.save(); ctx.save();
ctx.scale(1, -1); ctx.scale(1, -1);
ctx.drawImage(assets.home.bottomScreen.buttons.corner, x, -(y + h)); ctx.drawImage(assets.common.selectorCorner, x, -(y + h));
ctx.restore(); ctx.restore();
ctx.save(); ctx.save();
ctx.scale(-1, -1); ctx.scale(-1, -1);
ctx.drawImage(assets.home.bottomScreen.buttons.corner, -(x + w), -(y + h)); ctx.drawImage(assets.common.selectorCorner, -(x + w), -(y + h));
ctx.restore(); ctx.restore();
}); });

View File

Before

Width:  |  Height:  |  Size: 80 B

After

Width:  |  Height:  |  Size: 80 B