Google Answers Logo
View Question
 
Q: Calculating Windows XP control colors. ( Answered,   2 Comments )
Question  
Subject: Calculating Windows XP control colors.
Category: Computers
Asked by: catalyst-ga
List Price: $10.00
Posted: 16 Dec 2002 17:25 PST
Expires: 15 Jan 2003 17:25 PST
Question ID: 125709
I am trying to make my program conform to Microsoft standards, but I
can't find the following information.  What are the formulas that
Microsoft uses to calculate XP style control colors? (e.g. background
colors, mouseover highlight colors, etc.)  These colors are derived
from the system colors (Hilight,
ButtonFace etc.), but I don't know the algorithms.  For example, with
the Windows Standard color scheme, Microsoft Excel toolbars are a
slightly lighter grey.  The mouse over highlight color is a light
blue.  The highlight border color is a darker blue.
Answer  
Subject: Re: Calculating Windows XP control colors.
Answered By: sublime1-ga on 16 Dec 2002 20:29 PST
 
catalyst...

Why not go to the source, I always say...

This site, put together by the The Windows XP Design Team,
should cover almost anything you want to know about
Windows XP fonts, colors, icons, controls, folders and
layouts:
http://www.cs.virginia.edu/~horton/cs305/info/wxp/default.htm

The section on colors is here:
http://www.cs.virginia.edu/~horton/cs305/info/wxp/colors.htm

Parameters of controls are described here:
http://www.cs.virginia.edu/~horton/cs305/info/wxp/controls.htm
*Note - I had trouble viewing some of the images in Mozilla.

FAQs are here, along with an email address, at the
bottom of the page, for the Design Team:
http://www.cs.virginia.edu/~horton/cs305/info/wxp/faq.htm

Microsoft's Terms of Use are here:
http://www.microsoft.com/isapi/gomscom.asp?target=/info/cpyright.htm


Please do not rate this answer until you are satisfied that
the answer cannot be improved upon by means of a dialog with
the researcher through the "Request for Clarification" process.

sublime1-ga


Searches done, via Google:

"Windows XP"  colors
://www.google.com/search?num=50&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&q=%22Windows+XP%22++colors

Request for Answer Clarification by catalyst-ga on 17 Dec 2002 09:45 PST
I had actually performed exactly the same search and found several of
the following links already. :)  These links give examples only.  If a
user provides a custom color scheme, Microsoft products will change
their background and highlight colors to suit.  The colors that
Microsoft uses are not in the registry, but they are a function of
colors that are in the registry.  For instance, I have figured out
through trial and error that a decent approximation of the toolbar
background in Microsoft Office is to take the ButtonFace color,
convert from RGB to HSL, increase the luminance with the following
function f(x) = (5/6)x + 40, and then convert back to RGB.  This isn't
exact, but it's relatively close.  The highlight color is another
function that takes more than one variable, from what I can see (the
Hilight color and background color and maybe others).  It may have
something to do with alpha blending.  The question referred to the
functions that Microsoft uses in the general case.  In short, do you
know what the formulas are that Microsoft uses to generate the colors
that are related to the base colors in the registry?   (at
HKEY_CURRENT_USER\Control Panel\Colors)

Clarification of Answer by sublime1-ga on 17 Dec 2002 17:28 PST
catalyst...

And I was so excited, thinking I'd found just 
what you needed! Should I assume that truetone's
comment does not provide the information you 
need by way of the developer downloads, since
you posted your clarification well after his
comment? And did you try emailing the XP
Design Team, or would you prefer that I initiate
contact with them? If none of the above provide
the solution you need, let me know, and I can
have my answer removed, which will clear the
way for another researcher to have a go at it.

sublime1-ga

Request for Answer Clarification by catalyst-ga on 17 Dec 2002 18:27 PST
The link provided gives examples of Windows XP colors, but doesn't
actually say how they are derived.  I've sent a message to the Windows
XP design team, but I haven't received a reply yet.

Thanks for your help though . . .

Clarification of Answer by sublime1-ga on 17 Dec 2002 18:45 PST
catalyst...

Let me know how it works out with the Design Team,
and if there's anything else I can do for you...

sublime1-ga

Request for Answer Clarification by catalyst-ga on 20 Dec 2002 13:54 PST
The Design Team has not responded to my email.  Do you know who else I
might ask?  Is there another researcher who might know?  Should I post
a new question with all of this information?

Thanks,

Clarification of Answer by sublime1-ga on 20 Dec 2002 15:01 PST
catalyst...

I'm sorry this turned into a dead end for you.
The algorithms you speak of are over my head,
and I wouldn't even know how to phrase a search
for what you speak of.

If you prefer, I can have my answer removed to
clear the way for another researcher. This will,
however, remove all of the clarification dialogues.
You can either copy all of it to a text file, and
post it in a clarification after my answer is gone,
or you can re-post the question with a link to this
one. I will understand whichever choice you make.
Let me know your wishes.

sublime1-ga
Comments  
Subject: Re: Calculating Windows XP control colors.
From: truetone-ga on 16 Dec 2002 23:11 PST
 
That's good information. Just FYI, you can download the complete
Windows XP Visual Guidelines directly from Microsoft at this page:

http://www.microsoft.com/hwdev/windowsxp/downloads/
Subject: Re: Calculating Windows XP control colors.
From: hammer-ga on 22 Dec 2002 08:52 PST
 
Catalyst,

In my experience, a guide for how to duplicate the look of any
particular Windows interface is not something you are going to find.
They publish style guidelines, and you can often glean information
from the Display Settings and the Win32 API, but you can't really
assemble the whole. The best you are likely to be able to do it
"pretty close".

- Hammer

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy