GetThemeSysColor

[DllImport("uxtheme.dll", SetLastError = true)]
public static extern COLORREF GetThemeSysColor(
   IntPtr hTheme,
   int iColorId
);

Microsoft documentation: Link

Last updated