Linux flatpak cannot automatically detect dark theme, and manual dark theme has light toolbar

On openSUSE Tumbleweed with KDE Plasma, the tool bar still has a light theme despite dark theme being set. Additionally, the ‘automatic’ theme detection selects light theme and not dark theme.

Could you please tell me if I’m doing something wrong or perhaps fix it? Thank you!