Page 1 of 1

Set dark view for any window?

Posted: Sat Jan 23, 2021 7:37 am
by BarryG
Just found this app (sorry to advertise) -> https://windowtop.info/

And it can turn ANY window into Dark Mode, even Win32 ones. How the hell? Can we do that with PureBasic?

Below is an example of how it changed Handbrake (video converter) from Normal to Dark, without restarting it.

[Edit] It seems the app is doing some sort of real-time "negative" filter on the window, because dark mode stops when WindowTop is quit.

Image

Re: Set dark view for any window?

Posted: Sat Jan 23, 2021 3:04 pm
by SPH
It's negative, I just checked !

Re: Set dark view for any window?

Posted: Sat Jan 23, 2021 3:34 pm
by BarryG
Yeah, I said that in my edit. But this site says it's just a dark filter over the window -> https://www.ghacks.net/2020/06/01/set-a ... windowtop/

Re: Set dark view for any window?

Posted: Sun Jan 24, 2021 11:59 pm
by Mijikai
Should work like this:
Hook the window proc and call InvertRect_() or BitBlt_() if the window is redrawn.
Or overlay a transparent window and blit on that (hook free).