make the brush box work under the new GPU renderer

the brush preview will need separate treatment, but it shouldn't be too difficult
This commit is contained in:
りき萌 2025-09-09 22:07:26 +02:00
parent 63d5c04a0d
commit 2810fe248f
2 changed files with 86 additions and 11 deletions

View file

@ -283,6 +283,8 @@ rkgk-reticle-cursor {
rkgk-brush-box {
--button-size: 56px;
position: relative;
height: var(--height);
padding: 12px;
@ -316,7 +318,7 @@ rkgk-brush-box {
border-color: var(--color-brand-blue);
}
& > rkgk-brush-preview {
& > .preview {
width: var(--button-size);
aspect-ratio: 1 / 1;
background: none;
@ -352,6 +354,18 @@ rkgk-brush-box {
display: flex;
}
}
& > canvas {
position: absolute;
left: 0;
top: 0;
width: 100%;
margin: 12px;
pointer-events: none;
image-rendering: pixelated;
}
}
/* Code editor */