
:max_bytes(150000):strip_icc()/Personalizationannotated-23cf54124d3b4f02a4b3e7df15707474.jpg)
Unfortunately it returns a black background regardless of what I do: WinDef.HWND tray = ("Shell_TrayWnd", null) īufferedImage bi = GDI32Util.getScreenshot(tray) My second attempt was to take a screenshot of the taskbar and try to guess if it's dark or light themed.

This worked great for desktops that provided this value, but falls.My first attempt was to read the registry.I'm using Java, but any solutions are welcome as I'd happily convert them over as needed. For theming purposes, I'm looking to detect the color of the Windows taskbar (in my case, for a tray icon).
