Archive: Changing MUI_FONT_HEADER color.


Changing MUI_FONT_HEADER color.
Hey guys,

VERY impressive, solid installer. My hat goes to you.

Is it at all possible to change the color of the header font in MODERN_UI? I would like to be able to make it white. Also, can the header text be moved/aligned in any way, whether through a ResHacker or, perhaps, in a simpler fasion through the installer script?

And last, is there any forum discussion/link regarding the use of the different MODERN_UIs, for e.g sdbarker_tiny. I'd like to make a patch installer combined with VPatch, and minimal user interaction.

Hope I didn't overwhelm you with questions.
Thank you in advance!

Tigran


I don't think it is possible to change the colours of text on NSIS dialogs as yet, but I know that Kichik could code it in easily (it's on the ToDo list)

The best and probably only way to move the text over, would be to put in some spaces :p
I may be wrong though! (I've never attempted to ask the question before)

For the sdbarker_tiny, I like to use mostly custom pages on it. Apart from that, I'm not sure what you need!

Anyway, here is one thing I did last year which shows off the flexibility of NSIS!
http://myweb.tiscali.co.uk/imker/temp.jpg

-Stu :)


Thanks for the quick reply, Stu!

I suppose knowing the text width, I could play around with the label positions and right align the header text.

I certainly wish the foreground color was changeable, since the header background is dark gray, black fonts don't look very well. Now, you'll ask why can't I use a different color? Company branding restrictions. :rolleyes: Could this be done through Windows API/custom DLL, since the labels are just standard windows controls, and we can already change the background color? I just don't want to reinvent the bicycle if this is in the works.

As far as the use of different modern interfaces, I was just looking for more information on their usage. Most examples use modern.exe as a standard.

Tigran


To center the text edit the UI using a resource editor such as Resource Hacker and add the SS_CENTER style to the static controls you wish to center.

Changing the text color would require changing the source code. If you wish to do that I can tell you how.

To use another interface just use ChangeUI or define MUI_UI if using the MUI.


Kichick,

I tried to look through the source code on my own. but with no avail. What is it that I need to do to change ONLY the header text to white? Thank you in advance.

Regards,
Tigran


Source\exehead\Ui.c line ~129 - function _HandleStaticBkColor.

Add SetTextColor for the appropriate control.


Will there be an option integrated to change the foreground textcolor? i don't want to change the source code for changing the header text color :)


I'm waiting for that option for a very long time :confused:


Umm.. guys, sorry to bring this thread back alive again, but i tried finding a way to get the header's text position and colour's changed but haven't figured away to.

This thread was last answered 3 years ago lol, i was wondering if the newer NSIS versions have integrated something of the sort in, as i notice the basic.nsi has its text left aligned just because it has no !define MUI_HEADERIMAGE. thanks


Use SetCtlColors.


>_> i'm kind of a n00b at this really... i can't understand alot of the scripting stuff posted =_= would someone be kind enough to just post the scripting here for a white header font colour? O_o


Do not forget you can always insert a CUSTOM page you do not NEED to use the build in pages.