Re: Re: Programmatic color scheme change in QKdeTheme

2025-03-11 Thread Axel Spoerl
e: Re: Programmatic color scheme change in QKdeTheme [You don't often get email from da...@david-redondo.de. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Am Montag, 10. März 2025, 19:24 schrieb Axel Spoerl: > Hi David, > > I just did some debugging t

Re: Programmatic color scheme change in QKdeTheme

2025-03-11 Thread David Redondo
Hi Alex, Am Montag, 10. März 2025, 16:49 schrieb Axel Spoerl: > Hi KDE folks, > > Qt 6.8 has implemented QPlatformTheme::requestColorScheme() as a virtual > function. It is meant to allow a programmatic color scheme change within a > QGuiApplication. If the system's theme is dark, the applicati

Re: Re: Re: Re: Programmatic color scheme change in QKdeTheme

2025-03-11 Thread David Redondo
Am Dienstag, 11. März 2025, 14:44 schrieb Axel Spoerl: > Asking differently: How can a Qt application make sure, that KdePlatformTheme > is used? Nothing, it happens automatically. Our Theme has key: "kde" matching to XDG_CURRENT_DESKTOP https://invent.kde.org/plasma/plasma-integration/-/blob/mas

Re: Re: Re: Programmatic color scheme change in QKdeTheme

2025-03-11 Thread Axel Spoerl
Asking differently: How can a Qt application make sure, that KdePlatformTheme is used? From: kde-devel on behalf of Axel Spoerl Sent: Tuesday, 11 March 2025 11:46 To: kde-devel@kde.org Subject: Re: Re: Re: Programmatic color scheme change in QKdeTheme Just

Re: Re: Re: Programmatic color scheme change in QKdeTheme

2025-03-11 Thread Axel Spoerl
ect: Re: Re: Re: Programmatic color scheme change in QKdeTheme [You don't often get email from k...@david-redondo.de. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Am Dienstag, 11. März 2025, 10:10 schrieb Axel Spoerl: > Hi David, > thanks for the insig

Re: Re: Re: Programmatic color scheme change in QKdeTheme

2025-03-11 Thread David Redondo
Am Dienstag, 11. März 2025, 10:10 schrieb Axel Spoerl: > Hi David, > thanks for the insight! > The program would be ideal. However, it depends on KDE libraries. If an application links to KDE anyway, it can simply use the KDE platform theme. > Users of QKdeTheme are e.g. applications that don't li

Re: Re: Programmatic color scheme change in QKdeTheme

2025-03-11 Thread David Redondo
Am Montag, 10. März 2025, 19:24 schrieb Axel Spoerl: > Hi David, > > I just did some debugging to find out, how KDE Palettes are promoted to the > QKdeTheme. > The blunt answer is: They don't, and they have never been. > > They were probably meant to be promoted at some point, because QKdeTheme

Re: Programmatic color scheme change in QKdeTheme

2025-03-10 Thread Axel Spoerl
deTheme. The patch I mentioned factors it out from qgenericunixthemes.cpp. So enhancing the class will become a little easier. Cheers Axel From: David Redondo Sent: Monday, 10 March 2025 17:39 To: kde-devel@kde.org Cc: Axel Spoerl Subject: Re: Programmatic co