219 references to SystemColors
Microsoft.VisualStudio.LanguageServices (6)
ChangeSignature\ChangeSignatureDialog.xaml.cs (6)
63
ParameterText = SystemParameters.HighContrast ?
SystemColors
.WindowTextBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0x1E, 0x1E, 0x1E));
64
RemovedParameterText = SystemParameters.HighContrast ?
SystemColors
.WindowTextBrush : new SolidColorBrush(Colors.Gray);
65
DisabledParameterBackground = SystemParameters.HighContrast ?
SystemColors
.WindowBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xDF, 0xE7, 0xF3));
66
DisabledParameterForeground = SystemParameters.HighContrast ?
SystemColors
.GrayTextBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xA2, 0xA4, 0xA5));
67
Members.Background = SystemParameters.HighContrast ?
SystemColors
.WindowBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF));
68
StrikethroughBrush = SystemParameters.HighContrast ?
SystemColors
.WindowTextBrush : new SolidColorBrush(Colors.Red);
PresentationFramework (194)
MS\Internal\Ink\HighContrastHelper.cs (1)
191
Color windowTextColor =
SystemColors
.WindowTextColor;
System\Windows\Appearance\WindowBackdropManager.cs (1)
119
windowSource.CompositionTarget.BackgroundColor =
SystemColors
.WindowColor;
System\Windows\Controls\Control.cs (1)
136
new FrameworkPropertyMetadata(
SystemColors
.ControlTextBrush,
System\Windows\Controls\DataGridTextColumn.cs (1)
384
new FrameworkPropertyMetadata(
SystemColors
.ControlTextBrush, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent));
System\Windows\Controls\InkCanvas.cs (2)
97
new DynamicResourceExtension(
SystemColors
.WindowBrushKey)));
187
_rtiHighContrastCallback.TurnHighContrastOn(
SystemColors
.WindowTextColor);
System\Windows\Controls\InkPresenter.cs (1)
46
_contrastCallback.TurnHighContrastOn(
SystemColors
.WindowTextColor);
System\Windows\Controls\MenuItem.cs (1)
164
ForegroundProperty.OverrideMetadata(typeof(MenuItem), new FrameworkPropertyMetadata(
SystemColors
.MenuTextBrush));
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1858
Brush selectionBrush = new SolidColorBrush(
SystemColors
.HighlightColor);
1868
Brush selectionTextBrush = new SolidColorBrush(
SystemColors
.HighlightTextColor);
System\Windows\Controls\ScrollViewer.cs (1)
2733
corner.SetResourceReference(Rectangle.FillProperty,
SystemColors
.ControlBrushKey);
System\Windows\Controls\ToolTip.cs (1)
26
BackgroundProperty.OverrideMetadata(typeof(ToolTip), new FrameworkPropertyMetadata(
SystemColors
.InfoBrush));
System\windows\Documents\SelectionHighlightInfo.cs (3)
28
_objectMaskBrush = new SolidColorBrush(
SystemColors
.HighlightColor)
51
return
SystemColors
.HighlightTextBrush;
62
return
SystemColors
.HighlightBrush;
System\windows\Documents\TextSelection.cs (1)
1622
backgroundColor =
SystemColors
.WindowColor;
System\Windows\FluentThemeState.cs (1)
14
AccentColor =
SystemColors
.AccentColor;
System\Windows\Markup\XamlTypeMapper.cs (1)
2886
keyObject = typeof(
SystemColors
);
System\Windows\Shell\WindowChromeWorker.cs (2)
952
_hwndSource.CompositionTarget.BackgroundColor =
SystemColors
.WindowColor;
1148
_hwndSource.CompositionTarget.BackgroundColor =
SystemColors
.WindowColor;
System\Windows\SystemColors.cs (18)
1373
return
SystemColors
.HighlightBrush;
1377
return
SystemColors
.ControlBrush;
1394
return
SystemColors
.HighlightTextBrush;
1398
return
SystemColors
.ControlTextBrush;
1408
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1416
return
SystemColors
.HighlightTextBrush;
1429
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1437
return
SystemColors
.HighlightTextBrush;
1450
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1458
return
SystemColors
.HighlightTextBrush;
1471
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1479
return
SystemColors
.HighlightTextBrush;
1492
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1500
return
SystemColors
.HighlightTextBrush;
1513
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1521
return
SystemColors
.HighlightTextBrush;
1534
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1542
return
SystemColors
.HighlightTextBrush;
System\Windows\SystemKeyConverter.cs (1)
168
return typeof(
SystemColors
);
System\Windows\SystemResourceKey.cs (152)
457
return
SystemColors
.ActiveBorderBrush;
460
return
SystemColors
.ActiveCaptionBrush;
463
return
SystemColors
.ActiveCaptionTextBrush;
466
return
SystemColors
.AppWorkspaceBrush;
469
return
SystemColors
.ControlBrush;
472
return
SystemColors
.ControlDarkBrush;
475
return
SystemColors
.ControlDarkDarkBrush;
478
return
SystemColors
.ControlLightBrush;
481
return
SystemColors
.ControlLightLightBrush;
484
return
SystemColors
.ControlTextBrush;
487
return
SystemColors
.DesktopBrush;
490
return
SystemColors
.GradientActiveCaptionBrush;
493
return
SystemColors
.GradientInactiveCaptionBrush;
496
return
SystemColors
.GrayTextBrush;
499
return
SystemColors
.HighlightBrush;
502
return
SystemColors
.HighlightTextBrush;
505
return
SystemColors
.HotTrackBrush;
508
return
SystemColors
.InactiveBorderBrush;
511
return
SystemColors
.InactiveCaptionBrush;
514
return
SystemColors
.InactiveCaptionTextBrush;
517
return
SystemColors
.InfoBrush;
520
return
SystemColors
.InfoTextBrush;
523
return
SystemColors
.MenuBrush;
526
return
SystemColors
.MenuBarBrush;
529
return
SystemColors
.MenuHighlightBrush;
532
return
SystemColors
.MenuTextBrush;
535
return
SystemColors
.ScrollBarBrush;
538
return
SystemColors
.WindowBrush;
541
return
SystemColors
.WindowFrameBrush;
544
return
SystemColors
.WindowTextBrush;
547
return
SystemColors
.InactiveSelectionHighlightBrush;
550
return
SystemColors
.InactiveSelectionHighlightTextBrush;
553
return
SystemColors
.AccentColorBrush;
556
return
SystemColors
.AccentColorLight1Brush;
559
return
SystemColors
.AccentColorLight2Brush;
562
return
SystemColors
.AccentColorLight3Brush;
565
return
SystemColors
.AccentColorDark1Brush;
568
return
SystemColors
.AccentColorDark2Brush;
571
return
SystemColors
.AccentColorDark3Brush;
574
return
SystemColors
.ActiveBorderColor;
577
return
SystemColors
.ActiveCaptionColor;
580
return
SystemColors
.ActiveCaptionTextColor;
583
return
SystemColors
.AppWorkspaceColor;
586
return
SystemColors
.ControlColor;
589
return
SystemColors
.ControlDarkColor;
592
return
SystemColors
.ControlDarkDarkColor;
595
return
SystemColors
.ControlLightColor;
598
return
SystemColors
.ControlLightLightColor;
601
return
SystemColors
.ControlTextColor;
604
return
SystemColors
.DesktopColor;
607
return
SystemColors
.GradientActiveCaptionColor;
610
return
SystemColors
.GradientInactiveCaptionColor;
613
return
SystemColors
.GrayTextColor;
616
return
SystemColors
.HighlightColor;
619
return
SystemColors
.HighlightTextColor;
622
return
SystemColors
.HotTrackColor;
625
return
SystemColors
.InactiveBorderColor;
628
return
SystemColors
.InactiveCaptionColor;
631
return
SystemColors
.InactiveCaptionTextColor;
634
return
SystemColors
.InfoColor;
637
return
SystemColors
.InfoTextColor;
640
return
SystemColors
.MenuColor;
643
return
SystemColors
.MenuBarColor;
646
return
SystemColors
.MenuHighlightColor;
649
return
SystemColors
.MenuTextColor;
652
return
SystemColors
.ScrollBarColor;
655
return
SystemColors
.WindowColor;
658
return
SystemColors
.WindowFrameColor;
661
return
SystemColors
.WindowTextColor;
664
return
SystemColors
.AccentColor;
667
return
SystemColors
.AccentColorLight1;
670
return
SystemColors
.AccentColorLight2;
673
return
SystemColors
.AccentColorLight3;
676
return
SystemColors
.AccentColorDark1;
679
return
SystemColors
.AccentColorDark2;
682
return
SystemColors
.AccentColorDark3;
1141
return
SystemColors
.ActiveBorderBrushKey;
1144
return
SystemColors
.ActiveCaptionBrushKey;
1147
return
SystemColors
.ActiveCaptionTextBrushKey;
1150
return
SystemColors
.AppWorkspaceBrushKey;
1153
return
SystemColors
.ControlBrushKey;
1156
return
SystemColors
.ControlDarkBrushKey;
1159
return
SystemColors
.ControlDarkDarkBrushKey;
1162
return
SystemColors
.ControlLightBrushKey;
1165
return
SystemColors
.ControlLightLightBrushKey;
1168
return
SystemColors
.ControlTextBrushKey;
1171
return
SystemColors
.DesktopBrushKey;
1174
return
SystemColors
.GradientActiveCaptionBrushKey;
1177
return
SystemColors
.GradientInactiveCaptionBrushKey;
1180
return
SystemColors
.GrayTextBrushKey;
1183
return
SystemColors
.HighlightBrushKey;
1186
return
SystemColors
.HighlightTextBrushKey;
1189
return
SystemColors
.HotTrackBrushKey;
1192
return
SystemColors
.InactiveBorderBrushKey;
1195
return
SystemColors
.InactiveCaptionBrushKey;
1198
return
SystemColors
.InactiveCaptionTextBrushKey;
1201
return
SystemColors
.InfoBrushKey;
1204
return
SystemColors
.InfoTextBrushKey;
1207
return
SystemColors
.MenuBrushKey;
1210
return
SystemColors
.MenuBarBrushKey;
1213
return
SystemColors
.MenuHighlightBrushKey;
1216
return
SystemColors
.MenuTextBrushKey;
1219
return
SystemColors
.ScrollBarBrushKey;
1222
return
SystemColors
.WindowBrushKey;
1225
return
SystemColors
.WindowFrameBrushKey;
1228
return
SystemColors
.WindowTextBrushKey;
1231
return
SystemColors
.InactiveSelectionHighlightBrushKey;
1234
return
SystemColors
.InactiveSelectionHighlightTextBrushKey;
1237
return
SystemColors
.AccentColorBrushKey;
1240
return
SystemColors
.AccentColorLight1BrushKey;
1243
return
SystemColors
.AccentColorLight2BrushKey;
1246
return
SystemColors
.AccentColorLight3BrushKey;
1249
return
SystemColors
.AccentColorDark1BrushKey;
1252
return
SystemColors
.AccentColorDark2BrushKey;
1255
return
SystemColors
.AccentColorDark3BrushKey;
1258
return
SystemColors
.ActiveBorderColorKey;
1261
return
SystemColors
.ActiveCaptionColorKey;
1264
return
SystemColors
.ActiveCaptionTextColorKey;
1267
return
SystemColors
.AppWorkspaceColorKey;
1270
return
SystemColors
.ControlColorKey;
1273
return
SystemColors
.ControlDarkColorKey;
1276
return
SystemColors
.ControlDarkDarkColorKey;
1279
return
SystemColors
.ControlLightColorKey;
1282
return
SystemColors
.ControlLightLightColorKey;
1285
return
SystemColors
.ControlTextColorKey;
1288
return
SystemColors
.DesktopColorKey;
1291
return
SystemColors
.GradientActiveCaptionColorKey;
1294
return
SystemColors
.GradientInactiveCaptionColorKey;
1297
return
SystemColors
.GrayTextColorKey;
1300
return
SystemColors
.HighlightColorKey;
1303
return
SystemColors
.HighlightTextColorKey;
1306
return
SystemColors
.HotTrackColorKey;
1309
return
SystemColors
.InactiveBorderColorKey;
1312
return
SystemColors
.InactiveCaptionColorKey;
1315
return
SystemColors
.InactiveCaptionTextColorKey;
1318
return
SystemColors
.InfoColorKey;
1321
return
SystemColors
.InfoTextColorKey;
1324
return
SystemColors
.MenuColorKey;
1327
return
SystemColors
.MenuBarColorKey;
1330
return
SystemColors
.MenuHighlightColorKey;
1333
return
SystemColors
.MenuTextColorKey;
1336
return
SystemColors
.ScrollBarColorKey;
1339
return
SystemColors
.WindowColorKey;
1342
return
SystemColors
.WindowFrameColorKey;
1345
return
SystemColors
.WindowTextColorKey;
1348
return
SystemColors
.AccentColorKey;
1351
return
SystemColors
.AccentColorLight1Key;
1354
return
SystemColors
.AccentColorLight2Key;
1357
return
SystemColors
.AccentColorLight3Key;
1360
return
SystemColors
.AccentColorDark1Key;
1363
return
SystemColors
.AccentColorDark2Key;
1366
return
SystemColors
.AccentColorDark3Key;
System\Windows\SystemResources.cs (3)
1357
SystemColors
.InvalidateCache();
1368
if (
SystemColors
.InvalidateCache())
1415
if(
SystemColors
.InvalidateCache())
PresentationFramework.AeroLite (1)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
491
return
SystemColors
.GrayTextBrush;
PresentationFramework.Classic (17)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
412
controlBrush != null && (controlColor = controlBrush.Color) !=
SystemColors
.ControlColor && controlColor.A > 0x00)
436
R = (byte)((darkColor.R +
SystemColors
.WindowFrameColor.R) / 2),
437
G = (byte)((darkColor.G +
SystemColors
.WindowFrameColor.G) / 2),
438
B = (byte)((darkColor.B +
SystemColors
.WindowFrameColor.B) / 2),
439
A = (byte)((darkColor.A +
SystemColors
.WindowFrameColor.A) / 2)
763
DrawBorder(
SystemColors
.WindowFrameBrush, singleThickness, drawingContext, ref bounds);
1353
return _brushCache != null ? _brushCache.LightBrush :
SystemColors
.ControlLightBrush;
1362
return _brushCache != null ? _brushCache.LightLightBrush :
SystemColors
.ControlLightLightBrush;
1371
return _brushCache != null ? _brushCache.DarkBrush :
SystemColors
.ControlDarkBrush;
1380
return _brushCache != null ? _brushCache.DarkDarkBrush :
SystemColors
.ControlDarkDarkBrush;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (7)
35
SetResourceReference(ControlBrushProperty,
SystemColors
.ControlBrushKey);
50
Brush light =
SystemColors
.ControlLightBrush;
51
Brush dark =
SystemColors
.ControlDarkBrush;
71
darkDarkRight =
SystemColors
.ControlDarkDarkBrush;
89
darkDarkBottom =
SystemColors
.ControlDarkDarkBrush;
186
?
SystemColors
.ControlTextBrush :
SystemColors
.GrayTextBrush;
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
372
private static Brush defaultBrush =
SystemColors
.WindowBrush;