Reference/SetCtlColors
From NSIS Wiki
Jump to navigationJump to search
SetCtlColors
hwnd [/BRANDING] [text_color] [transparent|bg_color]
Sets a background color and the text color for a static control, edit control, button or a dialog. text_color and bg_color don't accept variables. Use GetDlgItem to get the handle (HWND) of the control. To make the control transparent specify "transparent" as the background color value. You can also specify /BRANDING with or without text color and background color to make the control completely gray (or any other color you choose). This is used by the branding text control in the MUI.
FindWindow $0 "#32770" "" $HWNDPARENT GetDlgItem $0 $0 1006 SetCtlColors $0 0xFF0000 0x00FF00
Warning: setting the background color of check boxes to "transparent" may not function properly when using XPStyle on. The background may be completely black, instead of transparent, when using certain Windows themes.
Command introduced with NSIS v2.0