Page 1 of 1

Change font color

Posted: Sun Nov 17, 2019 5:34 pm
by redseujac2
Actual Installer 7.5

I want to make changes to color of fonts in setup program by creating an aifont.ini file in <SetupTempDir> on Files and Folders page.
I already created the aifont.ini file.
Now I have to specify the value of "HeaderColor=?" and "TextColor=?" The default value is "0".
How do I set other color values?
I have tried other numbers like "1,2,3", etc., "RGB(x,y,z)", hex numbers like "#808080", but this doesn't work. The result is always black color.

I have also noticed that for the strings "By installing this product you agree to our..." and "Copyright..." the default color doesn't change, in spite of the aifont.ini file.

Re: Change font color

Posted: Mon Nov 18, 2019 11:58 am
by Leo
For font color use HEX code of color:
https://www.rapidtables.com/convert/col ... o-rgb.html

E.g. to use the Purple color use $800080

Code: Select all

HeaderColor=$800080
note that the color code should begin with the symbol $

Colors for the License and Copyright text cannot be changed.

Re: Change font color

Posted: Mon Nov 18, 2019 1:10 pm
by redseujac2
Thank you.

But it's a pity that in the Modern UI the color for e.g the text"By installing this product, you agree to our" and the text "Copyright" cannot be changed. On my custom background that grey text is hardly readable.

May I suggest to make it possible to change that text color in a future program update? At least may I suggest to make the color for those strings "dark grey" yourselves, so it remains readable on some darker backgrounds?

Re: Change font color

Posted: Mon Nov 18, 2019 4:40 pm
by Leo
Sure, we'll add this feature in next version.

Re: Change font color

Posted: Tue Nov 19, 2019 11:50 am
by redseujac2
Leo wrote:For font color use HEX code of color:
https://www.rapidtables.com/convert/col ... o-rgb.html

E.g. to use the Purple color use $800080

Code: Select all

HeaderColor=$800080
note that the color code should begin with the symbol $
It's strange: when I use $FF0000 AI shows me blue color instead of red and when use $0000FF AI shows me red color instead of blue :?
Also for other codes AI returns wrong colors.

Could you find out what's going wrong? Is the syntax correct?

Edit: I am also wondering why the color code must begin with the dollar sign ($) and not with the pound/number/hashtag symbol (#) as usually for hex colors.

Re: Change font color

Posted: Wed Nov 20, 2019 4:43 am
by Leo
That's strange. I'll resend this to our developers.
Thank you for notifying.

Re: Change font color

Posted: Wed Nov 20, 2019 1:26 pm
by redseujac2
The entered hex color code seems to be misinterpreted somehow. AI Showing ALWAYS other colors, i.e. not corresponding to the given hex code.
I wonder if this has something to do with the encoding/character set of the ini-file (UTF-8 with or without BOM, etc.).

Could you please come back here when the developers have found the solution/fix?