Bug 512377

Summary: File Dialog does not style properly
Product: [Plasma] xdg-desktop-portal-kde Reporter: Alexandre <alexandre>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: NEEDSINFO WAITINGFORINFO    
Severity: normal CC: aleixpol, kde
Priority: NOR    
Version First Reported In: 6.5.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexandre 2025-11-20 10:40:23 UTC
SUMMARY
When styled differently than the default (for example dark mode) the file dialogue does not style correctly and instead uses the default settings. This does not seem to append under Kwin but in Niri using the kde portal for the file picker.

STEPS TO REPRODUCE
1. Set QT_QPA_PLATFORMTHEME=kde
2. Select the kde portal for org.freedesktop.impl.portal.FileChooser in your portal config (make sure the change is applied)
2. Change to the dark variant of the theme
3. Open a File dialogue through an app

OBSERVED RESULT

The File dialog remains in the default style.

EXPECTED RESULT

The File dialog should pick up any configuration set with the QT_QPA_PLATFORMTHEME as do all other apps and portals.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0

ADDITIONAL INFORMATION

You can check the initial discussion about this topic here: https://discuss.kde.org/t/kio-not-styling-properly/41829/3
Comment 1 David Redondo 2025-12-15 14:23:30 UTC
How do you set QT_QPA_PLATFORMTHEME=kde? 

FWIW the portal backend will be dbus activated by the frontend, dbus will ask systemd to start it.
Comment 2 Alexandre 2025-12-21 12:25:58 UTC
(In reply to David Redondo from comment #1)
> How do you set QT_QPA_PLATFORMTHEME=kde? 
> 
> FWIW the portal backend will be dbus activated by the frontend, dbus will
> ask systemd to start it.

I set it through the config of my wayland compositor (niri). Should I try setting it differently ?