23phy / ewc

Native window composition on Windows for Electron apps.
MIT License
78 stars 7 forks source link

color format #35

Open phanirithvij opened 3 years ago

phanirithvij commented 3 years ago

Am I right in assuming the hex color being provided is 0xaabbggrr i.e. in the example 0x14800020 is #20008014?

I've been searching the undocumented documentations for SetWindowCompositionAttribute but couldn't find the info in the color/tint feild

nodgear commented 3 years ago

0x is the equivalent of # it just indicates the next numbers are part of a hex value the last two digits is Alpha channel

so 0x14800020 = #14800020 (0x148000 with alpha 0x20)