Archive: Font Colors in headers


Font Colors in headers
Hi. As shown in the attached file, I can't figure out how to get the font colors on the header to change. My code is the following.


!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Examples\Modern UI\logo2.bmp"
!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!define MUI_BGCOLOR "171717"


Please help! Thanks.

P.S. Sorry about the bad quality on the image...

You can use GetDlgItem to get the text HWND and SetCtlColors to set its colors. Take a look at the MUI_GUIINIT_BASIC macro in Contrib\Modern UI\System.nsh. That's the macro that sets the colors of the header text. You should add your own .onGUIInit function and set the text color to the desired color.