Skip to content
⌘ NSIS Forum Archive

black Style

11 posts

51819#edited
i want to DIY a soft.the background is blak.

i had uesed !define MUI_BGCOLOR 000000.
but the background is only a little black.

i want make it looke like the Photo
Red Wine#
Nope, using MUI you'll need to paint each control manually with SetCtlColors.
See the following for an example,

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.



Perhaps another ui from wiki would do that,

51819#edited


!define MUI_PAGE_CUSTOMFUNCTION_SHOW FinShow
!insertmacro MUI_PAGE_FINISH

Function FinShow
ReadINIStr $6 "$PLUGINSDIR\ioSpecial.ini" "Field 4" "HWND"
SetCtlColors $6 0x00FF00 0x00FF00
; Checkbox #2
ReadINIStr $7 "$PLUGINSDIR\ioSpecial.ini" "Field 3" "HWND"
SetCtlColors $7 0x566978 0x00FF00

FunctionEnd


how to change CHECKBOX text color on finish page?and need't green color.
51819#
define MUI_PAGE_CUSTOMFUNCTION_SHOW FinShow
!insertmacro MUI_PAGE_FINISH

Function FinShow
ReadINIStr $6 "$PLUGINSDIR\ioSpecial.ini" "Field 4" "HWND"
SetCtlColors $6 0x00FF00 transparent
; Checkbox #2
ReadINIStr $7 "$PLUGINSDIR\ioSpecial.ini" "Field 3" "HWND"
SetCtlColors $7 0x566978 transparent

FunctionEnd

IF I use transparent,i can't see the checkbox_text.
Afrow UK#
Rather than use transparent, try using the same colour code that is used for the background. It is a known issue that buttons in XP cannot have transparent backgrounds unless they are owner drawn.

Stu
51819#
define MUI_PAGE_CUSTOMFUNCTION_SHOW FinShow
!insertmacro MUI_PAGE_FINISH
Function FinShow
ReadINIStr $6 "$PLUGINSDIR\ioSpecial.ini" "Field 4" "HWND"
SetCtlColors $6 0xFFFFFF 0x000000
; Checkbox #2
ReadINIStr $7 "$PLUGINSDIR\ioSpecial.ini" "Field 3" "HWND"
SetCtlColors $7 0xFFFFFF 0x000000
FunctionEnd




if i use 0xFFFFFF 0x000000 ,i can't see checkbox_text.

the soft background is balck.
Afrow UK#
Sorry I didn't mention that with XPStyle on, not only can you not change the background colour to transparent but you cannot change the foreground (text) colour either.
What you should do is add check boxes without any labels and then add your own labels (Type=Label).

Stu