Change font color

Common questions about using Actual Installer.
Post Reply
redseujac2
Posts: 14
Joined: Sun Nov 17, 2019 5:15 pm

Change font color

Post 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.
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Change font color

Post 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.
Leo,
Actual Installer Team
https://www.actualinstaller.com
redseujac2
Posts: 14
Joined: Sun Nov 17, 2019 5:15 pm

Re: Change font color

Post 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?
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Change font color

Post by Leo »

Sure, we'll add this feature in next version.
Leo,
Actual Installer Team
https://www.actualinstaller.com
redseujac2
Posts: 14
Joined: Sun Nov 17, 2019 5:15 pm

Re: Change font color

Post 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.
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Change font color

Post by Leo »

That's strange. I'll resend this to our developers.
Thank you for notifying.
Leo,
Actual Installer Team
https://www.actualinstaller.com
redseujac2
Posts: 14
Joined: Sun Nov 17, 2019 5:15 pm

Re: Change font color

Post 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?
Post Reply