SlimApp icon indicating copy to clipboard operation
SlimApp copied to clipboard

Mica support on Win32 platform

Open Luminoso-256 opened this issue 3 years ago • 2 comments
trafficstars

Adds support for a window to utilize darkmode and Windows 11-style taskbars by defining SA_Win11 before inclusion of Slimapp. Requires that the app links to dwmapi.lib

image

Note that the changes require Windows 11 Insider Preview 22523 or higher to work for Mica. Before 22523, the only easy way to set Mica was through an undocumented attribute.

Not entirely sure if this is in scope, but was fun to add and figured I might as well PR it in case. Cheers!

Luminoso-256 avatar Jan 18 '22 02:01 Luminoso-256

Hey, thanks for the contribution :) Generally, I would want to avoid any additional specific dependencies, or operating system version requirements, as the whole point of the 'Slim' in the name there is to minimize dependencies and setup effort. Though, as long as it's all technically 'optional' and doesn't impose any additional requirement (code would still compile in much older version of Window), then I don't mind accepting it.

HardCoreCodin avatar Jan 18 '22 10:01 HardCoreCodin

The code should still compile in older windows versions just fine. Anything added in my PR is wrapped in an #ifdef SA_Win11 block, so without that definition it imposes no extra requirements.

Luminoso-256 avatar Jan 18 '22 17:01 Luminoso-256