Set dark view for any window?

Windows specific forum
BarryG
Addict
Addict
Posts: 3293
Joined: Thu Apr 18, 2019 8:17 am

Set dark view for any window?

Post 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
User avatar
SPH
Enthusiast
Enthusiast
Posts: 268
Joined: Tue Jan 04, 2011 6:21 pm

Re: Set dark view for any window?

Post by SPH »

It's negative, I just checked !
http://HexaScrabble.com/
!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 5.73LTS - 32 bits
BarryG
Addict
Addict
Posts: 3293
Joined: Thu Apr 18, 2019 8:17 am

Re: Set dark view for any window?

Post 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/
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: Set dark view for any window?

Post 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).
Post Reply