13 instantiations of Color
PresentationCore (10)
System\Windows\Media\Animation\Generated\ColorAnimation.cs (4)
222Color from = new Color(); 223Color to = new Color(); 224Color accumulated = new Color(); 225Color foundation = new Color();
System\Windows\Media\Color.cs (6)
35Color c1 = new Color 116Color c1 = new Color(); 138Color c1 = new Color(); 169Color c1 = new Color(); 409Color c1 = new Color { context = color1.context }; 526Color c1 = new Color { context = color1.context };
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2750DefaultConstructor = delegate () { return new System.Windows.Media.Color(); },
System\Windows\Markup\KnownTypes.cs (1)
1160case KnownElements.Color: o = new System.Windows.Media.Color(); break;
PresentationFramework.Classic (1)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (1)
434Color darkDarkColor = new Color
2054 references to Color
Microsoft.CodeAnalysis.EditorFeatures.Wpf (64)
Adornments\BrushTag.cs (3)
22private static readonly Color s_lightGray = Color.FromRgb(0xA5, 0xA5, 0xA5); 34protected abstract Color? GetColor(IWpfTextView view, IEditorFormatMap editorFormatMap);
BraceMatching\BraceMatchingTypeFormatDefinitions.cs (1)
31this.BackgroundColor = Color.FromRgb(0xDB, 0xE0, 0xCC);
Classification\ClassificationTypeFormatDefinitions.cs (39)
90this.ForegroundColor = Color.FromRgb(0x9e, 0x5b, 0x71); 222this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF); 280this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF); 300this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF); 320this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF); 339this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF); 359this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF); 379this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF); 584this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY 602this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY 622this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY 640this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY 658this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY 676this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY 712this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY 730this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY 767this.BackgroundColor = Color.FromRgb(0xe5, 0xe5, 0xe5); 785this.ForegroundColor = Color.FromRgb(0xff, 0x00, 0xc1); 805this.ForegroundColor = Color.FromRgb(0x00, 0x80, 0x00); 823this.ForegroundColor = Color.FromRgb(0x00, 0x73, 0xff); 841this.ForegroundColor = Color.FromRgb(0xff, 0x00, 0xc1); 859this.ForegroundColor = Color.FromRgb(0xff, 0x00, 0xc1); 877this.ForegroundColor = Color.FromRgb(0x05, 0xc3, 0xba); 895this.ForegroundColor = Color.FromRgb(0x05, 0xc3, 0xba); 913this.ForegroundColor = Color.FromRgb(0x80, 0x00, 0x00); 934this.ForegroundColor = Color.FromRgb(0x80, 0x00, 0x00); 953this.ForegroundColor = Color.FromRgb(0x9e, 0x5b, 0x71); 1129this.ForegroundColor = Color.FromRgb(0xB9, 0x64, 0x64); // HC_LIGHTRED 1146this.ForegroundColor = Color.FromRgb(0x55, 0x55, 0x55); // HC_LIGHTBLACK 1163this.ForegroundColor = Color.FromRgb(0x64, 0x64, 0xB9); // HC_LIGHTBLUE 1180this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY 1197this.ForegroundColor = Color.FromRgb(0x62, 0x97, 0x55); // HC_LIGHTGREEN 1214this.ForegroundColor = Color.FromRgb(0x64, 0x64, 0xB9); // HC_LIGHTBLUE 1231this.ForegroundColor = Color.FromRgb(0x55, 0x55, 0x55); // HC_LIGHTBLACK 1232this.BackgroundColor = Color.FromRgb(0xFF, 0xFE, 0xBF); // HC_LIGHTYELLOW 1249this.ForegroundColor = Color.FromRgb(0xB9, 0x64, 0x64); // HC_LIGHTRED 1266this.ForegroundColor = Color.FromRgb(0x84, 0x46, 0x46); // HC_LIGHTMAROON 1283this.ForegroundColor = Color.FromRgb(0xC0, 0xC0, 0xC0); // HC_LIGHTGRAY 1300this.ForegroundColor = Color.FromRgb(0x55, 0x55, 0x55); // HC_LIGHTBLACK
InlineDiagnostics\InlineDiagnosticsFormatDefinition.cs (5)
37BackgroundBrush = new SolidColorBrush(Color.FromRgb(252, 62, 54)); 38ForegroundBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0)); 57BackgroundBrush = new SolidColorBrush(Color.FromRgb(149, 219, 125)); 58ForegroundBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0)); 78ForegroundBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0));
InlineDiagnostics\InlineDiagnosticsTag.cs (3)
109var editorBackground = (Color)_editorFormatMap.GetProperties("TextView Background")["BackgroundColor"]; 195protected override Color? GetColor(IWpfTextView view, IEditorFormatMap editorFormatMap)
InlineHints\InlineHintsFormatDefinition.cs (2)
35this.ForegroundBrush = new SolidColorBrush(Color.FromRgb(104, 104, 104)); 36this.BackgroundBrush = new SolidColorBrush(Color.FromRgb(230, 230, 230));
InlineRename\HighlightTags\RenameFieldBackgroundAndBorderTagDefinition.cs (2)
27this.Border = new Pen(new SolidColorBrush(Color.FromRgb(0xFF, 0xFF, 0xFF)), thickness: 2.0); 28this.BackgroundColor = Color.FromRgb(0xd3, 0xf8, 0xd3);
InlineRename\Taggers\ClassificationFormatDefinitions.cs (1)
28this.ForegroundColor = Color.FromRgb(0x00, 0x64, 0x00);
IWpfThemeService.cs (1)
14Color GetThemeColor(ThemeResourceKey resourceKey);
LineSeparators\LineSeparatorTag.cs (1)
26protected override Color? GetColor(
PreviewWarningTagDefinition.cs (1)
27this.Border = new Pen(new SolidColorBrush(Color.FromRgb(230, 117, 64)), thickness: 1.5);
ReferenceHighlighting\DefinitionHighlightTagDefinition.cs (1)
26this.BackgroundColor = Color.FromRgb(219, 224, 204);
ReferenceHighlighting\WrittenReferenceHighlightTagDefinition.cs (1)
26this.BackgroundColor = Color.FromRgb(219, 224, 204);
StringIndentation\StringIndentationTag.cs (1)
34protected override Color? GetColor(IWpfTextView view, IEditorFormatMap editorFormatMap)
Utilities\BrushToColorConverter.cs (2)
12internal sealed class BrushToColorConverter : ValueConverter<Brush, Color> 14protected override Color Convert(Brush brush, object parameter, CultureInfo culture)
Microsoft.VisualStudio.LanguageServices (8)
ChangeSignature\ChangeSignatureDialog.xaml.cs (4)
63ParameterText = SystemParameters.HighContrast ? SystemColors.WindowTextBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0x1E, 0x1E, 0x1E)); 65DisabledParameterBackground = SystemParameters.HighContrast ? SystemColors.WindowBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xDF, 0xE7, 0xF3)); 66DisabledParameterForeground = SystemParameters.HighContrast ? SystemColors.GrayTextBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xA2, 0xA4, 0xA5)); 67Members.Background = SystemParameters.HighContrast ? SystemColors.WindowBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF));
InheritanceMargin\InheritanceGlyphManager.cs (2)
224var backgroundColor = (Color)resourceDictionary[EditorFormatDefinition.BackgroundColorId];
VSWpfThemeService.cs (2)
33public Color GetThemeColor(ThemeResourceKey themeResourceKey) 36return Color.FromArgb(color.A, color.R, color.G, color.B);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
225ImageThemingUtilities.SetImageBackgroundColor(outerGrid, (Color)Application.Current.Resources[CommonDocumentColors.PageBackgroundColorKey]);
PresentationCore (572)
MS\Internal\AnimatedTypeHelpers.cs (17)
24internal static Color InterpolateColor(Color from, Color to, Double progress) 164internal static Color AddColor(Color value1, Color value2) 266internal static Color SubtractColor(Color value1, Color value2) 385internal static Double GetSegmentLengthColor(Color from, Color to) 514internal static Color ScaleColor(Color value, Double factor) 623internal static bool IsValidAnimationValueColor(Color value) 765internal static Color GetZeroValueColor(Color baseValue) 767return Color.FromScRgb(0.0F, 0.0F, 0.0F, 0.0F);
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
778if (!(value is System.Windows.Media.Color)) 780throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(System.Windows.Media.Color)), nameof(value));
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (5)
266Color color = Color.FromRgb((byte)(dw & 0xff), (byte)((dw & 0xff00) >> Native.BitsPerByte), (byte)((dw & 0xff0000) >> (Native.BitsPerByte * 2))); 408Color color = da.Color; 497Color daColor = da.Color; 498System.Diagnostics.Debug.Assert(da.Color != (Color)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.Color), "Color was put in the EPC for the default value!");
MS\Internal\Ink\Renderer.cs (11)
120internal Color CachedColor 128private Color _cachedColor; 137internal HighlighterContainerVisual(Color color) 145internal Color Color 149private Color _color; 375internal void TurnHighContrastOn(Color strokeColor) 410public Color GetHighContrastColor() 652Color color = StrokeRenderer.GetHighlighterColor(drawingAttributes.Color); 657_highlighters = new Dictionary<Color, HighlighterContainerVisual>(); 694private Dictionary<Color, HighlighterContainerVisual> _highlighters = null; 704private Color _highContrastColor = Colors.White;
MS\Internal\Ink\StrokeRenderer.cs (2)
1110internal static Color GetHighlighterColor(Color color)
MS\Internal\TextFormatting\SimpleTextLine.cs (2)
1744Color color = ((SolidColorBrush)foregroundBrush).Color; 1745foregroundBrush = new SolidColorBrush(Color.FromArgb(
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\UISettings.cs (14)
18private static readonly Color _fallbackAccentColor = Color.FromArgb(0xff, 0x00, 0x78, 0xd4); 20private Color _accentColor, _accentLight1, _accentLight2, _accentLight3; 21private Color _accentDark1, _accentDark2, _accentDark3; 53internal bool TryGetColorValue(UISettingsRCW.UIColorType desiredColor, out Color color) 60color = Color.FromArgb(uiColor.A, uiColor.R, uiColor.G, uiColor.B); 87if(TryGetColorValue(UISettingsRCW.UIColorType.Accent, out Color systemAccent)) 133internal Color AccentColor => _useFallbackColor ? _fallbackAccentColor : _accentColor; 134internal Color AccentLight1 => _useFallbackColor ? _fallbackAccentColor : _accentLight1; 135internal Color AccentLight2 => _useFallbackColor ? _fallbackAccentColor : _accentLight2; 136internal Color AccentLight3 => _useFallbackColor ? _fallbackAccentColor : _accentLight3; 137internal Color AccentDark1 => _useFallbackColor ? _fallbackAccentColor : _accentDark1; 138internal Color AccentDark2 => _useFallbackColor ? _fallbackAccentColor : _accentDark2; 139internal Color AccentDark3 => _useFallbackColor ? _fallbackAccentColor : _accentDark3;
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
2316Color color, 2385Color colorKey,
System\Windows\Ink\DrawingAttributes.cs (3)
63public Color Color 70Debug.Assert(Colors.Black == (Color)GetDefaultDrawingAttributeValue(KnownIds.Color)); 73return (Color)GetExtendedPropertyBackedProperty(KnownIds.Color);
System\Windows\Ink\StrokeCollection2.cs (3)
353Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>(); 363Color color = StrokeRenderer.GetHighlighterColor(stroke.DrawingAttributes.Color);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
46Color color = _drawingAttributes.Color;
System\Windows\InterOp\HwndTarget.cs (3)
109private Color _backgroundColor = Color.FromRgb(0, 0, 0); 2353public Color BackgroundColor
System\Windows\Media\Animation\AnimationStorage.cs (1)
1114else if (type == typeof(Color))
System\Windows\Media\Animation\Generated\ColorAnimation.cs (32)
32private Color[] _keyValues; 47Type typeofProp = typeof(Color?); 56new PropertyMetadata((Color?)null, propCallback), 63new PropertyMetadata((Color?)null, propCallback), 70new PropertyMetadata((Color?)null, propCallback), 94public ColorAnimation(Color toValue, Duration duration) 106public ColorAnimation(Color toValue, Duration duration, FillBehavior fillBehavior) 119public ColorAnimation(Color fromValue, Color toValue, Duration duration) 132public ColorAnimation(Color fromValue, Color toValue, Duration duration, FillBehavior fillBehavior) 205protected override Color GetCurrentValueCore(Color defaultOriginValue, Color defaultDestinationValue, AnimationClock animationClock) 222Color from = new Color(); 223Color to = new Color(); 224Color accumulated = new Color(); 225Color foundation = new Color(); 339Color accumulator = AnimatedTypeHelpers.SubtractColor(to, from); 364_keyValues = new Color[2]; 371_keyValues = new Color[2]; 378_keyValues = new Color[1]; 385_keyValues = new Color[1]; 391_keyValues = new Color[1]; 412Color? typedValue = (Color?)value; 432public Color? From 436return (Color?)GetValue(FromProperty); 452public Color? To 456return (Color?)GetValue(ToProperty); 472public Color? By 476return (Color?)GetValue(ByProperty);
System\Windows\Media\Animation\Generated\ColorAnimationBase.cs (9)
80return GetCurrentValue((Color)defaultOriginValue, (Color)defaultDestinationValue, animationClock); 92return typeof(Color); 129public Color GetCurrentValue(Color defaultOriginValue, Color defaultDestinationValue, AnimationClock animationClock) 185protected abstract Color GetCurrentValueCore(Color defaultOriginValue, Color defaultDestinationValue, AnimationClock animationClock);
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (8)
312protected sealed override Color GetCurrentValueCore( 313Color defaultOriginValue, 314Color defaultDestinationValue, 340Color currentIterationValue; 376Color fromValue; 621private Color GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 934Color prevKeyValue = _keyFrames[index - 1].Value; 938Color currentKeyValue = _keyFrames[index].Value;
System\Windows\Media\Animation\Generated\ColorIndependentAnimationStorage.cs (2)
45Color tempValue = (Color)dobj.GetValue(_dependencyProperty);
System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
269public DiscreteColorKeyFrame(Color value) 277public DiscreteColorKeyFrame(Color value, KeyTime keyTime) 305protected override Color InterpolateValueCore(Color baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
167public EasingColorKeyFrame(Color value) 176public EasingColorKeyFrame(Color value, KeyTime keyTime) 186public EasingColorKeyFrame(Color value, KeyTime keyTime, IEasingFunction easingFunction) 215protected override Color InterpolateValueCore(Color baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
460protected ColorKeyFrame(Color value) 469protected ColorKeyFrame(Color value, KeyTime keyTime) 512typeof(Color), 527Value = (Color)value; 534public Color Value 538return (Color)GetValue(ValueProperty); 555public Color InterpolateValue( 556Color baseValue, 573protected abstract Color InterpolateValueCore( 574Color baseValue,
System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
119public LinearColorKeyFrame(Color value) 127public LinearColorKeyFrame(Color value, KeyTime keyTime) 153protected override Color InterpolateValueCore(Color baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
174public SplineColorKeyFrame(Color value) 183public SplineColorKeyFrame(Color value, KeyTime keyTime) 193public SplineColorKeyFrame(Color value, KeyTime keyTime, KeySpline keySpline) 224protected override Color InterpolateValueCore(Color baseValue, double keyFrameProgress)
System\Windows\Media\Color.cs (56)
18public struct Color : IFormattable, IEquatable<Color> 33private static Color FromProfile(Uri profileUri) 35Color c1 = new Color 64public static Color FromAValues(float a, float[] values, Uri profileUri) 66Color c1 = Color.FromProfile(profileUri); 104public static Color FromValues(float[] values, Uri profileUri) 106Color c1 = Color.FromAValues(1.0f, values, profileUri); 114internal static Color FromUInt32(uint argb)// internal legacy sRGB interface 116Color c1 = new Color(); 136public static Color FromScRgb(float a, float r, float g, float b) 138Color c1 = new Color(); 167public static Color FromArgb(byte a, byte r, byte g, byte b)// legacy sRGB interface, bytes are required to properly round trip 169Color c1 = new Color(); 189public static Color FromRgb(byte r, byte g, byte b)// legacy sRGB interface, bytes are required to properly round trip 191Color c1 = Color.FromArgb(0xff, r, g, b); 318public static bool AreClose(Color color1, Color color2) 330private bool IsClose(Color color) 396public static Color operator +(Color color1, Color color2) 400Color c1 = FromScRgb( 409Color c1 = new Color { context = color1.context }; 417Color c2 = Color.FromRgb(0, 0, 0); 496public static Color Add(Color color1, Color color2) 508public static Color operator -(Color color1, Color color2) 512Color c1 = FromScRgb( 526Color c1 = new Color { context = color1.context }; 534Color c2 = Color.FromRgb(0, 0, 0); 613public static Color Subtract(Color color1, Color color2) 624public static Color operator *(Color color, float coefficient) 626Color c1 = FromScRgb(color.scRgbColor.a * coefficient, color.scRgbColor.r * coefficient, color.scRgbColor.g * coefficient, color.scRgbColor.b * coefficient); 645public static Color Multiply(Color color, float coefficient) 653public static bool Equals(Color color1, Color color2) 665public bool Equals(Color color) 679if (o is Color color) 694public static bool operator ==(Color color1, Color color2) 763public static bool operator !=(Color color1, Color color2) 1078Color c2 = Color.FromRgb(0, 0, 0);
System\Windows\Media\ColorConverter.cs (6)
99if (destinationType != null && value is Color) 103MethodInfo mi = typeof(Color).GetMethod("FromArgb", new Type[]{typeof(byte), typeof(byte), typeof(byte), typeof(byte)}); 104Color c = (Color)value; 109Color c = (Color)value;
System\Windows\Media\Composition.cs (1)
13internal static MilColorF ColorToMilColorF(Color c)
System\Windows\Media\Effects\DropShadowBitmapEffect.cs (1)
67Color color = Color;
System\Windows\Media\Effects\Generated\DropShadowBitmapEffect.cs (4)
123public Color Color 127return (Color) GetValue(ColorProperty); 298internal static Color s_Color = Colors.Black; 337typeof(Color),
System\Windows\Media\Effects\Generated\DropShadowEffect.cs (4)
123public Color Color 127return (Color) GetValue(ColorProperty); 393internal static Color s_Color = Colors.Black; 432typeof(Color),
System\Windows\Media\Effects\Generated\OuterGlowBitmapEffect.cs (4)
94public Color GlowColor 98return (Color) GetValue(GlowColorProperty); 245internal static Color s_GlowColor = Colors.Gold; 274typeof(Color),
System\Windows\Media\Effects\ShaderEffect.cs (4)
823type == typeof(Color) || 877else if (t == typeof(Color)) 879Color col = (Color)value;
System\Windows\Media\Generated\GradientStop.cs (4)
76public Color Color 80return (Color) GetValue(ColorProperty); 233typeof(Color), 267internal static Color s_Color = Colors.Transparent;
System\Windows\Media\Generated\SolidColorBrush.cs (4)
80public Color Color 84return (Color) GetValue(ColorProperty); 299internal static Color s_Color = Colors.Transparent; 325typeof(Color),
System\Windows\Media\GradientStop.cs (1)
38public GradientStop(Color color, double offset)
System\Windows\Media\Imaging\BitmapPalette.cs (13)
29public BitmapPalette(IList<Color> colors) 40Color[] colorArray = new Color[count]; 47_colors = new ReadOnlyCollection<Color>(colorArray); 198public IList<Color> Colors 232foreach (Color color in palette.Colors) 274Color color = _colors[i]; 302List<Color> colors = new List<Color>(); 329colors.Add(Color.FromArgb(c.A, c.R, c.G, c.B)); 333_colors = new ReadOnlyCollection<Color>(colors); 368private IList<Color> _colors = ReadOnlyCollection<Color>.Empty;
System\Windows\Media\Knowncolors.cs (283)
215scp = new SolidColorBrush(Color.FromUInt32(argb)); 858public static Color AliceBlue 862return Color.FromUInt32((uint)KnownColor.AliceBlue); 869public static Color AntiqueWhite 873return Color.FromUInt32((uint)KnownColor.AntiqueWhite); 880public static Color Aqua 884return Color.FromUInt32((uint)KnownColor.Aqua); 891public static Color Aquamarine 895return Color.FromUInt32((uint)KnownColor.Aquamarine); 902public static Color Azure 906return Color.FromUInt32((uint)KnownColor.Azure); 913public static Color Beige 917return Color.FromUInt32((uint)KnownColor.Beige); 924public static Color Bisque 928return Color.FromUInt32((uint)KnownColor.Bisque); 935public static Color Black 939return Color.FromUInt32((uint)KnownColor.Black); 946public static Color BlanchedAlmond 950return Color.FromUInt32((uint)KnownColor.BlanchedAlmond); 957public static Color Blue 961return Color.FromUInt32((uint)KnownColor.Blue); 968public static Color BlueViolet 972return Color.FromUInt32((uint)KnownColor.BlueViolet); 979public static Color Brown 983return Color.FromUInt32((uint)KnownColor.Brown); 990public static Color BurlyWood 994return Color.FromUInt32((uint)KnownColor.BurlyWood); 1001public static Color CadetBlue 1005return Color.FromUInt32((uint)KnownColor.CadetBlue); 1012public static Color Chartreuse 1016return Color.FromUInt32((uint)KnownColor.Chartreuse); 1023public static Color Chocolate 1027return Color.FromUInt32((uint)KnownColor.Chocolate); 1034public static Color Coral 1038return Color.FromUInt32((uint)KnownColor.Coral); 1045public static Color CornflowerBlue 1049return Color.FromUInt32((uint)KnownColor.CornflowerBlue); 1056public static Color Cornsilk 1060return Color.FromUInt32((uint)KnownColor.Cornsilk); 1067public static Color Crimson 1071return Color.FromUInt32((uint)KnownColor.Crimson); 1078public static Color Cyan 1082return Color.FromUInt32((uint)KnownColor.Cyan); 1089public static Color DarkBlue 1093return Color.FromUInt32((uint)KnownColor.DarkBlue); 1100public static Color DarkCyan 1104return Color.FromUInt32((uint)KnownColor.DarkCyan); 1111public static Color DarkGoldenrod 1115return Color.FromUInt32((uint)KnownColor.DarkGoldenrod); 1122public static Color DarkGray 1126return Color.FromUInt32((uint)KnownColor.DarkGray); 1133public static Color DarkGreen 1137return Color.FromUInt32((uint)KnownColor.DarkGreen); 1144public static Color DarkKhaki 1148return Color.FromUInt32((uint)KnownColor.DarkKhaki); 1155public static Color DarkMagenta 1159return Color.FromUInt32((uint)KnownColor.DarkMagenta); 1166public static Color DarkOliveGreen 1170return Color.FromUInt32((uint)KnownColor.DarkOliveGreen); 1177public static Color DarkOrange 1181return Color.FromUInt32((uint)KnownColor.DarkOrange); 1188public static Color DarkOrchid 1192return Color.FromUInt32((uint)KnownColor.DarkOrchid); 1199public static Color DarkRed 1203return Color.FromUInt32((uint)KnownColor.DarkRed); 1210public static Color DarkSalmon 1214return Color.FromUInt32((uint)KnownColor.DarkSalmon); 1221public static Color DarkSeaGreen 1225return Color.FromUInt32((uint)KnownColor.DarkSeaGreen); 1232public static Color DarkSlateBlue 1236return Color.FromUInt32((uint)KnownColor.DarkSlateBlue); 1243public static Color DarkSlateGray 1247return Color.FromUInt32((uint)KnownColor.DarkSlateGray); 1254public static Color DarkTurquoise 1258return Color.FromUInt32((uint)KnownColor.DarkTurquoise); 1265public static Color DarkViolet 1269return Color.FromUInt32((uint)KnownColor.DarkViolet); 1276public static Color DeepPink 1280return Color.FromUInt32((uint)KnownColor.DeepPink); 1287public static Color DeepSkyBlue 1291return Color.FromUInt32((uint)KnownColor.DeepSkyBlue); 1298public static Color DimGray 1302return Color.FromUInt32((uint)KnownColor.DimGray); 1309public static Color DodgerBlue 1313return Color.FromUInt32((uint)KnownColor.DodgerBlue); 1320public static Color Firebrick 1324return Color.FromUInt32((uint)KnownColor.Firebrick); 1331public static Color FloralWhite 1335return Color.FromUInt32((uint)KnownColor.FloralWhite); 1342public static Color ForestGreen 1346return Color.FromUInt32((uint)KnownColor.ForestGreen); 1353public static Color Fuchsia 1357return Color.FromUInt32((uint)KnownColor.Fuchsia); 1364public static Color Gainsboro 1368return Color.FromUInt32((uint)KnownColor.Gainsboro); 1375public static Color GhostWhite 1379return Color.FromUInt32((uint)KnownColor.GhostWhite); 1386public static Color Gold 1390return Color.FromUInt32((uint)KnownColor.Gold); 1397public static Color Goldenrod 1401return Color.FromUInt32((uint)KnownColor.Goldenrod); 1408public static Color Gray 1412return Color.FromUInt32((uint)KnownColor.Gray); 1419public static Color Green 1423return Color.FromUInt32((uint)KnownColor.Green); 1430public static Color GreenYellow 1434return Color.FromUInt32((uint)KnownColor.GreenYellow); 1441public static Color Honeydew 1445return Color.FromUInt32((uint)KnownColor.Honeydew); 1452public static Color HotPink 1456return Color.FromUInt32((uint)KnownColor.HotPink); 1463public static Color IndianRed 1467return Color.FromUInt32((uint)KnownColor.IndianRed); 1474public static Color Indigo 1478return Color.FromUInt32((uint)KnownColor.Indigo); 1485public static Color Ivory 1489return Color.FromUInt32((uint)KnownColor.Ivory); 1496public static Color Khaki 1500return Color.FromUInt32((uint)KnownColor.Khaki); 1507public static Color Lavender 1511return Color.FromUInt32((uint)KnownColor.Lavender); 1518public static Color LavenderBlush 1522return Color.FromUInt32((uint)KnownColor.LavenderBlush); 1529public static Color LawnGreen 1533return Color.FromUInt32((uint)KnownColor.LawnGreen); 1540public static Color LemonChiffon 1544return Color.FromUInt32((uint)KnownColor.LemonChiffon); 1551public static Color LightBlue 1555return Color.FromUInt32((uint)KnownColor.LightBlue); 1562public static Color LightCoral 1566return Color.FromUInt32((uint)KnownColor.LightCoral); 1573public static Color LightCyan 1577return Color.FromUInt32((uint)KnownColor.LightCyan); 1584public static Color LightGoldenrodYellow 1588return Color.FromUInt32((uint)KnownColor.LightGoldenrodYellow); 1595public static Color LightGray 1599return Color.FromUInt32((uint)KnownColor.LightGray); 1606public static Color LightGreen 1610return Color.FromUInt32((uint)KnownColor.LightGreen); 1617public static Color LightPink 1621return Color.FromUInt32((uint)KnownColor.LightPink); 1628public static Color LightSalmon 1632return Color.FromUInt32((uint)KnownColor.LightSalmon); 1639public static Color LightSeaGreen 1643return Color.FromUInt32((uint)KnownColor.LightSeaGreen); 1650public static Color LightSkyBlue 1654return Color.FromUInt32((uint)KnownColor.LightSkyBlue); 1661public static Color LightSlateGray 1665return Color.FromUInt32((uint)KnownColor.LightSlateGray); 1672public static Color LightSteelBlue 1676return Color.FromUInt32((uint)KnownColor.LightSteelBlue); 1683public static Color LightYellow 1687return Color.FromUInt32((uint)KnownColor.LightYellow); 1694public static Color Lime 1698return Color.FromUInt32((uint)KnownColor.Lime); 1705public static Color LimeGreen 1709return Color.FromUInt32((uint)KnownColor.LimeGreen); 1716public static Color Linen 1720return Color.FromUInt32((uint)KnownColor.Linen); 1727public static Color Magenta 1731return Color.FromUInt32((uint)KnownColor.Magenta); 1738public static Color Maroon 1742return Color.FromUInt32((uint)KnownColor.Maroon); 1749public static Color MediumAquamarine 1753return Color.FromUInt32((uint)KnownColor.MediumAquamarine); 1760public static Color MediumBlue 1764return Color.FromUInt32((uint)KnownColor.MediumBlue); 1771public static Color MediumOrchid 1775return Color.FromUInt32((uint)KnownColor.MediumOrchid); 1782public static Color MediumPurple 1786return Color.FromUInt32((uint)KnownColor.MediumPurple); 1793public static Color MediumSeaGreen 1797return Color.FromUInt32((uint)KnownColor.MediumSeaGreen); 1804public static Color MediumSlateBlue 1808return Color.FromUInt32((uint)KnownColor.MediumSlateBlue); 1815public static Color MediumSpringGreen 1819return Color.FromUInt32((uint)KnownColor.MediumSpringGreen); 1826public static Color MediumTurquoise 1830return Color.FromUInt32((uint)KnownColor.MediumTurquoise); 1837public static Color MediumVioletRed 1841return Color.FromUInt32((uint)KnownColor.MediumVioletRed); 1848public static Color MidnightBlue 1852return Color.FromUInt32((uint)KnownColor.MidnightBlue); 1859public static Color MintCream 1863return Color.FromUInt32((uint)KnownColor.MintCream); 1870public static Color MistyRose 1874return Color.FromUInt32((uint)KnownColor.MistyRose); 1881public static Color Moccasin 1885return Color.FromUInt32((uint)KnownColor.Moccasin); 1892public static Color NavajoWhite 1896return Color.FromUInt32((uint)KnownColor.NavajoWhite); 1903public static Color Navy 1907return Color.FromUInt32((uint)KnownColor.Navy); 1914public static Color OldLace 1918return Color.FromUInt32((uint)KnownColor.OldLace); 1925public static Color Olive 1929return Color.FromUInt32((uint)KnownColor.Olive); 1936public static Color OliveDrab 1940return Color.FromUInt32((uint)KnownColor.OliveDrab); 1947public static Color Orange 1951return Color.FromUInt32((uint)KnownColor.Orange); 1958public static Color OrangeRed 1962return Color.FromUInt32((uint)KnownColor.OrangeRed); 1969public static Color Orchid 1973return Color.FromUInt32((uint)KnownColor.Orchid); 1980public static Color PaleGoldenrod 1984return Color.FromUInt32((uint)KnownColor.PaleGoldenrod); 1991public static Color PaleGreen 1995return Color.FromUInt32((uint)KnownColor.PaleGreen); 2002public static Color PaleTurquoise 2006return Color.FromUInt32((uint)KnownColor.PaleTurquoise); 2013public static Color PaleVioletRed 2017return Color.FromUInt32((uint)KnownColor.PaleVioletRed); 2024public static Color PapayaWhip 2028return Color.FromUInt32((uint)KnownColor.PapayaWhip); 2035public static Color PeachPuff 2039return Color.FromUInt32((uint)KnownColor.PeachPuff); 2046public static Color Peru 2050return Color.FromUInt32((uint)KnownColor.Peru); 2057public static Color Pink 2061return Color.FromUInt32((uint)KnownColor.Pink); 2068public static Color Plum 2072return Color.FromUInt32((uint)KnownColor.Plum); 2079public static Color PowderBlue 2083return Color.FromUInt32((uint)KnownColor.PowderBlue); 2090public static Color Purple 2094return Color.FromUInt32((uint)KnownColor.Purple); 2101public static Color Red 2105return Color.FromUInt32((uint)KnownColor.Red); 2112public static Color RosyBrown 2116return Color.FromUInt32((uint)KnownColor.RosyBrown); 2123public static Color RoyalBlue 2127return Color.FromUInt32((uint)KnownColor.RoyalBlue); 2134public static Color SaddleBrown 2138return Color.FromUInt32((uint)KnownColor.SaddleBrown); 2145public static Color Salmon 2149return Color.FromUInt32((uint)KnownColor.Salmon); 2156public static Color SandyBrown 2160return Color.FromUInt32((uint)KnownColor.SandyBrown); 2167public static Color SeaGreen 2171return Color.FromUInt32((uint)KnownColor.SeaGreen); 2178public static Color SeaShell 2182return Color.FromUInt32((uint)KnownColor.SeaShell); 2189public static Color Sienna 2193return Color.FromUInt32((uint)KnownColor.Sienna); 2200public static Color Silver 2204return Color.FromUInt32((uint)KnownColor.Silver); 2211public static Color SkyBlue 2215return Color.FromUInt32((uint)KnownColor.SkyBlue); 2222public static Color SlateBlue 2226return Color.FromUInt32((uint)KnownColor.SlateBlue); 2233public static Color SlateGray 2237return Color.FromUInt32((uint)KnownColor.SlateGray); 2244public static Color Snow 2248return Color.FromUInt32((uint)KnownColor.Snow); 2255public static Color SpringGreen 2259return Color.FromUInt32((uint)KnownColor.SpringGreen); 2266public static Color SteelBlue 2270return Color.FromUInt32((uint)KnownColor.SteelBlue); 2277public static Color Tan 2281return Color.FromUInt32((uint)KnownColor.Tan); 2288public static Color Teal 2292return Color.FromUInt32((uint)KnownColor.Teal); 2299public static Color Thistle 2303return Color.FromUInt32((uint)KnownColor.Thistle); 2310public static Color Tomato 2314return Color.FromUInt32((uint)KnownColor.Tomato); 2321public static Color Transparent 2325return Color.FromUInt32((uint)KnownColor.Transparent); 2332public static Color Turquoise 2336return Color.FromUInt32((uint)KnownColor.Turquoise); 2343public static Color Violet 2347return Color.FromUInt32((uint)KnownColor.Violet); 2354public static Color Wheat 2358return Color.FromUInt32((uint)KnownColor.Wheat); 2365public static Color White 2369return Color.FromUInt32((uint)KnownColor.White); 2376public static Color WhiteSmoke 2380return Color.FromUInt32((uint)KnownColor.WhiteSmoke); 2387public static Color Yellow 2391return Color.FromUInt32((uint)KnownColor.Yellow); 2398public static Color YellowGreen 2402return Color.FromUInt32((uint)KnownColor.YellowGreen);
System\Windows\Media\LinearGradientBrush.cs (4)
42public LinearGradientBrush(Color startColor, 43Color endColor, 60public LinearGradientBrush(Color startColor, 61Color endColor,
System\Windows\Media\Parsers.cs (11)
38private static Color ParseHexColor(string trimmedColor) 77return ( Color.FromArgb ((byte)a, (byte)r, (byte)g, (byte)b) ); 83private static Color ParseContextColor(string trimmedColor, IFormatProvider formatProvider, ITypeDescriptorContext context) 128Color result = Color.FromAValues(alpha, values, profileUri); 139private static Color ParseScRgbColor(string trimmedColor, IFormatProvider formatProvider) 167return Color.FromScRgb(values[0], values[1], values[2], values[3]); 171return Color.FromScRgb(1.0f, values[0], values[1], values[2]); 180internal static Color ParseColor(string color, IFormatProvider formatProvider) 191internal static Color ParseColor(string color, IFormatProvider formatProvider, ITypeDescriptorContext context) 229return Color.FromUInt32((uint)kc);
System\Windows\Media\RadialGradientBrush.cs (2)
38public RadialGradientBrush(Color startColor, 39Color endColor) : base()
System\Windows\Media\SolidColorBrush.cs (1)
30public SolidColorBrush(Color color)
System\Windows\Media3D\AmbientLight.cs (1)
40public AmbientLight(Color ambientColor)
System\Windows\Media3D\DirectionalLight.cs (1)
41public DirectionalLight(Color diffuseColor, Vector3D direction)
System\Windows\Media3D\Generated\DiffuseMaterial.cs (8)
133public Color Color 137return (Color) GetValue(ColorProperty); 148public Color AmbientColor 152return (Color) GetValue(AmbientColorProperty); 351internal static Color s_Color = Colors.White; 352internal static Color s_AmbientColor = Colors.White; 381typeof(Color), 390typeof(Color),
System\Windows\Media3D\Generated\EmissiveMaterial.cs (4)
126public Color Color 130return (Color) GetValue(ColorProperty); 324internal static Color s_Color = Colors.White; 353typeof(Color),
System\Windows\Media3D\Generated\Light.cs (4)
78public Color Color 82return (Color) GetValue(ColorProperty); 178internal static Color s_Color = Colors.White; 204typeof(Color),
System\Windows\Media3D\Generated\SpecularMaterial.cs (4)
133public Color Color 137return (Color) GetValue(ColorProperty); 351internal static Color s_Color = Colors.White; 381typeof(Color),
System\Windows\Media3D\PointLight.cs (1)
39public PointLight(Color diffuseColor, Point3D position)
System\Windows\Media3D\SpotLight.cs (1)
40public SpotLight(Color diffuseColor, Point3D position, Vector3D direction,
PresentationCore.Tests (195)
System\Windows\ClipboardTests.cs (2)
8using Color = System.Windows.Media.Color; 187Color color = Colors.Red;
System\Windows\Media\Animation\KeySplineConverter.Tests.cs (1)
306yield return new object[] { new KeySpline(0.1, 0.1, 0.9, 0.9), typeof(Color), CultureInfo.CurrentCulture };
System\Windows\Media\ColorConverter.Tests.cs (117)
19[InlineData(false, typeof(Color))] 36[InlineData(false, typeof(Color))] 47public void ConvertFromString_NamedColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 51Assert.IsType<Color>(result); 52Assert.Equal(expectedColor, (Color)result); 57public void ConvertFrom_NamedColor_ReturnsExpectedColor(Color expectedColor, string colorName) 62Assert.IsType<Color>(result); 63Assert.Equal(expectedColor, (Color)result); 113public void ConvertFromString_ContextColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 117Assert.IsType<Color>(result); 118Assert.Equal(expectedColor, (Color)result); 123public void ConvertFrom_ContextColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 128Assert.IsType<Color>(result); 129Assert.Equal(expectedColor, (Color)result); 142yield return new object[] { Color.FromAValues(1.0f, [0.0f, 0.5f, 1.0f, 1.0f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm")), 145yield return new object[] { Color.FromAValues(1.0f, [0.5f, 0.5f, 1.0f, 1.0f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm")), 148yield return new object[] { Color.FromAValues(1.0f, [0.5f, 0.5f, 1.0f, 0.7f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm")), 155public void ConvertFromString_ScRGB_ReturnsExpectedColor(Color expectedColor, string hexColor) 159Assert.IsType<Color>(result); 160Assert.Equal(expectedColor, (Color)result); 165public void ConvertFrom_ScRGB_ReturnsExpectedColor(Color expectedColor, string hexColor) 170Assert.IsType<Color>(result); 171Assert.Equal(expectedColor, (Color)result); 178yield return new object[] { Color.FromScRgb(1f, 1f, 0f, 0f), "sc#1,1,0,0" }; // Fully opaque red 179yield return new object[] { Color.FromScRgb(1f, 0f, 1f, 0f), "sc#1,0,1,0" }; // Fully opaque green 180yield return new object[] { Color.FromScRgb(1f, 0f, 0f, 1f), "sc#1,0,0,1" }; // Fully opaque blue 181yield return new object[] { Color.FromScRgb(0.5f, 1f, 1f, 0f), "sc#0.5,1,1,0" }; // Semi-transparent yellow 182yield return new object[] { Color.FromScRgb(0f, 0f, 0f, 0f), "sc#0,0,0,0" }; // Fully transparent black 183yield return new object[] { Color.FromScRgb(1f, 0.5f, 0.5f, 0.5f), "sc#1,0.5,0.5,0.5" }; // Fully opaque gray 184yield return new object[] { Color.FromScRgb(0.75f, 0.5f, 0f, 0.5f), "sc#0.75,0.5,0,0.5" }; // Semi-transparent purple 186yield return new object[] { Color.FromScRgb(1f, 1f, 0f, 0f), "sc#1, 1, 0, 0" }; // Extra space after commas 187yield return new object[] { Color.FromScRgb(1f, 1f, 0f, 0f), " sc#1,1,0,0" }; // Leading space 188yield return new object[] { Color.FromScRgb(1f, 1f, 0f, 0f), "sc#1,1,0,0 " }; // Trailing space 189yield return new object[] { Color.FromScRgb(1f, 1f, 0f, 0f), " sc#1,1,0,0 " }; // Excessive surrounding whitespace 190yield return new object[] { Color.FromScRgb(0.9f, 0.8f, 0.7f, 0.6f), "sc#0.9,0.8,0.7,0.6" }; // Non-integer values 191yield return new object[] { Color.FromScRgb(1f, 0.12345f, 0.6789f, 0.54321f), "sc#1,0.12345,0.6789,0.54321" }; // Values with extended precision 192yield return new object[] { Color.FromScRgb(0f, 1f, 0f, 0f), "sc#0 ,1 ,0 ,0" }; // Spaces directly around commas 193yield return new object[] { Color.FromScRgb(0.5f, 0.5f, 0.5f, 0.5f), "sc# .5 , .5 , .5 , .5" }; // Leading decimals with spaces 194yield return new object[] { Color.FromScRgb(0.75f, 0.5f, 0f, 0.5f), "sc#0.75,0.50,0.00,0.50" }; // Explicit zero padding 201public void ConvertFromString_RGB_Short_HexColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 205Assert.IsType<Color>(result); 206Assert.Equal(expectedColor, (Color)result); 211public void ConvertFrom_RGB_Short_HexColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 216Assert.IsType<Color>(result); 217Assert.Equal(expectedColor, (Color)result); 224yield return new object[] { Color.FromRgb(0x00, 0x00, 0x00), "#000" }; 225yield return new object[] { Color.FromRgb(0xFF, 0xFF, 0xFF), "#FfF" }; 226yield return new object[] { Color.FromRgb(0x11, 0x22, 0x33), "#123" }; 227yield return new object[] { Color.FromRgb(0x44, 0x55, 0x66), "#456" }; 228yield return new object[] { Color.FromRgb(0x77, 0x88, 0x99), "#789" }; 229yield return new object[] { Color.FromRgb(0xAA, 0xBB, 0xCC), "#ABC" }; 230yield return new object[] { Color.FromRgb(0xDD, 0xEE, 0xFF), "#DEF" }; 231yield return new object[] { Color.FromRgb(0x11, 0x33, 0x55), "#135" }; 232yield return new object[] { Color.FromRgb(0x22, 0x44, 0x66), "#246" }; 233yield return new object[] { Color.FromRgb(0x33, 0x55, 0x77), "#357" }; 234yield return new object[] { Color.FromRgb(0x44, 0x66, 0x88), "#468" }; 235yield return new object[] { Color.FromRgb(0x55, 0x77, 0x99), "#579" }; 236yield return new object[] { Color.FromRgb(0x66, 0x88, 0xAA), "#68A" }; 237yield return new object[] { Color.FromRgb(0x77, 0x99, 0xBB), "#79B" }; 238yield return new object[] { Color.FromRgb(0x88, 0xAA, 0xCC), "#8AC" }; 239yield return new object[] { Color.FromRgb(0x99, 0xBB, 0xDD), "#9BD" }; 240yield return new object[] { Color.FromRgb(0xCC, 0xBB, 0xAA), "#CBA" }; 241yield return new object[] { Color.FromRgb(0xFF, 0xEE, 0xDD), " #FED" }; 242yield return new object[] { Color.FromRgb(0x88, 0x99, 0xAA), "#89A " }; 243yield return new object[] { Color.FromRgb(0x00, 0x77, 0xFF), " #07F " }; 249public void ConvertFromString_ARGB_Short_HexColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 253Assert.IsType<Color>(result); 254Assert.Equal(expectedColor, (Color)result); 259public void ConvertFrom_ARGB_Short_HexColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 264Assert.IsType<Color>(result); 265Assert.Equal(expectedColor, (Color)result); 272yield return new object[] { Color.FromArgb(0xAA, 0xFF, 0x22, 0x55), "#AF25" }; 273yield return new object[] { Color.FromArgb(0x11, 0x22, 0x33, 0x44), "#1234" }; 274yield return new object[] { Color.FromArgb(0xFF, 0x00, 0x00, 0xFF), "#F00F" }; 275yield return new object[] { Color.FromArgb(0xCC, 0x33, 0x66, 0xFF), "#C36f" }; 276yield return new object[] { Color.FromArgb(0x77, 0x88, 0x99, 0xAA), "#789A" }; 277yield return new object[] { Color.FromArgb(0x77, 0x33, 0x66, 0x22), " #7362" }; 278yield return new object[] { Color.FromArgb(0x66, 0x88, 0x99, 0x33), "#6893 " }; 279yield return new object[] { Color.FromArgb(0xEE, 0xDD, 0xCC, 0xBB), " #EDCB " }; 285public void ConvertFromString_RGB_Long_HexColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 289Assert.IsType<Color>(result); 290Assert.Equal(expectedColor, (Color)result); 295public void ConvertFrom_RGB_Long_HexColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 300Assert.IsType<Color>(result); 301Assert.Equal(expectedColor, (Color)result); 308yield return new object[] { Color.FromRgb(0x12, 0x34, 0x56), "#123456" }; 309yield return new object[] { Color.FromRgb(0xAA, 0xBB, 0xCC), "#AABBCC" }; 310yield return new object[] { Color.FromRgb(0xFF, 0x00, 0x00), "#FF0000" }; 311yield return new object[] { Color.FromRgb(0x00, 0xFF, 0x00), "#00FF00" }; 312yield return new object[] { Color.FromRgb(0x00, 0x00, 0xFF), "#0000FF" }; 313yield return new object[] { Color.FromRgb(0xFF, 0xFF, 0x00), "#FFFF00" }; 314yield return new object[] { Color.FromRgb(0x00, 0xFF, 0xFF), "#00FFFF" }; 315yield return new object[] { Color.FromRgb(0xFF, 0x00, 0xFF), "#FF00FF" }; 316yield return new object[] { Color.FromRgb(0xC0, 0xC0, 0xC0), "#C0C0C0" }; 317yield return new object[] { Color.FromRgb(0x80, 0x80, 0x80), "#808080" }; 318yield return new object[] { Color.FromRgb(0x12, 0x12, 0x12), "#121212" }; 319yield return new object[] { Color.FromRgb(0x34, 0x56, 0x78), "#345678" }; 320yield return new object[] { Color.FromRgb(0x90, 0xAB, 0xCD), "#90ABCD" }; 321yield return new object[] { Color.FromRgb(0xDE, 0xAD, 0xBE), "#DEADBE" }; 323yield return new object[] { Color.FromRgb(0xEF, 0xBE, 0xAD), "#eFBEAD" }; 324yield return new object[] { Color.FromRgb(0x12, 0x34, 0xFF), "#1234ff" }; 325yield return new object[] { Color.FromRgb(0x56, 0x78, 0x9A), "#56789a" }; 327yield return new object[] { Color.FromRgb(0xBC, 0xDE, 0xF0), " #BCDEF0" }; 328yield return new object[] { Color.FromRgb(0x01, 0x23, 0x45), " #012345 " }; 329yield return new object[] { Color.FromRgb(0x67, 0x89, 0xAB), "#6789AB " }; 335public void ConvertFromString_ARGB_Long_HexColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 339Assert.IsType<Color>(result); 340Assert.Equal(expectedColor, (Color)result); 345public void ConvertFrom_ARGB_Long_HexColor_ReturnsExpectedColor(Color expectedColor, string hexColor) 350Assert.IsType<Color>(result); 351Assert.Equal(expectedColor, (Color)result); 364yield return new object[] { Color.FromArgb(0x25, 0x37, 0x64, 0x88), "#25376488" }; 365yield return new object[] { Color.FromArgb(0xAF, 0x25, 0x46, 0xCC), "#AF2546CC" }; 368yield return new object[] { Color.FromArgb(0x44, 0x37, 0x64, 0x88), " #44376488" }; 369yield return new object[] { Color.FromArgb(0x35, 0x25, 0x46, 0xCC), " #352546CC " }; 370yield return new object[] { Color.FromArgb(0x25, 0x37, 0x14, 0x25), " #25371425 " }; 371yield return new object[] { Color.FromArgb(0xAF, 0x25, 0x46, 0x22), "#AF254622 " };
System\Windows\Media\Generated\BrushConverter.Tests.cs (75)
24[InlineData(false, typeof(Color))] 40[InlineData(false, typeof(Color))] 128yield return new object[] { new SolidColorBrush(Color.FromAValues(1.0f, [0.0f, 0.5f, 1.0f, 1.0f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm"))), 131yield return new object[] { new SolidColorBrush(Color.FromAValues(1.0f, [0.5f, 0.5f, 1.0f, 1.0f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm"))), 134yield return new object[] { new SolidColorBrush(Color.FromAValues(1.0f, [0.5f, 0.5f, 1.0f, 0.7f], new Uri($"file://{homeDrive}/Windows/system32/spool/drivers/color/RSWOP.icm"))), 155yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 1f, 0f, 0f)), "sc#1,1,0,0" }; // Fully opaque red 156yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 0f, 1f, 0f)), "sc#1,0,1,0" }; // Fully opaque green 157yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 0f, 0f, 1f)), "sc#1,0,0,1" }; // Fully opaque blue 158yield return new object[] { new SolidColorBrush(Color.FromScRgb(0.5f, 1f, 1f, 0f)), "sc#0.5,1,1,0" }; // Semi-transparent yellow 159yield return new object[] { new SolidColorBrush(Color.FromScRgb(0f, 0f, 0f, 0f)), "sc#0,0,0,0" }; // Fully transparent black 160yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 0.5f, 0.5f, 0.5f)), "sc#1,0.5,0.5,0.5" }; // Fully opaque gray 161yield return new object[] { new SolidColorBrush(Color.FromScRgb(0.75f, 0.5f, 0f, 0.5f)), "sc#0.75,0.5,0,0.5" }; // Semi-transparent purple 163yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 1f, 0f, 0f)), "sc#1, 1, 0, 0" }; // Extra space after commas 164yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 1f, 0f, 0f)), " sc#1,1,0,0" }; // Leading space 165yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 1f, 0f, 0f)), "sc#1,1,0,0 " }; // Trailing space 166yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 1f, 0f, 0f)), " sc#1,1,0,0 " }; // Excessive surrounding whitespace 167yield return new object[] { new SolidColorBrush(Color.FromScRgb(0.9f, 0.8f, 0.7f, 0.6f)), "sc#0.9,0.8,0.7,0.6" }; // Non-integer values 168yield return new object[] { new SolidColorBrush(Color.FromScRgb(1f, 0.12345f, 0.6789f, 0.54321f)), "sc#1,0.12345,0.6789,0.54321" }; // Values with extended precision 169yield return new object[] { new SolidColorBrush(Color.FromScRgb(0f, 1f, 0f, 0f)), "sc#0 ,1 ,0 ,0" }; // Spaces directly around commas 170yield return new object[] { new SolidColorBrush(Color.FromScRgb(0.5f, 0.5f, 0.5f, 0.5f)), "sc# .5 , .5 , .5 , .5" }; // Leading decimals with spaces 171yield return new object[] { new SolidColorBrush(Color.FromScRgb(0.75f, 0.5f, 0f, 0.5f)), "sc#0.75,0.50,0.00,0.50" }; // Explicit zero padding 192yield return new object[] { new SolidColorBrush(Color.FromRgb(0x00, 0x00, 0x00)), "#000" }; 193yield return new object[] { new SolidColorBrush(Color.FromRgb(0xFF, 0xFF, 0xFF)), "#FfF" }; 194yield return new object[] { new SolidColorBrush(Color.FromRgb(0x11, 0x22, 0x33)), "#123" }; 195yield return new object[] { new SolidColorBrush(Color.FromRgb(0x44, 0x55, 0x66)), "#456" }; 196yield return new object[] { new SolidColorBrush(Color.FromRgb(0x77, 0x88, 0x99)), "#789" }; 197yield return new object[] { new SolidColorBrush(Color.FromRgb(0xAA, 0xBB, 0xCC)), "#ABC" }; 198yield return new object[] { new SolidColorBrush(Color.FromRgb(0xDD, 0xEE, 0xFF)), "#DEF" }; 199yield return new object[] { new SolidColorBrush(Color.FromRgb(0x11, 0x33, 0x55)), "#135" }; 200yield return new object[] { new SolidColorBrush(Color.FromRgb(0x22, 0x44, 0x66)), "#246" }; 201yield return new object[] { new SolidColorBrush(Color.FromRgb(0x33, 0x55, 0x77)), "#357" }; 202yield return new object[] { new SolidColorBrush(Color.FromRgb(0x44, 0x66, 0x88)), "#468" }; 203yield return new object[] { new SolidColorBrush(Color.FromRgb(0x55, 0x77, 0x99)), "#579" }; 204yield return new object[] { new SolidColorBrush(Color.FromRgb(0x66, 0x88, 0xAA)), "#68A" }; 205yield return new object[] { new SolidColorBrush(Color.FromRgb(0x77, 0x99, 0xBB)), "#79B" }; 206yield return new object[] { new SolidColorBrush(Color.FromRgb(0x88, 0xAA, 0xCC)), "#8AC" }; 207yield return new object[] { new SolidColorBrush(Color.FromRgb(0x99, 0xBB, 0xDD)), "#9BD" }; 208yield return new object[] { new SolidColorBrush(Color.FromRgb(0xCC, 0xBB, 0xAA)), "#CBA" }; 209yield return new object[] { new SolidColorBrush(Color.FromRgb(0xFF, 0xEE, 0xDD)), " #FED" }; 210yield return new object[] { new SolidColorBrush(Color.FromRgb(0x88, 0x99, 0xAA)), "#89A " }; 211yield return new object[] { new SolidColorBrush(Color.FromRgb(0x00, 0x77, 0xFF)), " #07F " }; 231yield return new object[] { new SolidColorBrush(Color.FromArgb(0xAA, 0xFF, 0x22, 0x55)), "#AF25" }; 232yield return new object[] { new SolidColorBrush(Color.FromArgb(0x11, 0x22, 0x33, 0x44)), "#1234" }; 233yield return new object[] { new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0xFF)), "#F00F" }; 234yield return new object[] { new SolidColorBrush(Color.FromArgb(0xCC, 0x33, 0x66, 0xFF)), "#C36f" }; 235yield return new object[] { new SolidColorBrush(Color.FromArgb(0x77, 0x88, 0x99, 0xAA)), "#789A" }; 236yield return new object[] { new SolidColorBrush(Color.FromArgb(0x77, 0x33, 0x66, 0x22)), " #7362" }; 237yield return new object[] { new SolidColorBrush(Color.FromArgb(0x66, 0x88, 0x99, 0x33)), "#6893 " }; 238yield return new object[] { new SolidColorBrush(Color.FromArgb(0xEE, 0xDD, 0xCC, 0xBB)), " #EDCB " }; 258yield return new object[] { new SolidColorBrush(Color.FromRgb(0x12, 0x34, 0x56)), "#123456" }; 259yield return new object[] { new SolidColorBrush(Color.FromRgb(0xAA, 0xBB, 0xCC)), "#AABBCC" }; 260yield return new object[] { new SolidColorBrush(Color.FromRgb(0xFF, 0x00, 0x00)), "#FF0000" }; 261yield return new object[] { new SolidColorBrush(Color.FromRgb(0x00, 0xFF, 0x00)), "#00FF00" }; 262yield return new object[] { new SolidColorBrush(Color.FromRgb(0x00, 0x00, 0xFF)), "#0000FF" }; 263yield return new object[] { new SolidColorBrush(Color.FromRgb(0xFF, 0xFF, 0x00)), "#FFFF00" }; 264yield return new object[] { new SolidColorBrush(Color.FromRgb(0x00, 0xFF, 0xFF)), "#00FFFF" }; 265yield return new object[] { new SolidColorBrush(Color.FromRgb(0xFF, 0x00, 0xFF)), "#FF00FF" }; 266yield return new object[] { new SolidColorBrush(Color.FromRgb(0xC0, 0xC0, 0xC0)), "#C0C0C0" }; 267yield return new object[] { new SolidColorBrush(Color.FromRgb(0x80, 0x80, 0x80)), "#808080" }; 268yield return new object[] { new SolidColorBrush(Color.FromRgb(0x12, 0x12, 0x12)), "#121212" }; 269yield return new object[] { new SolidColorBrush(Color.FromRgb(0x34, 0x56, 0x78)), "#345678" }; 270yield return new object[] { new SolidColorBrush(Color.FromRgb(0x90, 0xAB, 0xCD)), "#90ABCD" }; 271yield return new object[] { new SolidColorBrush(Color.FromRgb(0xDE, 0xAD, 0xBE)), "#DEADBE" }; 273yield return new object[] { new SolidColorBrush(Color.FromRgb(0xEF, 0xBE, 0xAD)), "#eFBEAD" }; 274yield return new object[] { new SolidColorBrush(Color.FromRgb(0x12, 0x34, 0xFF)), "#1234ff" }; 275yield return new object[] { new SolidColorBrush(Color.FromRgb(0x56, 0x78, 0x9A)), "#56789a" }; 277yield return new object[] { new SolidColorBrush(Color.FromRgb(0xBC, 0xDE, 0xF0)), " #BCDEF0" }; 278yield return new object[] { new SolidColorBrush(Color.FromRgb(0x01, 0x23, 0x45)), " #012345 " }; 279yield return new object[] { new SolidColorBrush(Color.FromRgb(0x67, 0x89, 0xAB)), "#6789AB " }; 305yield return new object[] { new SolidColorBrush(Color.FromArgb(0x25, 0x37, 0x64, 0x88)), "#25376488" }; 306yield return new object[] { new SolidColorBrush(Color.FromArgb(0xAF, 0x25, 0x46, 0xCC)), "#AF2546CC" }; 309yield return new object[] { new SolidColorBrush(Color.FromArgb(0x44, 0x37, 0x64, 0x88)), " #44376488" }; 310yield return new object[] { new SolidColorBrush(Color.FromArgb(0x35, 0x25, 0x46, 0xCC)), " #352546CC " }; 311yield return new object[] { new SolidColorBrush(Color.FromArgb(0x25, 0x37, 0x14, 0x25)), " #25371425 " }; 312yield return new object[] { new SolidColorBrush(Color.FromArgb(0xAF, 0x25, 0x46, 0x22)), "#AF254622 " };
PresentationFramework (151)
MS\Internal\Annotations\Component\HighlightComponent.cs (21)
120public Color DefaultBackground 135public Color DefaultActiveBackground 385Color IHighlightRange.Background 396Color IHighlightRange.SelectedBackground 467internal static void GetCargoColors(Annotation annot, ref Nullable<Color> backgroundColor, ref Nullable<Color> activeBackgroundColor) 539private static Color GetColor(string color) 541return (Color)ColorConverter.ConvertFromString(color); 551private void GetColors(Annotation annot, out Color backgroundColor, out Color activeBackgroundColor) 553Nullable<Color> tempBackgroundColor = _defaultBackroundColor; 554Nullable<Color> tempActiveBackgroundColor = _defaultActiveBackgroundColor; 556backgroundColor = (Color)tempBackgroundColor; 557activeBackgroundColor = (Color)tempActiveBackgroundColor; 581Color background, activeBackground; 644private Color _background; 645private Color _selectedBackground; 659private Color _defaultBackroundColor = (Color)ColorConverter.ConvertFromString("#33FFFF00"); 660private Color _defaultActiveBackgroundColor = (Color)ColorConverter.ConvertFromString("#339ACD32");
MS\Internal\Annotations\Component\IHighlightRange.cs (2)
52Color Background 60Color SelectedBackground
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (8)
1134internal static Color DefaultAnchorBackground = (Color)ColorConverter.ConvertFromString("#3380FF80"); 1135internal static Color DefaultMarkerColor = (Color)ColorConverter.ConvertFromString("#FF008000"); 1136internal static Color DefaultActiveAnchorBackground = (Color)ColorConverter.ConvertFromString("#3300FF00"); 1137internal static Color DefaultActiveMarkerColor = (Color)ColorConverter.ConvertFromString("#FF008000");
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (3)
40_adornerPenBrush = new Pen(new SolidColorBrush(Color.FromRgb(132, 146, 222)), 1); 43_adornerFillBrush = new LinearGradientBrush(Color.FromRgb(240, 242, 255), //start color 44Color.FromRgb(180, 207, 248), //end color
MS\Internal\Documents\TextBoxView.cs (1)
495context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height));
MS\Internal\Ink\HighContrastHelper.cs (2)
27internal abstract void TurnHighContrastOn(Color highContrastColor); 191Color windowTextColor = SystemColors.WindowTextColor;
MS\Internal\Ink\LassoHelper.cs (2)
46private static readonly Color DotColor = Colors.Orange; //FromArgb(1, 0.89f, 0.3607f, 0.1843f); 47private static readonly Color DotCircumferenceColor = Colors.White;
MS\Internal\Ink\PenCursorManager.cs (3)
438Color.FromRgb(240, 242, 255), // Start Color 439Color.FromRgb(180, 207, 248), // End Color 444SolidColorBrush brush2 = new SolidColorBrush(Color.FromRgb(180, 207, 248));
System\Windows\AccentColorHelper.cs (5)
15internal static Color GetAccentColor(UISettingsRCW.UIColorType uiColorType = UISettingsRCW.UIColorType.Accent) 17if (UISettings.TryGetColorValue(uiColorType, out Color color)) 29internal static Color SystemAccentColor 54private static readonly Color _defaultAccentColor = Color.FromArgb(0xff, 0x00, 0x78, 0xd4);
System\Windows\Annotations\AnnotationHelper.cs (4)
923Nullable<Color> color = null; 939color = Color.FromArgb(alpha, brush.Color.R, brush.Color.G, brush.Color.B); 962private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create) 1014private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1159border.SetValue(Border.BackgroundProperty, new SolidColorBrush(Color.FromUInt32(0xFF000080)));
System\Windows\Controls\InkCanvas.cs (1)
2956internal override void TurnHighContrastOn(Color highContrastColor)
System\Windows\Controls\InkPresenter.cs (1)
386internal override void TurnHighContrastOn(Color highContrastColor)
System\Windows\Controls\ProgressBar.cs (1)
187Color color = ((SolidColorBrush)this.Foreground).Color;
System\Windows\Controls\TextRangeAdaptor.cs (1)
1257Color color = (solidBrush != null) ? solidBrush.Color : Colors.Black;
System\Windows\Documents\CompositionAdorner.cs (4)
505Color lineColor = _textServicesDisplayAttribute.GetLineColor(start); 675internal CompositionLine(Rect startRect, Rect endRect, Color lineColor) 739internal Color LineColor 764private Color _color;
System\Windows\Documents\RtfToXamlReader.cs (23)
364internal static bool ColorToUse(ConverterState converterState, long cb, long cf, long shade, ref Color c) 386Color cCB = entryCB != null ? entryCB.Color : Color.FromArgb(0xFF, 0, 0, 0); 387Color cCF = entryCF != null ? entryCF.Color : Color.FromArgb(0xFF, 255, 255, 255); 392c = Color.FromArgb(0xff, 402c = Color.FromArgb(0xff, 412c = Color.FromArgb(0xff, 422c = Color.FromArgb(0xff, 3817_color = Color.FromArgb(0xff, 0, 0, 0); 3831internal Color Color 3859_color = Color.FromArgb(0xff, value, _color.G, _color.B); 3867_color = Color.FromArgb(0xff, _color.R, value, _color.B); 3875_color = Color.FromArgb(0xff, _color.R, _color.G, value); 3889private Color _color; 3924internal Color ColorAt(int index) 3932return Color.FromArgb(0xff, 0, 0, 0); 3944int i = AddColor(Color.FromArgb(0xff, 0, 0, 0)); 3951internal int AddColor(Color color) 5145Color cToUse = Color.FromArgb(0xff, 0, 0, 0); 5204Color cToUse = Color.FromArgb(0xff, 0, 0, 0);
System\windows\Documents\TextSelection.cs (2)
1602Color backgroundColor; 1644caretBrush = new SolidColorBrush(Color.FromRgb(r, g, b));
System\Windows\Documents\TextServicesDisplayAttribute.cs (5)
84internal static Color GetColor(UnsafeNativeMethods.TF_DA_COLOR dacolor, ITextPointer position) 94return Color.FromArgb((byte)((argb & 0xff000000) >> 24), (byte)((argb & 0x00ff0000) >> 16), (byte)((argb & 0x0000ff00) >> 8), (byte)(argb & 0x000000ff)); 104internal Color GetLineColor(ITextPointer position) 169private static Color GetSystemColor(int index) 176return Color.FromArgb((byte)((argb&0xff000000)>>24), (byte)((argb&0x00ff0000)>>16),(byte)((argb&0x0000ff00)>>8), (byte)(argb&0x000000ff));
System\Windows\Documents\XamlToRtfWriter.cs (7)
52colorTable.AddColor(Color.FromArgb(0xff, 0, 0, 0)); 53colorTable.AddColor(Color.FromArgb(0xff, 0xff, 0xff, 0xff)); 556Color color = colorTable.ColorAt(i); 3635Color color = Color.FromRgb((byte)((colorValue & 0x00ff0000) >> 16), 3647Color color = (Color)ColorConverter.ConvertFromString(brush);
System\Windows\FluentThemeState.cs (1)
19public Color AccentColor {get; init;}
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
174case 81: t = () => typeof(Color); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2747typeof(System.Windows.Media.Color),
System\Windows\Markup\KnownTypes.cs (1)
5628case KnownElements.Color: t = typeof(System.Windows.Media.Color); break;
System\Windows\Standard\Utilities.cs (2)
27public static Color ColorFromArgbDword(uint color) 29return Color.FromArgb(
System\Windows\SystemColors.cs (44)
21public static Color ActiveBorderColor 32public static Color ActiveCaptionColor 43public static Color ActiveCaptionTextColor 54public static Color AppWorkspaceColor 65public static Color ControlColor 76public static Color ControlDarkColor 87public static Color ControlDarkDarkColor 98public static Color ControlLightColor 109public static Color ControlLightLightColor 120public static Color ControlTextColor 131public static Color DesktopColor 142public static Color GradientActiveCaptionColor 153public static Color GradientInactiveCaptionColor 164public static Color GrayTextColor 175public static Color HighlightColor 186public static Color HighlightTextColor 197public static Color HotTrackColor 208public static Color InactiveBorderColor 219public static Color InactiveCaptionColor 230public static Color InactiveCaptionTextColor 241public static Color InfoColor 252public static Color InfoTextColor 263public static Color MenuColor 274public static Color MenuBarColor 285public static Color MenuHighlightColor 296public static Color MenuTextColor 307public static Color ScrollBarColor 318public static Color WindowColor 329public static Color WindowFrameColor 340public static Color WindowTextColor 351public static Color AccentColor 362public static Color AccentColorLight1 373public static Color AccentColorLight2 384public static Color AccentColorLight3 395public static Color AccentColorDark1 406public static Color AccentColorDark2 417public static Color AccentColorDark3 2232private static Color GetSystemColor(CacheSlot slot) 2234Color color; 2247color = Color.FromArgb((byte)((argb & 0xff000000) >>24), (byte)((argb & 0x00ff0000) >>16), (byte)((argb & 0x0000ff00) >>8), (byte)(argb & 0x000000ff)); 2258private static Color GetAccentColor(CacheSlot slot) 2260Color color; 2465private static Color[] _colorCache = new Color[(int)CacheSlot.NumSlots];
System\Windows\SystemParameters.cs (2)
5640public static Color WindowGlassColor 5938private static Color _windowGlassColor;
System\Windows\VisualStateManager.cs (2)
451Color? targetColor = GetTargetColor(timeline, isEntering); 589private static Color? GetTargetColor(Timeline timeline, bool isEntering)
PresentationFramework.Aero (295)
Microsoft\Windows\Themes\BulletChrome.cs (119)
196ca = new ColorAnimation(Color.FromRgb(0x29, 0x62, 0x8D), duration); 199ca = new ColorAnimation(Color.FromRgb(0x24, 0x54, 0x79), duration); 202ca = new ColorAnimation(Color.FromRgb(0x19, 0x3B, 0x55), duration); 206ca = new ColorAnimation(Color.FromRgb(0x33, 0xD7, 0xED), duration); 209ca = new ColorAnimation(Color.FromRgb(0x20, 0x94, 0xCE), duration); 216ca = new ColorAnimation(Color.FromArgb(0x80, 0xFF, 0xFF, 0xFF), duration); 219ca = new ColorAnimation(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), duration); 222ca = new ColorAnimation(Color.FromArgb(0x80, 0x33, 0x33, 0xA0), duration); 230ca = new ColorAnimation(Color.FromRgb(0x79, 0xC6, 0xF9), duration); 233ca = new ColorAnimation(Color.FromRgb(0x79, 0xC6, 0xF9), duration); 236ca = new ColorAnimation(Color.FromRgb(0xD2, 0xED, 0xFD), duration); 241ca = new ColorAnimation(Color.FromRgb(0xB1, 0xDF, 0xFD), duration); 244ca = new ColorAnimation(Color.FromRgb(0xE9, 0xF7, 0xFE), duration); 254ca = new ColorAnimation(Color.FromRgb(0xFF, 0xFF, 0xFF), duration); 257ca = new ColorAnimation(Color.FromRgb(0x74, 0xFF, 0xFF), duration); 260ca = new ColorAnimation(Color.FromRgb(0x0D, 0xA0, 0xF3), duration); 277ColorAnimation ca = new ColorAnimation(Color.FromRgb(0x2A, 0x62, 0x8D), duration); 284ca = new ColorAnimation(Color.FromRgb(0x24, 0x54, 0x79), duration); 287ca = new ColorAnimation(Color.FromRgb(0x19, 0x3B, 0x55), duration); 291ca = new ColorAnimation(Color.FromRgb(0x2F, 0xA8, 0xD5), duration); 294ca = new ColorAnimation(Color.FromRgb(0x25, 0x59, 0x8C), duration); 300ca = new ColorAnimation(Color.FromArgb(0x80, 0xFF, 0xFF, 0xFF), duration); 303ca = new ColorAnimation(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), duration); 306ca = new ColorAnimation(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), duration); 346ColorAnimation ca = new ColorAnimation(Color.FromRgb(0x2C, 0x62, 0x8B), duration); 349ca = new ColorAnimation(Color.FromRgb(0xC2, 0xE4, 0xF6), duration); 357ca = new ColorAnimation(Color.FromRgb(0x19, 0x3B, 0x55), duration); 360ca = new ColorAnimation(Color.FromRgb(0x24, 0x54, 0x79), duration); 363ca = new ColorAnimation(Color.FromRgb(0x29, 0x62, 0x8D), duration); 367ca = new ColorAnimation(Color.FromRgb(0x17, 0x44, 0x7A), duration); 370ca = new ColorAnimation(Color.FromRgb(0x21, 0x8B, 0xC3), duration); 376ca = new ColorAnimation(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), duration); 379ca = new ColorAnimation(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), duration); 382ca = new ColorAnimation(Color.FromArgb(0x20, 0xFF, 0xFF, 0xFF), duration); 390ca = new ColorAnimation(Color.FromRgb(0x54, 0xA6, 0xD5), duration); 393ca = new ColorAnimation(Color.FromRgb(0x5E, 0xB5, 0xE4), duration); 396ca = new ColorAnimation(Color.FromRgb(0xC4, 0xE5, 0xF6), duration); 400ca = new ColorAnimation(Color.FromRgb(0x7F, 0xBA, 0xDC), duration); 403ca = new ColorAnimation(Color.FromRgb(0xD6, 0xED, 0xF9), duration); 419ca = new ColorAnimation(Color.FromRgb(0x95, 0xD9, 0xFC), duration); 422ca = new ColorAnimation(Color.FromRgb(0x3A, 0x84, 0xAA), duration); 425ca = new ColorAnimation(Color.FromRgb(0x07, 0x54, 0x83), duration); 976Brush = new SolidColorBrush(Color.FromRgb(0xA2, 0xAE, 0xB9)) 1001Brush = new SolidColorBrush(Color.FromRgb(0x19, 0x3B, 0x55)) 1032brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x80, 0xFF, 0xFF, 0xFF), 0)); 1033brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), 0.5)); 1034brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), 0.5)); 1035brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), 1)); 1069brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x80, 0xFF, 0xFF, 0xFF), 0)); 1070brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), 0.5)); 1071brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), 0.5)); 1072brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x80, 0x33, 0x33, 0xA0), 1)); 1105brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), 0.5)); 1106brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x20, 0xFF, 0xFF, 0xFF), 1)); 1163SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xAE, 0xB7, 0xCF)); 1183SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)); 1205SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)) 1237temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xC9, 0xD5, 0xDE), 0)); 1238temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xC0, 0xE3, 0xE8), 0.35)); 1239temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xB0, 0xD4, 0xE9), 1)); 1268temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE5, 0xE5, 0xE5), 0.1)); 1269temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x5D, 0xCE, 0xDD), 0.35)); 1270temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0B, 0x82, 0xC7), 1)); 1299temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xFF, 0xFF, 0xFF), 0.1)); 1300temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x74, 0xFF, 0xFF), 0.35)); 1301temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0D, 0xA0, 0xF3), 1)); 1332temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x95, 0xD9, 0xFC), 0)); 1333temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x3A, 0x84, 0xAA), 0.35)); 1334temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x07, 0x54, 0x83), 1)); 1355SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xDE, 0xF9, 0xFA)); 1375SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xC2, 0xE4, 0xF6)); 1395SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 1418Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1442Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 1466Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)) 1498brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xE1, 0xE3, 0xE5), 0.25)); 1499brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xE8, 0xE9, 0xEA), 0.5)); 1500brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xF3, 0xF3, 0xF3), 1)); 1533brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xAE, 0xB3, 0xB9), 0.25)); 1534brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xC2, 0xC4, 0xC6), 0.5)); 1535brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xEA, 0xEB, 0xEB), 1)); 1568brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x79, 0xC6, 0xF9), 0.3)); 1569brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x79, 0xC6, 0xF9), 0.5)); 1570brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xD2, 0xED, 0xFD), 1)); 1603brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x54, 0xA6, 0xD5), 0.3)); 1604brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x5E, 0xB5, 0xE4), 0.5)); 1605brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xC4, 0xE5, 0xF6), 1)); 1638brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xBF, 0xD0, 0xDD), 0)); 1639brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xBD, 0xCB, 0xD7), 0.5)); 1640brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xBA, 0xC4, 0xCC), 1)); 1673brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x2A, 0x62, 0x8D), 0)); 1674brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x24, 0x54, 0x79), 0.5)); 1675brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x19, 0x3B, 0x55), 1)); 1708brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x29, 0x62, 0x8D), 0)); 1709brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x24, 0x54, 0x79), 0.5)); 1710brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x19, 0x3B, 0x55), 1)); 1743brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x19, 0x3B, 0x55), 0)); 1744brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x24, 0x54, 0x79), 0.5)); 1745brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x29, 0x62, 0x8D), 1)); 1779brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xB3, 0xB8, 0xBD), 0)); 1780brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xEB, 0xEB, 0xEB), 1)); 1813brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x80, 0xCA, 0xF9), 0)); 1814brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xD2, 0xEE, 0xFD), 1)); 1847brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x5C, 0xAA, 0xD7), 0)); 1848brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xC3, 0xE4, 0xF6), 1)); 1918temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCB, 0xCF, 0xD5), 0.2)); 1919temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xF7, 0xF7, 0xF7), 0.8)); 1946temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xB1, 0xDF, 0xFD), 0.2)); 1947temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE9, 0xF7, 0xFE), 0.8)); 1975temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x7F, 0xBA, 0xDC), 0.2)); 1976temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xD6, 0xED, 0xF9), 0.8)); 2005temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xC0, 0xE5, 0xF3), 0.2)); 2006temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xBD, 0xCD, 0xDC), 0.8)); 2034temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2F, 0xA8, 0xD5), 0.2)); 2035temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x25, 0x59, 0x8C), 0.8)); 2062temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x33, 0xD7, 0xED), 0.2)); 2063temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x20, 0x94, 0xCE), 0.8)); 2090temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x17, 0x44, 0x7A), 0.2)); 2091temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x21, 0x8B, 0xC3), 0.8));
Microsoft\Windows\Themes\ButtonChrome.cs (23)
115ColorAnimation ca = new ColorAnimation(Color.FromArgb(0xF9, 0x00, 0xCC, 0xFF), duration); 311ColorAnimation ca = new ColorAnimation(Color.FromRgb(0xC2, 0xE4, 0xF6), duration); 316ca = new ColorAnimation(Color.FromRgb(0xAB, 0xDA, 0xF3), duration); 319ca = new ColorAnimation(Color.FromRgb(0x90, 0xCB, 0xEB), duration); 322ca = new ColorAnimation(Color.FromRgb(0x2C, 0x62, 0x8B), duration); 702temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEA, 0xF6, 0xFD), 0)); 703temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xD9, 0xF0, 0xFC), 0.5)); 704temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBE, 0xE6, 0xFD), 0.5)); 705temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA7, 0xD9, 0xF5), 1)); 734temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC2, 0xE4, 0xF6), 0.5)); 735temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xAB, 0xDA, 0xF3), 0.5)); 736temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x90, 0xCB, 0xEB), 1)); 757SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 821Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 845Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 870Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)) 950brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFA,0xFF,0xFF,0xFF), 0)); 951brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x85,0xFF,0xFF,0xFF), 1)); 977Brush = new SolidColorBrush(Color.FromArgb(0xF9, 0x00, 0xCC, 0xFF)) 1046temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x80, 0x33, 0x33, 0x33), 0)); 1047temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x33, 0x33, 0x33), 1)); 1111temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x80, 0x33, 0x33, 0x33), 0)); 1112temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x33, 0x33, 0x33), 1));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (50)
75bevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.0)); 76bevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.4)); 77bevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFC, 0xFC, 0xFD), 0.4)); 78bevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFB, 0xFC, 0xFC), 1.0)); 114background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.0)); 115background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.4)); 116background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF7, 0xF8, 0xFA), 0.4)); 117background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF1, 0xF2, 0xF4), 1.0)); 121background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBC, 0xE4, 0xF9), 0.0)); 122background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBC, 0xE4, 0xF9), 0.4)); 123background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x8D, 0xD6, 0xF7), 0.4)); 124background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x8A, 0xD1, 0xF5), 1.0)); 128background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0xF7, 0xFF), 0.0)); 129background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0xF7, 0xFF), 0.4)); 130background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBD, 0xED, 0xFF), 0.4)); 131background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB7, 0xE7, 0xFB), 1.0)); 135background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF2, 0xF9, 0xFC), 0.0)); 136background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF2, 0xF9, 0xFC), 0.4)); 137background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE1, 0xF1, 0xF9), 0.4)); 138background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xD8, 0xEC, 0xF6), 1.0)); 192lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF2, 0xF2, 0xF2), 0.0)); 193lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEF, 0xEF, 0xEF), 0.4)); 194lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE7, 0xE8, 0xEA), 0.4)); 195lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDE, 0xDF, 0xE1), 1.0)); 199lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x7A, 0x9E, 0xB1), 0.0)); 200lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x7A, 0x9E, 0xB1), 0.4)); 201lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x50, 0x91, 0xAF), 0.4)); 202lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x4D, 0x8D, 0xAD), 1.0)); 206lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x88, 0xCB, 0xEB), 0.0)); 207lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x88, 0xCB, 0xEB), 0.4)); 208lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x69, 0xBB, 0xE3), 0.4)); 209lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x69, 0xBB, 0xE3), 1.0)); 213sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9)); 239topBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x86, 0xA3, 0xB2), 0.0)); 240topBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x86, 0xA3, 0xB2), 0.1)); 241topBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xAA, 0xCE, 0xE1), 0.9)); 242topBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xAA, 0xCE, 0xE1), 1.0)); 258pressedBevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA2, 0xCB, 0xE0), 0.0)); 259pressedBevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA2, 0xCB, 0xE0), 0.4)); 260pressedBevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x72, 0xBC, 0xDF), 0.4)); 261pressedBevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x6E, 0xB8, 0xDC), 1.0)); 294bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xD5, 0xD5, 0xD5)); 298bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x93, 0xC9, 0xE3)); 302bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9)); 371arrowBorder.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x3C, 0x5E, 0x72), 0.0)); 372arrowBorder.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x3C, 0x5E, 0x72), 0.1)); 373arrowBorder.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC3, 0xE4, 0xF5), 1.0)); 388arrowFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x61, 0x96, 0xB6), 0.0)); 389arrowFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x61, 0x96, 0xB6), 0.1)); 390arrowFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCA, 0xE6, 0xF5), 1.0));
Microsoft\Windows\Themes\ListBoxChrome.cs (8)
509SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 543brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x57, 0x94, 0xBF), 0.05)); 544brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB7, 0xD5, 0xEA), 0.07)); 545brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC7, 0xE2, 0xF1), 1)); 580brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x3D, 0x7B, 0xAD), 0.05)); 581brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA4, 0xC9, 0xE3), 0.07)); 582brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB7, 0xD9, 0xED), 1)); 608Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5))
Microsoft\Windows\Themes\ScrollChrome.cs (86)
130ColorAnimation ca = new ColorAnimation(Color.FromRgb(0x21, 0x21, 0x21), duration); 132ca = new ColorAnimation(Color.FromRgb(0x57, 0x57, 0x57), duration); 134ca = new ColorAnimation(Color.FromRgb(0xB3, 0xB3, 0xB3), duration); 251ColorAnimation ca = new ColorAnimation(Color.FromRgb(0x3C, 0x7F, 0xB1), duration); 254ca = new ColorAnimation(Color.FromRgb(0xE3, 0xF4, 0xFC), duration); 257ca = new ColorAnimation(Color.FromRgb(0xD6, 0xEE, 0xFB), duration); 260ca = new ColorAnimation(Color.FromRgb(0xA9, 0xDB, 0xF6), duration); 263ca = new ColorAnimation(Color.FromRgb(0xA4, 0xD5, 0xEF), duration); 270ca = new ColorAnimation(Color.FromRgb(0x15, 0x30, 0x3E), duration); 273ca = new ColorAnimation(Color.FromRgb(0x3C, 0x7F, 0xB1), duration); 276ca = new ColorAnimation(Color.FromRgb(0x9C, 0xCE, 0xE9), duration); 281ca = new ColorAnimation(Color.FromRgb(0x0D, 0x2A, 0x3A), duration); 284ca = new ColorAnimation(Color.FromRgb(0x1F, 0x63, 0x8A), duration); 287ca = new ColorAnimation(Color.FromRgb(0x2E, 0x97, 0xCF), duration); 328ColorAnimation ca = new ColorAnimation(Color.FromRgb(0x15, 0x59, 0x8A), duration); 331ca = new ColorAnimation(Color.FromRgb(0xCA, 0xEC, 0xF9), duration); 334ca = new ColorAnimation(Color.FromRgb(0xAF, 0xE1, 0xF7), duration); 337ca = new ColorAnimation(Color.FromRgb(0x6F, 0xCA, 0xF0), duration); 340ca = new ColorAnimation(Color.FromRgb(0x66, 0xBA, 0xDD), duration); 347ca = new ColorAnimation(Color.FromRgb(0x0F, 0x24, 0x30), duration); 350ca = new ColorAnimation(Color.FromRgb(0x2E, 0x73, 0x97), duration); 353ca = new ColorAnimation(Color.FromRgb(0x8F, 0xB8, 0xCE), duration); 359ca = new ColorAnimation(Color.FromRgb(0x0E, 0x22, 0x2D), duration); 362ca = new ColorAnimation(Color.FromRgb(0x2F, 0x79, 0x9E), duration); 365ca = new ColorAnimation(Color.FromRgb(0x6B, 0xA0, 0xBC), duration); 830temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xF3, 0xF3, 0xF3), 0)); 831temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE8, 0xE8, 0xE9), 0.5)); 832temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xD6, 0xD6, 0xD8), 0.5)); 833temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xBC, 0xBD, 0xC0), 1)); 862temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE3, 0xF4, 0xFC), 0)); 863temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xD6, 0xEE, 0xFB), 0.5)); 864temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xA9, 0xDB, 0xF6), 0.5)); 865temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xA4, 0xD5, 0xEF), 1)); 892temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCA, 0xEC, 0xF9), 0)); 893temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xAF, 0xE1, 0xF7), 0.5)); 894temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x6F, 0xCA, 0xF0), 0.5)); 895temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x66, 0xBA, 0xDD), 1)); 923temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xF3, 0xF3, 0xF3), 0)); 924temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE8, 0xE8, 0xE9), 0.5)); 925temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xD6, 0xD6, 0xD8), 0.5)); 926temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xBC, 0xBD, 0xC0), 1)); 953temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE3, 0xF4, 0xFC), 0)); 954temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xD6, 0xEE, 0xFB), 0.5)); 955temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xA9, 0xDB, 0xF6), 0.5)); 956temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xA4, 0xD5, 0xEF), 1)); 983temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCA, 0xEC, 0xF9), 0)); 984temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xAF, 0xE1, 0xF7), 0.5)); 985temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x6F, 0xCA, 0xF0), 0.5)); 986temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x66, 0xBA, 0xDD), 1)); 1108Brush = new SolidColorBrush(Color.FromRgb(0x95, 0x95, 0x95)) 1134Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1160Brush = new SolidColorBrush(Color.FromRgb(0x15, 0x59, 0x8A)) 1316Brush = new SolidColorBrush(Color.FromRgb(0xCF, 0xCF, 0xCF)) 1395temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x00, 0x00, 0x00), 0.5)); 1396temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x97, 0x97, 0x97), 0.7)); 1397temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCA, 0xCA, 0xCA), 1)); 1424temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x15, 0x30, 0x3E), 0.5)); 1425temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x3C, 0x7F, 0xB1), 0.7)); 1426temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x9C, 0xCE, 0xE9), 1)); 1453temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0F, 0x24, 0x30), 0.5)); 1454temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2E, 0x73, 0x97), 0.7)); 1455temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x8F, 0xB8, 0xCE), 1)); 1482temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x00, 0x00, 0x00), 0.5)); 1483temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x97, 0x97, 0x97), 0.7)); 1484temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCA, 0xCA, 0xCA), 1)); 1511temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x15, 0x30, 0x3E), 0.5)); 1512temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x3C, 0x7F, 0xB1), 0.7)); 1513temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x9C, 0xCE, 0xE9), 1)); 1540temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0F, 0x24, 0x30), 0.5)); 1541temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2E, 0x73, 0x97), 0.7)); 1542temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x8F, 0xB8, 0xCE), 1)); 1571temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x70, 0x70, 0x70), 0.5)); 1572temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x76, 0x76, 0x76), 0.7)); 1573temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCB, 0xCB, 0xCB), 1)); 1601temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x21, 0x21, 0x21), 0.5)); 1602temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x57, 0x57, 0x57), 0.7)); 1603temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xB3, 0xB3, 0xB3), 1)); 1631temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0D, 0x2A, 0x3A), 0.5)); 1632temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x1F, 0x63, 0x8A), 0.7)); 1633temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2E, 0x97, 0xCF), 1)); 1661temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0E, 0x22, 0x2D), 0.5)); 1662temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2F, 0x79, 0x9E), 0.7)); 1663temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x6B, 0xA0, 0xBC), 1)); 1751_localResources.Glyph.GradientStops.Add(new GradientStop(Color.FromRgb(0x00, 0x00, 0x00), 0.5)); 1752_localResources.Glyph.GradientStops.Add(new GradientStop(Color.FromRgb(0x97, 0x97, 0x97), 0.7)); 1753_localResources.Glyph.GradientStops.Add(new GradientStop(Color.FromRgb(0xCA, 0xCA, 0xCA), 1));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (9)
34typeof(Color), 37Color.FromArgb(0x71, 0x00, 0x00, 0x00), 44public Color Color 46get { return (Color)GetValue(ColorProperty); } 101Color color = Color; 290private static GradientStopCollection CreateStops(Color c, double cornerRadius) 299Color stopColor = c; 321private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 434private Brush[] GetBrushes(Color c, CornerRadius cornerRadius)
PresentationFramework.Aero2 (295)
Microsoft\Windows\Themes\BulletChrome.cs (119)
196ca = new ColorAnimation(Color.FromRgb(0x29, 0x62, 0x8D), duration); 199ca = new ColorAnimation(Color.FromRgb(0x24, 0x54, 0x79), duration); 202ca = new ColorAnimation(Color.FromRgb(0x19, 0x3B, 0x55), duration); 206ca = new ColorAnimation(Color.FromRgb(0x33, 0xD7, 0xED), duration); 209ca = new ColorAnimation(Color.FromRgb(0x20, 0x94, 0xCE), duration); 216ca = new ColorAnimation(Color.FromArgb(0x80, 0xFF, 0xFF, 0xFF), duration); 219ca = new ColorAnimation(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), duration); 222ca = new ColorAnimation(Color.FromArgb(0x80, 0x33, 0x33, 0xA0), duration); 230ca = new ColorAnimation(Color.FromRgb(0x79, 0xC6, 0xF9), duration); 233ca = new ColorAnimation(Color.FromRgb(0x79, 0xC6, 0xF9), duration); 236ca = new ColorAnimation(Color.FromRgb(0xD2, 0xED, 0xFD), duration); 241ca = new ColorAnimation(Color.FromRgb(0xB1, 0xDF, 0xFD), duration); 244ca = new ColorAnimation(Color.FromRgb(0xE9, 0xF7, 0xFE), duration); 254ca = new ColorAnimation(Color.FromRgb(0xFF, 0xFF, 0xFF), duration); 257ca = new ColorAnimation(Color.FromRgb(0x74, 0xFF, 0xFF), duration); 260ca = new ColorAnimation(Color.FromRgb(0x0D, 0xA0, 0xF3), duration); 277ColorAnimation ca = new ColorAnimation(Color.FromRgb(0x2A, 0x62, 0x8D), duration); 284ca = new ColorAnimation(Color.FromRgb(0x24, 0x54, 0x79), duration); 287ca = new ColorAnimation(Color.FromRgb(0x19, 0x3B, 0x55), duration); 291ca = new ColorAnimation(Color.FromRgb(0x2F, 0xA8, 0xD5), duration); 294ca = new ColorAnimation(Color.FromRgb(0x25, 0x59, 0x8C), duration); 300ca = new ColorAnimation(Color.FromArgb(0x80, 0xFF, 0xFF, 0xFF), duration); 303ca = new ColorAnimation(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), duration); 306ca = new ColorAnimation(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), duration); 346ColorAnimation ca = new ColorAnimation(Color.FromRgb(0x2C, 0x62, 0x8B), duration); 349ca = new ColorAnimation(Color.FromRgb(0xC2, 0xE4, 0xF6), duration); 357ca = new ColorAnimation(Color.FromRgb(0x19, 0x3B, 0x55), duration); 360ca = new ColorAnimation(Color.FromRgb(0x24, 0x54, 0x79), duration); 363ca = new ColorAnimation(Color.FromRgb(0x29, 0x62, 0x8D), duration); 367ca = new ColorAnimation(Color.FromRgb(0x17, 0x44, 0x7A), duration); 370ca = new ColorAnimation(Color.FromRgb(0x21, 0x8B, 0xC3), duration); 376ca = new ColorAnimation(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), duration); 379ca = new ColorAnimation(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), duration); 382ca = new ColorAnimation(Color.FromArgb(0x20, 0xFF, 0xFF, 0xFF), duration); 390ca = new ColorAnimation(Color.FromRgb(0x54, 0xA6, 0xD5), duration); 393ca = new ColorAnimation(Color.FromRgb(0x5E, 0xB5, 0xE4), duration); 396ca = new ColorAnimation(Color.FromRgb(0xC4, 0xE5, 0xF6), duration); 400ca = new ColorAnimation(Color.FromRgb(0x7F, 0xBA, 0xDC), duration); 403ca = new ColorAnimation(Color.FromRgb(0xD6, 0xED, 0xF9), duration); 419ca = new ColorAnimation(Color.FromRgb(0x95, 0xD9, 0xFC), duration); 422ca = new ColorAnimation(Color.FromRgb(0x3A, 0x84, 0xAA), duration); 425ca = new ColorAnimation(Color.FromRgb(0x07, 0x54, 0x83), duration); 976Brush = new SolidColorBrush(Color.FromRgb(0xA2, 0xAE, 0xB9)) 1001Brush = new SolidColorBrush(Color.FromRgb(0x19, 0x3B, 0x55)) 1032brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x80, 0xFF, 0xFF, 0xFF), 0)); 1033brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), 0.5)); 1034brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), 0.5)); 1035brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), 1)); 1069brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x80, 0xFF, 0xFF, 0xFF), 0)); 1070brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), 0.5)); 1071brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x33, 0x33, 0xA0), 0.5)); 1072brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x80, 0x33, 0x33, 0xA0), 1)); 1105brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), 0.5)); 1106brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x20, 0xFF, 0xFF, 0xFF), 1)); 1163SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xAE, 0xB7, 0xCF)); 1183SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)); 1205SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x31, 0x34, 0x7C)) 1237temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xC9, 0xD5, 0xDE), 0)); 1238temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xC0, 0xE3, 0xE8), 0.35)); 1239temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xB0, 0xD4, 0xE9), 1)); 1268temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE5, 0xE5, 0xE5), 0.1)); 1269temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x5D, 0xCE, 0xDD), 0.35)); 1270temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0B, 0x82, 0xC7), 1)); 1299temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xFF, 0xFF, 0xFF), 0.1)); 1300temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x74, 0xFF, 0xFF), 0.35)); 1301temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0D, 0xA0, 0xF3), 1)); 1332temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x95, 0xD9, 0xFC), 0)); 1333temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x3A, 0x84, 0xAA), 0.35)); 1334temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x07, 0x54, 0x83), 1)); 1355SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xDE, 0xF9, 0xFA)); 1375SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xC2, 0xE4, 0xF6)); 1395SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 1418Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1442Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 1466Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)) 1498brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xE1, 0xE3, 0xE5), 0.25)); 1499brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xE8, 0xE9, 0xEA), 0.5)); 1500brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xF3, 0xF3, 0xF3), 1)); 1533brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xAE, 0xB3, 0xB9), 0.25)); 1534brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xC2, 0xC4, 0xC6), 0.5)); 1535brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xEA, 0xEB, 0xEB), 1)); 1568brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x79, 0xC6, 0xF9), 0.3)); 1569brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x79, 0xC6, 0xF9), 0.5)); 1570brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xD2, 0xED, 0xFD), 1)); 1603brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x54, 0xA6, 0xD5), 0.3)); 1604brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x5E, 0xB5, 0xE4), 0.5)); 1605brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xC4, 0xE5, 0xF6), 1)); 1638brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xBF, 0xD0, 0xDD), 0)); 1639brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xBD, 0xCB, 0xD7), 0.5)); 1640brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xBA, 0xC4, 0xCC), 1)); 1673brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x2A, 0x62, 0x8D), 0)); 1674brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x24, 0x54, 0x79), 0.5)); 1675brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x19, 0x3B, 0x55), 1)); 1708brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x29, 0x62, 0x8D), 0)); 1709brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x24, 0x54, 0x79), 0.5)); 1710brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x19, 0x3B, 0x55), 1)); 1743brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x19, 0x3B, 0x55), 0)); 1744brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x24, 0x54, 0x79), 0.5)); 1745brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x29, 0x62, 0x8D), 1)); 1779brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xB3, 0xB8, 0xBD), 0)); 1780brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xEB, 0xEB, 0xEB), 1)); 1813brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x80, 0xCA, 0xF9), 0)); 1814brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xD2, 0xEE, 0xFD), 1)); 1847brush.GradientStops.Add(new GradientStop(Color.FromRgb(0x5C, 0xAA, 0xD7), 0)); 1848brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xC3, 0xE4, 0xF6), 1)); 1918temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCB, 0xCF, 0xD5), 0.2)); 1919temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xF7, 0xF7, 0xF7), 0.8)); 1946temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xB1, 0xDF, 0xFD), 0.2)); 1947temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE9, 0xF7, 0xFE), 0.8)); 1975temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x7F, 0xBA, 0xDC), 0.2)); 1976temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xD6, 0xED, 0xF9), 0.8)); 2005temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xC0, 0xE5, 0xF3), 0.2)); 2006temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xBD, 0xCD, 0xDC), 0.8)); 2034temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2F, 0xA8, 0xD5), 0.2)); 2035temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x25, 0x59, 0x8C), 0.8)); 2062temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x33, 0xD7, 0xED), 0.2)); 2063temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x20, 0x94, 0xCE), 0.8)); 2090temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x17, 0x44, 0x7A), 0.2)); 2091temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x21, 0x8B, 0xC3), 0.8));
Microsoft\Windows\Themes\ButtonChrome.cs (23)
115ColorAnimation ca = new ColorAnimation(Color.FromArgb(0xF9, 0x00, 0xCC, 0xFF), duration); 311ColorAnimation ca = new ColorAnimation(Color.FromRgb(0xC2, 0xE4, 0xF6), duration); 316ca = new ColorAnimation(Color.FromRgb(0xAB, 0xDA, 0xF3), duration); 319ca = new ColorAnimation(Color.FromRgb(0x90, 0xCB, 0xEB), duration); 322ca = new ColorAnimation(Color.FromRgb(0x2C, 0x62, 0x8B), duration); 702temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEA, 0xF6, 0xFD), 0)); 703temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xD9, 0xF0, 0xFC), 0.5)); 704temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBE, 0xE6, 0xFD), 0.5)); 705temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA7, 0xD9, 0xF5), 1)); 734temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC2, 0xE4, 0xF6), 0.5)); 735temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xAB, 0xDA, 0xF3), 0.5)); 736temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x90, 0xCB, 0xEB), 1)); 757SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 821Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 845Brush = new SolidColorBrush(Color.FromRgb(0x2C, 0x62, 0x8B)) 870Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5)) 950brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFA,0xFF,0xFF,0xFF), 0)); 951brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x85,0xFF,0xFF,0xFF), 1)); 977Brush = new SolidColorBrush(Color.FromArgb(0xF9, 0x00, 0xCC, 0xFF)) 1046temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x80, 0x33, 0x33, 0x33), 0)); 1047temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x33, 0x33, 0x33), 1)); 1111temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x80, 0x33, 0x33, 0x33), 0)); 1112temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x33, 0x33, 0x33), 1));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (50)
75bevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.0)); 76bevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.4)); 77bevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFC, 0xFC, 0xFD), 0.4)); 78bevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFB, 0xFC, 0xFC), 1.0)); 114background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.0)); 115background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.4)); 116background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF7, 0xF8, 0xFA), 0.4)); 117background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF1, 0xF2, 0xF4), 1.0)); 121background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBC, 0xE4, 0xF9), 0.0)); 122background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBC, 0xE4, 0xF9), 0.4)); 123background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x8D, 0xD6, 0xF7), 0.4)); 124background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x8A, 0xD1, 0xF5), 1.0)); 128background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0xF7, 0xFF), 0.0)); 129background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0xF7, 0xFF), 0.4)); 130background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBD, 0xED, 0xFF), 0.4)); 131background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB7, 0xE7, 0xFB), 1.0)); 135background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF2, 0xF9, 0xFC), 0.0)); 136background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF2, 0xF9, 0xFC), 0.4)); 137background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE1, 0xF1, 0xF9), 0.4)); 138background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xD8, 0xEC, 0xF6), 1.0)); 192lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF2, 0xF2, 0xF2), 0.0)); 193lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEF, 0xEF, 0xEF), 0.4)); 194lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE7, 0xE8, 0xEA), 0.4)); 195lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDE, 0xDF, 0xE1), 1.0)); 199lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x7A, 0x9E, 0xB1), 0.0)); 200lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x7A, 0x9E, 0xB1), 0.4)); 201lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x50, 0x91, 0xAF), 0.4)); 202lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x4D, 0x8D, 0xAD), 1.0)); 206lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x88, 0xCB, 0xEB), 0.0)); 207lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x88, 0xCB, 0xEB), 0.4)); 208lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x69, 0xBB, 0xE3), 0.4)); 209lgBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x69, 0xBB, 0xE3), 1.0)); 213sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9)); 239topBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x86, 0xA3, 0xB2), 0.0)); 240topBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x86, 0xA3, 0xB2), 0.1)); 241topBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xAA, 0xCE, 0xE1), 0.9)); 242topBrush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xAA, 0xCE, 0xE1), 1.0)); 258pressedBevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA2, 0xCB, 0xE0), 0.0)); 259pressedBevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA2, 0xCB, 0xE0), 0.4)); 260pressedBevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x72, 0xBC, 0xDF), 0.4)); 261pressedBevel.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x6E, 0xB8, 0xDC), 1.0)); 294bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xD5, 0xD5, 0xD5)); 298bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x93, 0xC9, 0xE3)); 302bottomBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x96, 0xD9, 0xF9)); 371arrowBorder.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x3C, 0x5E, 0x72), 0.0)); 372arrowBorder.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x3C, 0x5E, 0x72), 0.1)); 373arrowBorder.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC3, 0xE4, 0xF5), 1.0)); 388arrowFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x61, 0x96, 0xB6), 0.0)); 389arrowFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x61, 0x96, 0xB6), 0.1)); 390arrowFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCA, 0xE6, 0xF5), 1.0));
Microsoft\Windows\Themes\ListBoxChrome.cs (8)
509SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xF4, 0xF4, 0xF4)); 543brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x57, 0x94, 0xBF), 0.05)); 544brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB7, 0xD5, 0xEA), 0.07)); 545brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC7, 0xE2, 0xF1), 1)); 580brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x3D, 0x7B, 0xAD), 0.05)); 581brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA4, 0xC9, 0xE3), 0.07)); 582brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB7, 0xD9, 0xED), 1)); 608Brush = new SolidColorBrush(Color.FromRgb(0xAD, 0xB2, 0xB5))
Microsoft\Windows\Themes\ScrollChrome.cs (86)
130ColorAnimation ca = new ColorAnimation(Color.FromRgb(0x21, 0x21, 0x21), duration); 132ca = new ColorAnimation(Color.FromRgb(0x57, 0x57, 0x57), duration); 134ca = new ColorAnimation(Color.FromRgb(0xB3, 0xB3, 0xB3), duration); 251ColorAnimation ca = new ColorAnimation(Color.FromRgb(0x3C, 0x7F, 0xB1), duration); 254ca = new ColorAnimation(Color.FromRgb(0xE3, 0xF4, 0xFC), duration); 257ca = new ColorAnimation(Color.FromRgb(0xD6, 0xEE, 0xFB), duration); 260ca = new ColorAnimation(Color.FromRgb(0xA9, 0xDB, 0xF6), duration); 263ca = new ColorAnimation(Color.FromRgb(0xA4, 0xD5, 0xEF), duration); 270ca = new ColorAnimation(Color.FromRgb(0x15, 0x30, 0x3E), duration); 273ca = new ColorAnimation(Color.FromRgb(0x3C, 0x7F, 0xB1), duration); 276ca = new ColorAnimation(Color.FromRgb(0x9C, 0xCE, 0xE9), duration); 281ca = new ColorAnimation(Color.FromRgb(0x0D, 0x2A, 0x3A), duration); 284ca = new ColorAnimation(Color.FromRgb(0x1F, 0x63, 0x8A), duration); 287ca = new ColorAnimation(Color.FromRgb(0x2E, 0x97, 0xCF), duration); 328ColorAnimation ca = new ColorAnimation(Color.FromRgb(0x15, 0x59, 0x8A), duration); 331ca = new ColorAnimation(Color.FromRgb(0xCA, 0xEC, 0xF9), duration); 334ca = new ColorAnimation(Color.FromRgb(0xAF, 0xE1, 0xF7), duration); 337ca = new ColorAnimation(Color.FromRgb(0x6F, 0xCA, 0xF0), duration); 340ca = new ColorAnimation(Color.FromRgb(0x66, 0xBA, 0xDD), duration); 347ca = new ColorAnimation(Color.FromRgb(0x0F, 0x24, 0x30), duration); 350ca = new ColorAnimation(Color.FromRgb(0x2E, 0x73, 0x97), duration); 353ca = new ColorAnimation(Color.FromRgb(0x8F, 0xB8, 0xCE), duration); 359ca = new ColorAnimation(Color.FromRgb(0x0E, 0x22, 0x2D), duration); 362ca = new ColorAnimation(Color.FromRgb(0x2F, 0x79, 0x9E), duration); 365ca = new ColorAnimation(Color.FromRgb(0x6B, 0xA0, 0xBC), duration); 830temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xF3, 0xF3, 0xF3), 0)); 831temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE8, 0xE8, 0xE9), 0.5)); 832temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xD6, 0xD6, 0xD8), 0.5)); 833temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xBC, 0xBD, 0xC0), 1)); 862temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE3, 0xF4, 0xFC), 0)); 863temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xD6, 0xEE, 0xFB), 0.5)); 864temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xA9, 0xDB, 0xF6), 0.5)); 865temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xA4, 0xD5, 0xEF), 1)); 892temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCA, 0xEC, 0xF9), 0)); 893temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xAF, 0xE1, 0xF7), 0.5)); 894temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x6F, 0xCA, 0xF0), 0.5)); 895temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x66, 0xBA, 0xDD), 1)); 923temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xF3, 0xF3, 0xF3), 0)); 924temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE8, 0xE8, 0xE9), 0.5)); 925temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xD6, 0xD6, 0xD8), 0.5)); 926temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xBC, 0xBD, 0xC0), 1)); 953temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xE3, 0xF4, 0xFC), 0)); 954temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xD6, 0xEE, 0xFB), 0.5)); 955temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xA9, 0xDB, 0xF6), 0.5)); 956temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xA4, 0xD5, 0xEF), 1)); 983temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCA, 0xEC, 0xF9), 0)); 984temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xAF, 0xE1, 0xF7), 0.5)); 985temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x6F, 0xCA, 0xF0), 0.5)); 986temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x66, 0xBA, 0xDD), 1)); 1108Brush = new SolidColorBrush(Color.FromRgb(0x95, 0x95, 0x95)) 1134Brush = new SolidColorBrush(Color.FromRgb(0x3C, 0x7F, 0xB1)) 1160Brush = new SolidColorBrush(Color.FromRgb(0x15, 0x59, 0x8A)) 1316Brush = new SolidColorBrush(Color.FromRgb(0xCF, 0xCF, 0xCF)) 1395temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x00, 0x00, 0x00), 0.5)); 1396temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x97, 0x97, 0x97), 0.7)); 1397temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCA, 0xCA, 0xCA), 1)); 1424temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x15, 0x30, 0x3E), 0.5)); 1425temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x3C, 0x7F, 0xB1), 0.7)); 1426temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x9C, 0xCE, 0xE9), 1)); 1453temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0F, 0x24, 0x30), 0.5)); 1454temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2E, 0x73, 0x97), 0.7)); 1455temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x8F, 0xB8, 0xCE), 1)); 1482temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x00, 0x00, 0x00), 0.5)); 1483temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x97, 0x97, 0x97), 0.7)); 1484temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCA, 0xCA, 0xCA), 1)); 1511temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x15, 0x30, 0x3E), 0.5)); 1512temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x3C, 0x7F, 0xB1), 0.7)); 1513temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x9C, 0xCE, 0xE9), 1)); 1540temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0F, 0x24, 0x30), 0.5)); 1541temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2E, 0x73, 0x97), 0.7)); 1542temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x8F, 0xB8, 0xCE), 1)); 1571temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x70, 0x70, 0x70), 0.5)); 1572temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x76, 0x76, 0x76), 0.7)); 1573temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCB, 0xCB, 0xCB), 1)); 1601temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x21, 0x21, 0x21), 0.5)); 1602temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x57, 0x57, 0x57), 0.7)); 1603temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xB3, 0xB3, 0xB3), 1)); 1631temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0D, 0x2A, 0x3A), 0.5)); 1632temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x1F, 0x63, 0x8A), 0.7)); 1633temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2E, 0x97, 0xCF), 1)); 1661temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x0E, 0x22, 0x2D), 0.5)); 1662temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2F, 0x79, 0x9E), 0.7)); 1663temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x6B, 0xA0, 0xBC), 1)); 1751_localResources.Glyph.GradientStops.Add(new GradientStop(Color.FromRgb(0x00, 0x00, 0x00), 0.5)); 1752_localResources.Glyph.GradientStops.Add(new GradientStop(Color.FromRgb(0x97, 0x97, 0x97), 0.7)); 1753_localResources.Glyph.GradientStops.Add(new GradientStop(Color.FromRgb(0xCA, 0xCA, 0xCA), 1));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (9)
34typeof(Color), 37Color.FromArgb(0x71, 0x00, 0x00, 0x00), 44public Color Color 46get { return (Color)GetValue(ColorProperty); } 101Color color = Color; 290private static GradientStopCollection CreateStops(Color c, double cornerRadius) 299Color stopColor = c; 321private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 434private Brush[] GetBrushes(Color c, CornerRadius cornerRadius)
PresentationFramework.AeroLite (23)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (7)
81background.Color = Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF); 85background.Color = Color.FromArgb(0xFF, 0x85, 0xD2, 0xF5); 89background.Color = Color.FromArgb(0xFF, 0xBC, 0xEC, 0xFC); 128sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xDE, 0xDF, 0xE1)); 132sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x4F, 0x90, 0xAE)); 136sideBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x69, 0xBB, 0xE3)); 228arrowFill = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
Microsoft\Windows\Themes\ScrollChrome.cs (7)
280SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xDD, 0xDD, 0xDD)); 300SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xE6, 0xFD)); 320SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xE6, 0xFD)); 369Brush = new SolidColorBrush(Color.FromRgb(0xA3, 0xA3, 0xA3)) 395Brush = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0xC4)) 421Brush = new SolidColorBrush(Color.FromRgb(0x00, 0x73, 0x94)) 468SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (9)
34typeof(Color), 37Color.FromArgb(0x71, 0x00, 0x00, 0x00), 44public Color Color 46get { return (Color)GetValue(ColorProperty); } 101Color color = Color; 290private static GradientStopCollection CreateStops(Color c, double cornerRadius) 299Color stopColor = c; 321private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 434private Brush[] GetBrushes(Color c, CornerRadius cornerRadius)
PresentationFramework.Classic (19)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
177public RgbColor(Color color) 182public Color Color 184get { return Color.FromArgb(this.Alpha, (byte)(this.Red * 255), (byte)(this.Green * 255), (byte)(this.Blue * 255)); } 382private static Color GetControlLightLightColor(Color controlColor) 391private static Color GetControlDarkColor(Color controlColor) 404Color controlColor; 430Color darkColor = GetControlDarkColor(controlColor); 434Color darkDarkColor = new Color
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (9)
34typeof(Color), 37Color.FromArgb(0x71, 0x00, 0x00, 0x00), 44public Color Color 46get { return (Color)GetValue(ColorProperty); } 101Color color = Color; 290private static GradientStopCollection CreateStops(Color c, double cornerRadius) 299Color stopColor = c; 321private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 434private Brush[] GetBrushes(Color c, CornerRadius cornerRadius)
PresentationFramework.Fluent (1)
Controls\FallbackBrushConverter.cs (1)
20if (value is Color color)
PresentationFramework.Luna (255)
Microsoft\Windows\Themes\ButtonChrome.cs (61)
554SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xC9, 0xC7, 0xBA)); 578SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xCA, 0xC4, 0xB8)); 603SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xC4, 0xC3, 0xBF)); 710brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x20,0x00,0x00,0x00), 0)); 711brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0xFF,0xFF,0xFF), 0.5)); 712brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x80,0xFF,0xFF,0xFF), 1)); 752brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCE, 0xE7, 0xFF), 0)); 753brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBC, 0xD4, 0xF6), 0.3)); 754brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x89, 0xAD, 0xE4), 0.97)); 755brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x69, 0x82, 0xEE), 1)); 785brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC2, 0xD1, 0x8F), 0)); 786brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB1, 0xCB, 0x80), 0.3)); 787brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x90, 0xC1, 0x54), 0.97)); 788brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA8, 0xA7, 0x66), 1)); 818brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCE, 0xE7, 0xFF), 0)); 819brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBC, 0xD4, 0xF6), 0.3)); 820brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x89, 0xAD, 0xE4), 0.97)); 821brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x69, 0x82, 0xEE), 1)); 851brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xF0, 0xCF), 0)); 852brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFC, 0xD2, 0x79), 0.03)); 853brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF8, 0xB7, 0x3B), 0.75)); 854brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE5, 0x97, 0x00), 1)); 884brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFC, 0xC5, 0x95), 0)); 885brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xED, 0xBD, 0x96), 0.03)); 886brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0x91, 0x4F), 0.97)); 887brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCF, 0x72, 0x25), 1)); 918brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xF0, 0xCF), 0)); 919brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFC, 0xD2, 0x79), 0.03)); 920brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF8, 0xB7, 0x3B), 0.75)); 921brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE5, 0x97, 0x00), 1)); 986temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0xFF,0xFF,0xFF), 0.5)); 987temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x35,0x59,0x2F,0x00), 1)); 1014temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), 0.5)); 1015temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0xD1, 0xB8), 1)); 1042temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xE3, 0xD1, 0xB8), 0.5)); 1043temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0xD1, 0xB8), 1)); 1070temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), 0.6)); 1071temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 1)); 1116temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0x59,0x2F,0x00), 0.5)); 1117temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x28,0x59,0x2F,0x00), 1)); 1144temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xE3, 0xD1, 0xB8), 0.5)); 1145temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0xD1, 0xB8), 1)); 1172temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0x59, 0x2F, 0x00), 0.5)); 1173temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x28, 0x59, 0x2F, 0x00), 1)); 1217temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF,0x97,0x8B,0x72), 1)); 1218temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0xFF,0xFF,0xFF), 0.6)); 1257temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF,0xAA,0x9D,0x87), 1)); 1258temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0xFF,0xFF,0xFF), 0.6)); 1292SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF5, 0xF4, 0xEA)); 1313SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF6, 0xF2, 0xE9)); 1334SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xF1, 0xF1, 0xED)); 1361temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE6, 0xE6, 0xE0), 0)); 1362temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE2, 0xE2, 0xDA), 1)); 1389temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEE, 0xE9, 0xD5), 0)); 1390temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xE4, 0xCE), 1)); 1417temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0)); 1418temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0xE5, 0xF0), 0.7)); 1419temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC6, 0xC5, 0xD7), 1)); 1446temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB3, 0xB2, 0xC5), 0)); 1447temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDA, 0xDB, 0xE5), 0.6)); 1448temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.8));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (33)
117background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB9, 0xB9, 0xC8), 0.0)); 118background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xEC, 0xF3), 0.1)); 119background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xEC, 0xF3), 1.0)); 123background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC1, 0xC2, 0xB8), 0.0)); 124background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDE, 0xDF, 0xD8), 0.1)); 125background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDE, 0xDF, 0xD8), 1.0)); 132background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFE, 0xFE, 0xFE), 0.0)); 133background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFE, 0xFE, 0xFE), 0.85)); 134background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBD, 0xBE, 0xCE), 1.0)); 138background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFA, 0xF9, 0xF4), 0.0)); 139background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFA, 0xF9, 0xF4), 0.85)); 140background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xE9, 0xD8), 1.0)); 147background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF9, 0xFA, 0xFD), 0.0)); 148background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF9, 0xFA, 0xFD), 0.85)); 149background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBD, 0xBE, 0xCE), 1.0)); 153background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEB, 0xEA, 0xDB), 0.0)); 154background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEB, 0xEA, 0xDB), 0.85)); 155background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCB, 0xC7, 0xB8), 1.0)); 203SolidColorBrush tabStrokeBrush = new SolidColorBrush((themeColor == ThemeColor.Homestead) ? Color.FromArgb(0xFF, 0xCF, 0x72, 0x25) : Color.FromArgb(0xFF, 0xF8, 0xA9, 0x00)); 222tabFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0x91, 0x4F), 0.0)); 223tabFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0x91, 0x4F), 1.0)); 227tabFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFC, 0xE0, 0xA6), 0.0)); 228tabFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF6, 0xC4, 0x56), 0.1)); 229tabFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF6, 0xC4, 0x56), 0.9)); 230tabFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDF, 0x97, 0x00), 1.0)); 248border = new SolidColorBrush((themeColor == ThemeColor.Metallic) ? Color.FromArgb(0xFF, 0x80, 0x80, 0x99) : Color.FromArgb(0xFF, 0xA5, 0xA5, 0x97)); 278Color highlight = Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF); 279Color shadow = Color.FromArgb(0xFF, 0xC7, 0xC5, 0xB2); 358arrowFill = new SolidColorBrush(Color.FromArgb(0xFF, 0xAC, 0xA8, 0x99));
Microsoft\Windows\Themes\ScrollChrome.cs (133)
671temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE1, 0xEA, 0xFE), 0)); 672temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC3, 0xD3, 0xFD), 0.3)); 673temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC3, 0xD3, 0xFD), 0.6)); 674temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBB, 0xCD, 0xF9), 1)); 701temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC9, 0xD8, 0xFC), 0)); 702temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC2, 0xD3, 0xFC), 0.65)); 703temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB6, 0xCD, 0xFB), 1)); 730temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC9, 0xD8, 0xFC), 0)); 731temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC2, 0xD3, 0xFC), 0.65)); 732temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB6, 0xCD, 0xFB), 1)); 759temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFD, 0xFF, 0xFF), 0)); 760temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE2, 0xF3, 0xFD), 0.25)); 761temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB9, 0xDA, 0xFB), 1)); 788temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDA, 0xE9, 0xFF), 0)); 789temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xD4, 0xE6, 0xFF), 0.65)); 790temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCA, 0xE0, 0xFF), 1)); 818temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDA, 0xE9, 0xFF), 0)); 819temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xD4, 0xE6, 0xFF), 0.65)); 820temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCA, 0xE0, 0xFF), 1)); 847temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x6E, 0x8E, 0xF1), 0)); 848temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x80, 0x9D, 0xF1), 0.3)); 849temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xAF, 0xBF, 0xED), 0.7)); 850temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xD2, 0xDE, 0xEB), 1)); 877temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA8, 0xBE, 0xF5), 0)); 878temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA1, 0xBD, 0xFA), 0.65)); 879temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x98, 0xB0, 0xEE), 1)); 906temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA8, 0xBE, 0xF5), 0)); 907temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA1, 0xBD, 0xFA), 0.65)); 908temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x98, 0xB0, 0xEE), 1)); 935temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA2, 0xB3, 0x8D), 0)); 936temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA5, 0xB7, 0x8E), 0.25)); 937temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA5, 0xB7, 0x8E), 0.4)); 938temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x95, 0xA7, 0x75), .82)); 965temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA2, 0xB3, 0x8D), 0)); 966temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA5, 0xB7, 0x8E), 0.25)); 967temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA5, 0xB7, 0x8E), 0.4)); 968temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x95, 0xA7, 0x75), .82)); 995temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCA, 0xD7, 0xA7), 0)); 996temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCB, 0xD9, 0xA9), 0.25)); 997temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCB, 0xD9, 0xA9), 0.4)); 998temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC3, 0xD0, 0x96), .82)); 1026temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCA, 0xD7, 0xA7), 0)); 1027temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCB, 0xD9, 0xA9), 0.25)); 1028temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCB, 0xD9, 0xA9), 0.4)); 1029temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC3, 0xD0, 0x96), .82)); 1056temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x92, 0xA4, 0x7A), 0)); 1057temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x9A, 0xAD, 0x80), 0.25)); 1058temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x9A, 0xAD, 0x80), 0.4)); 1059temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x95, 0xAA, 0x72), 0.8)); 1086temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x92, 0xA4, 0x7A), 0)); 1087temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x9A, 0xAD, 0x80), 0.25)); 1088temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x9A, 0xAD, 0x80), 0.4)); 1089temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x95, 0xAA, 0x72), 0.8)); 1116temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0)); 1117temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE9, 0xE9, 0xEE), 0.25)); 1118temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE9, 0xE9, 0xEE), 0.4)); 1119temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDB, 0xDB, 0xE6), 0.6)); 1120temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC7, 0xC8, 0xD6), 0.9)); 1147temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0)); 1148temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE9, 0xE9, 0xEE), 0.25)); 1149temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE9, 0xE9, 0xEE), 0.4)); 1150temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDB, 0xDB, 0xE6), 0.6)); 1151temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC7, 0xC8, 0xD6), 0.9)); 1180temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.18)); 1181temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xED, 0xF4), 0.3)); 1182temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xED, 0xF4), 0.45)); 1183temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDC, 0xDD, 0xE8), 0.6)); 1184temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC3, 0xC5, 0xD6), 1)); 1211temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.18)); 1212temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xED, 0xF4), 0.3)); 1213temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xED, 0xF4), 0.45)); 1214temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDC, 0xDD, 0xE8), 0.6)); 1215temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC3, 0xC5, 0xD6), 1)); 1243temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.12)); 1244temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC3, 0xC5, 0xD6), 0.12)); 1245temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDC, 0xDD, 0xE8), 0.48)); 1246temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xED, 0xF4), 0.58)); 1247temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xED, 0xF4), 0.7)); 1248temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.9)); 1275temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.12)); 1276temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC3, 0xC5, 0xD6), 0.12)); 1277temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDC, 0xDD, 0xE8), 0.48)); 1278temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xED, 0xF4), 0.58)); 1279temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xED, 0xF4), 0.7)); 1280temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.9)); 1307temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF7, 0xF7, 0xF7), 0)); 1308temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF0, 0xF0, 0xF0), 0.3)); 1309temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xEC, 0xEC), 0.6)); 1310temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0xE3, 0xE3), 1)); 1433SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xC9, 0xC9, 0xC2)); 1454SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x4D, 0x61, 0x85)); 1483SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x3F, 0x3D, 0x3D)); 1504SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x20, 0x20, 0x20)); 1525SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xEE, 0xF4, 0xFE)); 1546SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFC, 0xFD, 0xFF)); 1567SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xCF, 0xDD, 0xFD)); 1588SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xD0, 0xDF, 0xAC)); 1609SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xEB, 0xF5, 0xD4)); 1630SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xD0, 0x97)); 1651SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 1727SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xB9, 0xB2)); 1748SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8C, 0xB0, 0xF8)); 1769SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x9C, 0xC5, 0xFF)); 1790SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x9E, 0xD8)); 1811SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8C, 0x9D, 0x73)); 1832SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB6, 0xC6, 0x8E)); 1853SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x7A, 0x8B, 0x63)); 1874SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x8E, 0x95, 0xA2)); 1938Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 1962Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 1986Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x94, 0x95, 0xA2)) 2010Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x5B, 0x66, 0x65)) 2034Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x43, 0x48, 0x48)) 2093Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xE8, 0xE8, 0xDF)) 2117Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xB4, 0xC8, 0xF6)) 2143Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x98, 0xB1, 0xE4)) 2167Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xAC, 0xCE, 0xFF)) 2191Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x8F, 0xDA)) 2215Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x8E, 0x99, 0x7D)) 2239Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xBD, 0xCB, 0x96)) 2264Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x7A, 0x8B, 0x63)) 2288Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 2312Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 2337Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)) 2415brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xCC, 0xCC, 0xBA), 0)); 2416brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCC, 0xCC, 0xBA), 0.5)); 2417brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC4, 0xC4, 0xAF), 1)); 2449brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xA0, 0xB5, 0xD3), 0)); 2450brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA0, 0xB5, 0xD3), 0.5)); 2451brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x7C, 0x9F, 0xD3), 1)); 2483brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xB6, 0xC1, 0xA6), 0)); 2484brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x9B, 0xB1, 0x81), 0.5)); 2485brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x8B, 0x93, 0x77), 1));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (19)
541SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0x21)); 561SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x1A, 0x7E, 0x18)); 587temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x60, 0xCF, 0x5D), 0)); 588temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xAC, 0xEF, 0xAA), 0.302469134)); 589temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x13, 0x92, 0x10), 1)); 611temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xB2, 0xB2, 0xA9), 0)); 612temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xEB, 0xEA, 0xDA), 1)); 641SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xCA, 0xC8, 0xBB)); 710brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xFF, 0xF0, 0xCF), 0)); 711brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xF8, 0xB3, 0x30), 1)); 744brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xFE, 0xDF, 0x9C), 0)); 745brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xF9, 0xBB, 0x43), 1)); 795temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCB, 0xCF, 0xD5), 0.3)); 796temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xF6, 0xF6, 0xF6), 1)); 825temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2F, 0xA8, 0xD5), 0)); 826temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x25, 0x59, 0x8C), 1)); 848SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x73, 0xC2, 0x73)); 876temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x17, 0x74, 0x7A), 0)); 877temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x21, 0x8B, 0xC3), 1));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (9)
34typeof(Color), 37Color.FromArgb(0x71, 0x00, 0x00, 0x00), 44public Color Color 46get { return (Color)GetValue(ColorProperty); } 101Color color = Color; 290private static GradientStopCollection CreateStops(Color c, double cornerRadius) 299Color stopColor = c; 321private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 434private Brush[] GetBrushes(Color c, CornerRadius cornerRadius)
PresentationFramework.Royale (101)
Microsoft\Windows\Themes\ButtonChrome.cs (28)
469SolidColorBrush brush = new SolidColorBrush(Color.FromArgb(0xFF,0xC6,0xC5,0xC9)); 569brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x20,0x00,0x00,0x00), 0)); 570brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0xFF,0xFF,0xFF), 0.5)); 571brush.GradientStops.Add(new GradientStop(Color.FromArgb(0x80,0xFF,0xFF,0xFF), 1)); 611brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xCE, 0xE7, 0xFF), 0)); 612brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBC, 0xD4, 0xF6), 0.3)); 613brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x89, 0xAD, 0xE4), 0.97)); 614brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0x69, 0x82, 0xEE), 1)); 645brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xF0, 0xCF), 0)); 646brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFC, 0xD2, 0x79), 0.03)); 647brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF8, 0xB7, 0x3B), 0.75)); 648brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE5, 0x97, 0x00), 1)); 700temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0xFF,0xFF,0xFF), 0.5)); 701temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x35,0x59,0x2F,0x00), 1)); 728temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00, 0xFF, 0xFF, 0xFF), 0.6)); 729temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 1)); 769temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0xFF,0xFF,0xFF), 0.5)); 770temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF,0xFF,0xFF,0xFF), 1)); 809temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF,0x97,0x8B,0x72), 1)); 810temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0xFF,0xFF,0xFF), 0.6)); 849temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF,0xFF,0xFF,0xFF), 1)); 850temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0xFF,0xFF,0xFF), 0.5)); 877temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF,0xAA,0x9D,0x87), 1)); 878temp.GradientStops.Add(new GradientStop(Color.FromArgb(0x00,0xFF,0xFF,0xFF), 0.6)); 928temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0)); 929temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE3, 0xEB, 0xF3), 0.5)); 930temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xD0, 0xDC, 0xEB), 0.5)); 931temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xA6, 0xB8, 0xCF), 1));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (20)
71background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB9, 0xB9, 0xC8), 0.0)); 72background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xEC, 0xF3), 0.1)); 73background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xEC, 0xEC, 0xF3), 1.0)); 77background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFE, 0xFE, 0xFE), 0.0)); 78background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFE, 0xFE, 0xFE), 0.85)); 79background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBD, 0xBE, 0xCE), 1.0)); 83background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF9, 0xFA, 0xFD), 0.0)); 84background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF9, 0xFA, 0xFD), 0.85)); 85background.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBD, 0xBE, 0xCE), 1.0)); 132SolidColorBrush tabStrokeBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xF8, 0xA9, 0x00)); 150tabFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFC, 0xE0, 0xA6), 0.0)); 151tabFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF6, 0xC4, 0x56), 0.1)); 152tabFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF6, 0xC4, 0x56), 0.9)); 153tabFill.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xDF, 0x97, 0x00), 1.0)); 170border = new SolidColorBrush(Color.FromArgb(0xFF, 0x80, 0x80, 0x99)); 200Color highlight = Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF); 201Color shadow = Color.FromArgb(0xFF, 0xC7, 0xC5, 0xB2); 280arrowFill = new SolidColorBrush(Color.FromArgb(0xFF, 0xAC, 0xA8, 0x99));
Microsoft\Windows\Themes\ScrollChrome.cs (25)
629temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0)); 630temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBD, 0xD1, 0xE9), 0.8)); 657temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0)); 658temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC1, 0xD5, 0xED), 0.7)); 686temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.2)); 687temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xBD, 0xD1, 0xE9), 1)); 714temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.3)); 715temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC1, 0xD5, 0xED), 1)); 742temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.2)); 743temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC1, 0xD5, 0xED), 0.7)); 770temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF), 0.3)); 771temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xC1, 0xD5, 0xED), 0.7)); 798temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xF2, 0xF7, 0xFF), 0)); 799temp.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xD5, 0xE7, 0xFF), 1)); 852SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB7, 0xCB, 0xE3)); 874SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x5B, 0x64, 0x73)); 895SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x6B, 0x7B, 0x84)); 916SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); 963SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0xB9, 0xB9, 0xB2)); 984SolidColorBrush temp = new SolidColorBrush(Color.FromArgb(0xFF, 0x83, 0x97, 0xAF)); 1030brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xE1, 0xEE, 0xFF), 0.5)); 1031brush.GradientStops.Add(new GradientStop(Color.FromArgb(0xFF, 0xB1, 0xC5, 0xDD), 1)); 1056Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x85, 0x99, 0xB1)) 1080Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0x52, 0x66, 0x7E)) 1120Brush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF))
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (19)
541SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x21, 0xA1, 0x21)); 561SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x1A, 0x7E, 0x18)); 587temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x60, 0xCF, 0x5D), 0)); 588temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xAC, 0xEF, 0xAA), 0.302469134)); 589temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x13, 0x92, 0x10), 1)); 611temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xB2, 0xB2, 0xA9), 0)); 612temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xEB, 0xEA, 0xDA), 1)); 641SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0xCA, 0xC8, 0xBB)); 710brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xFF, 0xF0, 0xCF), 0)); 711brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xF8, 0xB3, 0x30), 1)); 744brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xFE, 0xDF, 0x9C), 0)); 745brush.GradientStops.Add(new GradientStop(Color.FromRgb(0xF9, 0xBB, 0x43), 1)); 795temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xCB, 0xCF, 0xD5), 0.3)); 796temp.GradientStops.Add(new GradientStop(Color.FromRgb(0xF6, 0xF6, 0xF6), 1)); 825temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x2F, 0xA8, 0xD5), 0)); 826temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x25, 0x59, 0x8C), 1)); 848SolidColorBrush temp = new SolidColorBrush(Color.FromRgb(0x73, 0xC2, 0x73)); 876temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x17, 0x74, 0x7A), 0)); 877temp.GradientStops.Add(new GradientStop(Color.FromRgb(0x21, 0x8B, 0xC3), 1));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (9)
34typeof(Color), 37Color.FromArgb(0x71, 0x00, 0x00, 0x00), 44public Color Color 46get { return (Color)GetValue(ColorProperty); } 101Color color = Color; 290private static GradientStopCollection CreateStops(Color c, double cornerRadius) 299Color stopColor = c; 321private static Brush[] CreateBrushes(Color c, CornerRadius cornerRadius) 434private Brush[] GetBrushes(Color c, CornerRadius cornerRadius)
ReachFramework (72)
AlphaFlattener\BrushProxy.cs (41)
1158Color c = scb.Color; 1760private BrushProxy BlendImage(Color color, bool pre) 1783private BrushProxy BlendDrawingBrush(Color color, bool after) 1816private BrushProxy BlendTileBrush(Color color, bool pre) 1835private BrushProxy BlendComplexColor(Color color, bool pre) 1858private Color BlendStopColor(Color color, Color stopColor, bool pre) 1860Color result; 1966private BrushProxy BlendGradient(Color color, bool pre, ColorInterpolationMode interpolationMode) 1995Color color0 = stop0.Color; 1996Color color1 = stop1.Color; 2026Color c = BlendStopColor(color, gs.Color, pre); 2045Color prevColor = Utility.NormalizeColor(prevStop.Color); 2048Color currentColor; 2072Color blend; 2076blend = Color.FromScRgb( 2085blend = Color.FromArgb( 2608Color c = sb.Color; 2625Color c = sb.Color; 2712public static BrushProxy CreateColorBrush(Color color) 2949Color c = gsc[0].Color; 2958if (!Color.AreClose(c, gs.Color)) 3224public static BrushProxy BlendColorWithBrush(bool opacityOnly, Color colorA, BrushProxy brushB, bool reverse) 3394public Color BeforeFill 3408public Color AfterFill 3512s_EmptyBrush = new BrushProxy(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0))); 3538private Color _beforeDrawing = Color.FromArgb(0, 0, 0, 0); 3539private Color _afterDrawing = Color.FromArgb(0, 0, 0, 0); 3654public MyColor(Color c, ColorInterpolationMode ciMode) 3678public Color ToColor(ColorInterpolationMode ciMode) 3682return Color.FromScRgb(m_a, m_r, m_g, m_b); 3686return Color.FromArgb(Utility.OpacityToByte(m_a), Utility.ColorToByte(m_r), Utility.ColorToByte(m_g), Utility.ColorToByte(m_b)); 3775public Color GetInvalidGradientColor() 3780public Color GetColor(int i, int steps) 3786return Color.FromArgb(0, 255, 255, 255); // transparent white 3851return Color.FromArgb(0, 255, 255, 255); 4059public Geometry GetSlice(int i, out Color color) 4286public Geometry GetSlice(int i, out Color color)
AlphaFlattener\DrawingContext.cs (2)
277Color color; 402Color color;
AlphaFlattener\ImageProxy.cs (4)
235public void BlendUnderColor(Color color, double opacity, bool opacityOnly) 241public void BlendOverColor(Color color, double opacity, bool opacityOnly) 330IList<System.Windows.Media.Color> palColor = palette.Colors; 334foreach (Color c in palColor)
AlphaFlattener\Utility.cs (12)
1140public static Color BlendColor(Color x, Color y) 1156return Color.FromArgb(0, 255, 255, 255); // transparent white 1163Color ret = Color.FromArgb((Byte)(d / 255), red, green, blue); 1175public static Color Scale(Color color, double opacity) 1222public static void BlendOverColor(byte[] pixels, int count, Color colorX, double opacity, bool opacityOnly) 1280public static void BlendUnderColor(byte[] pixels, int count, Color colorY, double opacity, bool opacityOnly) 2293public static Color NormalizeColor(Color color)
Serialization\ColorTypeConverter.cs (2)
149Color color = (Color)value;
Serialization\Manager\XpsOMSerializationManager.cs (2)
217else if (typeof(Color).IsAssignableFrom(serializedObject.GetType())) 249else if (typeof(Color).IsAssignableFrom(serializedObjectType))
Serialization\Manager\XpsSerializationManager.cs (2)
372else if (typeof(Color).IsAssignableFrom(serializedObject.GetType())) 404else if (typeof(Color).IsAssignableFrom(serializedObjectType))
Serialization\VisualSerializer.cs (3)
318protected string ColorToString(Color color) 322TypeConverter converter = _manager.GetTypeConverter(typeof(Color)); 340Color color = Utility.Scale(solidBrush.Color, solidBrush.Opacity);
Serialization\VisualTreeFlattener.cs (4)
34Color color = (Color)value; 239if (typeof(Color).IsAssignableFrom(objType)) 596Color color = colorBrush.Color;
WindowsFormsIntegration (2)
System\Windows\Integration\Convert.cs (1)
321internal static SD.Color ToSystemDrawingColor(SWM.Color color)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
375SWM.Color brushColor;