Page 1 of 1

Default colors

Posted: Wed May 23, 2012 1:04 pm
by iPick12
Hi, I'm trying to change the default ReactOS colors.
I found out that the file containing the colors is \boot\bootdata\hivedef_i386.inf.
But in the file, the colors are in an indexed hexadecimal format, and I've no idea,
about what is every color and how do I convert the colors to the proper hex value.
So, here are the only changes I made:

Active Caption
Color 1 <-- 0, 0, 160
Color 2 <-- 0, 0, 161

Inactive Caption
Color 1 <-- 128, 128, 128
Color 2 <-- 129, 129, 129

Can someone tell me how to apply them to the INF file?

Re: Default colors

Posted: Thu May 24, 2012 12:07 am
by Webunny
Guess the devs don't look much into the forum....

Posted: Thu May 24, 2012 6:55 am
by hto
I've no idea, about what is every color […]
See in this MS article or in ReactOS sources.

Active Caption Color 1 is COLOR_ACTIVECAPTION or Color #2.
Active Caption Color 2 is COLOR_GRADIENTACTIVECAPTION or Color #27.
Inactive Caption Color 1 is COLOR_INACTIVECAPTION or Color #3.
Inactive Caption Color 2 is COLOR_GRADIENTINACTIVECAPTION or Color #28.
[…] and how do I convert the colors to the proper hex value.
Hex values have 0x00bbggrr format, where bb, gg, and rr are blue, green, and red components.

Thus, (0, 0, 160) is 0x00a00000; (0, 0, 161) is 0x00a10000; (128, 128, 128) is 0x00808080; (129, 129, 129) is 0x00818181.

Re: Default colors

Posted: Thu May 24, 2012 8:37 am
by iPick12
Thanks hto, that works!