Bug 512260

Summary: Support XDG Desktop Portal Accent Color Setting in applications
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Vincent Chernin <vincent>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: kdedev, notmart
Priority: NOR    
Version First Reported In: 6.19.0   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Vincent Chernin 2025-11-17 19:46:15 UTC
SUMMARY

Please add support for XDG desktop portal’s accent color setting in Qt/Kirigami/KColorScheme. Where exactly this should be implemented I don’t know, so I’ve filed this without a specific component. As a reference, the color scheme (light/dark mode) setting from the same portal is already implemented and works in at least some KDE/Qt apps. 

This would be nice to have as this is a cross desktop setting that works on most distros/desktops. Also the portal works out of the box in sandboxed apps like Flatpaks.

What might be tricky is handling conflicts between an accent color from the portal and from other ways of theming Qt/Kirigami apps.

Docs: https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Settings.html
Blog detailing GNOME’s implementation: https://cassidyjames.com/blog/freedesktop-accent-colors-gnome-proposal/
The kguiaddons color scheme implementation: https://invent.kde.org/frameworks/kguiaddons/-/merge_requests/27

SOFTWARE/OS VERSIONS
KDE Frameworks Version: 6.19
Qt Version: 6.10
Comment 1 TraceyC 2025-11-20 18:36:23 UTC
Changing to wishlist, since this is a feature request and sending to Kirigami
Comment 2 TraceyC 2025-11-20 18:36:33 UTC
.