0xFF316AC5, /* 174 - MenuHighlight */
};
+#if !MONOTOUCH && !MONOMAC
static KnownColors ()
{
if (GDIPlus.RunningOnWindows ()) {
ArgbValues [(int)KnownColor.MenuBar] = GetSysColor (GetSysColorIndex.COLOR_MENUBAR);
ArgbValues [(int)KnownColor.MenuHighlight] = GetSysColor (GetSysColorIndex.COLOR_MENUHIGHLIGHT);
}
+#endif
public static Color FromKnownColor (KnownColor kc)
{
if ((n <= 0) || (n >= ArgbValues.Length)) {
// This is what it returns!
c = Color.FromArgb (0, 0, 0, 0);
-#if ONLY_1_1
- c.name = kc.ToString ();
-#endif
c.state |= (short) Color.ColorType.Named;
} else {
c = new Color ();
if ((n < 27) || (n > 169))
c.state |= (short) Color.ColorType.System;
c.Value = ArgbValues [n];
-#if ONLY_1_1
- c.name = GetName (n);
-#endif
}
c.knownColor = n;
return c;