There's a setting to "show shapes of toolbar buttons" or whatever it's called in English. It adds 1px faint grey lines around them. I turned it on the day I got my M1 mac. Doesn't help with the fact that the icons on these buttons are drawn as if there's no pixel grid and so are a blurry mess, but better than nothing still.