Bug 512260 - Support XDG Desktop Portal Accent Color Setting in applications
Summary: Support XDG Desktop Portal Accent Color Setting in applications
Status: CONFIRMED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.19.0
Platform: Other Linux
: NOR wishlist
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-17 19:46 UTC by Vincent Chernin
Modified: 2025-11-20 18:36 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 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
.