Skip to content

support QT_QPA_PLATFORMTHEME=kde#2321

Open
fishman wants to merge 1 commit into
AvengeMedia:masterfrom
fishman:master
Open

support QT_QPA_PLATFORMTHEME=kde#2321
fishman wants to merge 1 commit into
AvengeMedia:masterfrom
fishman:master

Conversation

@fishman
Copy link
Copy Markdown

@fishman fishman commented Apr 30, 2026

dms already supports Kcolorscheme. QT_QPA_PLATFORMTHEME=kde support allows you to dynamically switch light and dark mode of QT apps without needing a restart.

dms already supports Kcolorscheme. QT_QPA_PLATFORMTHEME=kde support
allows you to dynamically switch light and dark mode of QT apps without
needing a restart.
syncColorScheme(opts.Mode)
}

applyKDEColorScheme(opts.Mode)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GTK version is gated on whether or not the user is actually using the DMS colors or not, I think we need something equivalent. Like we wouldn't wanna apply the scheme if they're using something besides DankMatugen

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But shouldn't that be the kde color sync? Otherwise what's the point in syncing kde colors ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The matugen is running unconditionally on theme changes I mean. If someone has Breeze configured won't it change it to DankMatugen even if they didn't want that? Some users want dms without all the themes it provides

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well the color scheme works fine with Breeze that's specifically what Kcolorscheme is designed for. But maybe I should check if QT_QPA_PLATFORMTHEME is set to kde with QT_STYLE_OVERRIDE Breeze. I imagine it might cause problems with kvantum. But the people that use kvantum seem to set QT_QPA_PLATFORMTHEME to qt6ct

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I mean color scheme, if they are using a different color scheme like Breeze Dark and they want to keep it, this path will unconditionally change it to DankMatugen. So we should add a gate for current color scheme, if it's a DMS one then we can flip it to dark/light

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants