Layer styles window preview covers and darkens canvas

Looks like KDE?
That’s an (un-)feature of Plasma desktop effects, it dims all windows that have a modal dialog open, to indicate you can’t directly interact with it right now.

Open Syste Settings, go to Workspace Behavior => Desktop Effects and disable “Dialog Parent” in the Focus section.