Kiang Teng
Kiang Teng

Reputation: 1705

List of Windows 7 System default colors for controls

I'm trying to match my application's custom controls colors to the ones used in Windows 7. However, I cannot seem to find a complete list of all colors used by Windows 7. Is there a built in class containing these colors, or do I have to use a color picker for every control I want to style.

Upvotes: 5

Views: 5373

Answers (2)

Quppa
Quppa

Reputation: 1913

If anyone's interested in seeing the system colours for different themes at a glance, I've created a reference here.

Use these functions and classes and set your application's colours dynamically: GetSysColor function (Win32), System.Windows.SystemColors class (Windows Presentation Foundation), System.Drawing.SystemColors class (Windows Forms).

Upvotes: 8

Rob Fonseca-Ensor
Rob Fonseca-Ensor

Reputation: 15621

Does the SystemColors class help?

Upvotes: 6

Related Questions