@Christian-Ehrlicher
Here is a quickly written piece of code to reproduce the issue. It is just a single main.cpp file. I have to use pastebin since my message is being flagged as spam (I have no idea why!)
https://pastebin.com/DLVbDLzj
It depends on which mode the system starts with. I have the issue when the system starts with dark mode.