How do I get rid of these gray translucent boxes?

I've already tried editing the window.png file, but it seems like these boxes are being rendered, I don't think they're a sprite. I can already see the selection with the window.png file (the dark green color) so I don't need them. How do I remove them, turn the opacity to 0, or otherwise edit them?
rpgmaker problem.png
save this as a .js file and add it into your project as a plugin at the bottom of the list
Code:
Window_ItemList.prototype.drawBackgroundRect = function(rect) {};
If so how do you know which one is selected?
If so how do you know which one is selected?
both MV and MZ highlight the current item list item, but its not the same function as making a regular item background (well... MV doesnt do that at all, but technically still correct 😛)


Spoiler: before/after
1732709929066.png

1732709960203.png
save this as a .js file and add it into your project as a plugin at the bottom of the list
Code:
Window_ItemList.prototype.drawBackgroundRect = function(rect) {};
Thank you so much!
I also ended up disabling it for the command buttons so for anyone reading this in future, I ended up putting this in my plugin:

Window_ItemList.prototype.drawBackgroundRect = function(rect) {};
Window_Command.prototype.drawBackgroundRect = function(rect) {};
Just as a note, that rectangle is originally created for the Window_Selectable and then inherited by the others.

So unless there's some other selectable window in the game where you do want it, you only need to have one line of code overwriting Window_Selectable.prototype.drawBackgroundRect().

Also see:



Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-rid-of-these-gray-translucent-boxes.173484/