When the system is in dark mode, BTT partially switches to light mode when action is selected

I just upgraded to version 4.494 and noticed a new bug:
When I select an action, the right side bar randomly switches to light mode. It only resets to dark mode upon restarting BTT. It's only triggered by a click on an action.

I have the same problem in 4.504 (45040)

this should be solved in v4.508 alpha