SetSysColors

[DllImport("user32.dll", SetLastError = true)]
public static extern bool SetSysColors(
   int cElements,
   [In] int[] lpaElements,
   [In] COLORREF[] lpaRgbValues
);

Microsoft documentation: Link

Last updated