Bug 512377 - File Dialog does not style properly
Summary: File Dialog does not style properly
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.5.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-20 10:40 UTC by Alexandre
Modified: 2025-12-21 12:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ?