Home » U++ Library support » Look and Chameleon Technology » Dark theme issues
Re: U++ 2019.1.rc4 released [message #51590 is a reply to message #51589] |
Thu, 18 April 2019 14:54 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
cbpporter wrote on Thu, 18 April 2019 14:29OK, let's go in order.
Before the dark mode support, setting dark mode in Windows didn't work. So clearly it is not a "simple" issue of applying a system theme, because most applications ignore that windows option.
Well, the real secret is that Windows does not really support dark theme for Win32 apps....
So what we do is to detect the fact that win10 is in dark theme, then roll out our own based on DarkTheme versions of system colors.
Quote:
So my questions are:
- how do you activate dark theme in any app once, and have it work forever? Even if Windows is in light mode. Same for light mode.
Do not call DarkThemeEnabled. It does something else.
Create dark theme skin. That must be a function that sets everything to your desired colors.
Use SetSkin.
Quote:
Case in point:
void Ctrl::SetSkin(void (*_skin)())
It is not clear what it does and there are 100 more ways to touch skins.
There are 100 ways to touch the skin, BUT you are supposed to do them in skin routine.
So basically it does what you would want from SetTheme(Theme *). But the advantage is that you inherit some default skin which you are changing and you can even call "subskin" routines there.
I agree that more docs and some cleanup would be nice, but the basic idea is IMO sound.
Mirek
|
|
|
|
|
Dark theme issues
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Thu, 18 April 2019 13:38
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Thu, 18 April 2019 14:13
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Thu, 18 April 2019 14:54
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Thu, 18 April 2019 15:01
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Fri, 19 April 2019 12:30
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Fri, 19 April 2019 13:09
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Fri, 19 April 2019 13:11
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Fri, 19 April 2019 15:29
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Mon, 22 April 2019 10:33
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Mon, 22 April 2019 20:03
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Tue, 23 April 2019 09:04
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: Klugier on Wed, 24 April 2019 00:57
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Wed, 24 April 2019 08:13
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Fri, 26 April 2019 08:52
|
|
|
Re: U++ 2019.1.rc4 released
|
|
|
Re: U++ 2019.1.rc4 released
By: mirek on Thu, 18 April 2019 13:33
|
|
|
Re: Dark theme issues
By: Oblivion on Fri, 26 April 2019 10:49
|
|
|
Re: Dark theme issues
By: mirek on Fri, 26 April 2019 11:21
|
Goto Forum:
Current Time: Mon May 06 01:52:01 CEST 2024
Total time taken to generate the page: 0.02487 seconds
|