Default colors

All development related issues welcome

Moderator: Moderator Team

Post Reply
iPick12
Posts: 16
Joined: Mon May 07, 2012 6:16 pm

Default colors

Post by iPick12 » Wed May 23, 2012 1:04 pm

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?

Webunny
Posts: 1201
Joined: Sat Apr 28, 2012 1:30 pm

Re: Default colors

Post by Webunny » Thu May 24, 2012 12:07 am

Guess the devs don't look much into the forum....

hto
Developer
Posts: 2193
Joined: Sun Oct 01, 2006 3:43 pm

Post by hto » Thu May 24, 2012 6:55 am

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.

iPick12
Posts: 16
Joined: Mon May 07, 2012 6:16 pm

Re: Default colors

Post by iPick12 » Thu May 24, 2012 8:37 am

Thanks hto, that works!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest