How is Darkmode /Global-Design rolled out/enforced (its not working correctly when i change t sway)

im using Sway alongside Plasma 6. Recently a strange behavior came to my attention: When i use global-design/dark in plasma is everything es expected. But when i log out and change to sway its a little different: Some KDE or say qt-apps would stop displaying the design correctly in a fashion that some pieces of the ui remain in the “light” theme.

For example, in dolphin the text of file-descriptions would remain in black which makes them unreadable in the combination with everything else switched correctly to dark.

similar with lyx: Part of the ui is dark correctly but other parts remain in the light mode.

(See attached png for reference)

Since im actually not a professional computer-guy but rather an interested layman im a little bit overwhelmed by how to fix this.

My guess would be that there would be some variable or helper program that is erased or terminated once i log out of plasma and hence is responsible for the behavior experienced in sway.

My hope is that we could at least identify them so that i can deal with them manually via my login-scripts to sway.

Since i want to keep the amount of programs that i have to manage small i am declined to use kvantum as this would come to mind to at least somebody.

I could be wrong, but I think that kwin - Plasma’s compositor - is the thing that provides this, or requests it.
As Sway is a different compositor, it has different features and capabilities.