Skip to content
⌘ NSIS Forum Archive

Little problem with ModernUI and bitmap colors

7 posts

MoNKi#

Little problem with ModernUI and bitmap colors

I have a 8bpp bitmap por the welcome and finish page, one of the colors in this bitmap is replaced with MUI_BGCOLOR, maybe because this color is equal to the default window color.

I have fixed it removing this lines on system.nsh, on the MUI_FUNCTION_WELCOMEPAGE macro:
GetDlgItem $MUI_TEMP1 $MUI_HWND 1200
SetCtlColors $MUI_TEMP1 "" "${MUI_BGCOLOR}" 
The problem is that in this position of the image, there is a gradient from white to dark grey, and in the middle of this degree a white line appears (MUI_BGCOLOR=white, if I change it to red, a red line appears)

A screenshot (in red, for a better visualization of the problem)
MoNKi#
Here is the bitmap, i'm working in a set of icons too.

The color replaced is, on my machine, R=232, G=232, B=232. If you didn't notice it with this bitmap, try to create one that contains your window color (i'm using a non default windows xp theme).
Joost Verburg#
After some investigation with the help of Dave we have identified the cause of this problem. It's a Windows XP issue.

The background color setting for the image has been disabled if the image is stretched, this will fix it for you.

It will be fixed for non-stretched images later.