219 references to SystemColors
Microsoft.VisualStudio.LanguageServices (6)
ChangeSignature\ChangeSignatureDialog.xaml.cs (6)
62
ParameterText = SystemParameters.HighContrast ?
SystemColors
.WindowTextBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0x1E, 0x1E, 0x1E));
63
RemovedParameterText = SystemParameters.HighContrast ?
SystemColors
.WindowTextBrush : new SolidColorBrush(Colors.Gray);
64
DisabledParameterBackground = SystemParameters.HighContrast ?
SystemColors
.WindowBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xDF, 0xE7, 0xF3));
65
DisabledParameterForeground = SystemParameters.HighContrast ?
SystemColors
.GrayTextBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xA2, 0xA4, 0xA5));
66
Members.Background = SystemParameters.HighContrast ?
SystemColors
.WindowBrush : new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF));
67
StrikethroughBrush = SystemParameters.HighContrast ?
SystemColors
.WindowTextBrush : new SolidColorBrush(Colors.Red);
PresentationFramework (194)
MS\Internal\Ink\HighContrastHelper.cs (1)
196
Color windowTextColor =
SystemColors
.WindowTextColor;
System\Windows\Appearance\WindowBackdropManager.cs (1)
117
windowSource.CompositionTarget.BackgroundColor =
SystemColors
.WindowColor;
System\Windows\Controls\Control.cs (1)
146
new FrameworkPropertyMetadata(
SystemColors
.ControlTextBrush,
System\Windows\Controls\DataGridTextColumn.cs (1)
388
new FrameworkPropertyMetadata(
SystemColors
.ControlTextBrush, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent));
System\Windows\Controls\InkCanvas.cs (2)
110
new DynamicResourceExtension(
SystemColors
.WindowBrushKey)));
190
_rtiHighContrastCallback.TurnHighContrastOn(
SystemColors
.WindowTextColor);
System\Windows\Controls\InkPresenter.cs (1)
54
_contrastCallback.TurnHighContrastOn(
SystemColors
.WindowTextColor);
System\Windows\Controls\MenuItem.cs (1)
175
ForegroundProperty.OverrideMetadata(typeof(MenuItem), new FrameworkPropertyMetadata(
SystemColors
.MenuTextBrush));
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1935
Brush selectionBrush = new SolidColorBrush(
SystemColors
.HighlightColor);
1945
Brush selectionTextBrush = new SolidColorBrush(
SystemColors
.HighlightTextColor);
System\Windows\Controls\ScrollViewer.cs (1)
2740
corner.SetResourceReference(Rectangle.FillProperty,
SystemColors
.ControlBrushKey);
System\Windows\Controls\ToolTip.cs (1)
40
BackgroundProperty.OverrideMetadata(typeof(ToolTip), new FrameworkPropertyMetadata(
SystemColors
.InfoBrush));
System\windows\Documents\SelectionHighlightInfo.cs (3)
29
_objectMaskBrush = new SolidColorBrush(
SystemColors
.HighlightColor);
50
return
SystemColors
.HighlightTextBrush;
61
return
SystemColors
.HighlightBrush;
System\windows\Documents\TextSelection.cs (1)
1641
backgroundColor =
SystemColors
.WindowColor;
System\Windows\FluentThemeState.cs (1)
13
AccentColor =
SystemColors
.AccentColor;
System\Windows\Markup\XamlTypeMapper.cs (1)
2891
keyObject = typeof(
SystemColors
);
System\Windows\Shell\WindowChromeWorker.cs (2)
958
_hwndSource.CompositionTarget.BackgroundColor =
SystemColors
.WindowColor;
1154
_hwndSource.CompositionTarget.BackgroundColor =
SystemColors
.WindowColor;
System\Windows\SystemColors.cs (18)
1376
return
SystemColors
.HighlightBrush;
1380
return
SystemColors
.ControlBrush;
1397
return
SystemColors
.HighlightTextBrush;
1401
return
SystemColors
.ControlTextBrush;
1411
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1419
return
SystemColors
.HighlightTextBrush;
1432
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1440
return
SystemColors
.HighlightTextBrush;
1453
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1461
return
SystemColors
.HighlightTextBrush;
1474
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1482
return
SystemColors
.HighlightTextBrush;
1495
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1503
return
SystemColors
.HighlightTextBrush;
1516
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1524
return
SystemColors
.HighlightTextBrush;
1537
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1545
return
SystemColors
.HighlightTextBrush;
System\Windows\SystemKeyConverter.cs (1)
171
return typeof(
SystemColors
);
System\Windows\SystemResourceKey.cs (152)
458
return
SystemColors
.ActiveBorderBrush;
461
return
SystemColors
.ActiveCaptionBrush;
464
return
SystemColors
.ActiveCaptionTextBrush;
467
return
SystemColors
.AppWorkspaceBrush;
470
return
SystemColors
.ControlBrush;
473
return
SystemColors
.ControlDarkBrush;
476
return
SystemColors
.ControlDarkDarkBrush;
479
return
SystemColors
.ControlLightBrush;
482
return
SystemColors
.ControlLightLightBrush;
485
return
SystemColors
.ControlTextBrush;
488
return
SystemColors
.DesktopBrush;
491
return
SystemColors
.GradientActiveCaptionBrush;
494
return
SystemColors
.GradientInactiveCaptionBrush;
497
return
SystemColors
.GrayTextBrush;
500
return
SystemColors
.HighlightBrush;
503
return
SystemColors
.HighlightTextBrush;
506
return
SystemColors
.HotTrackBrush;
509
return
SystemColors
.InactiveBorderBrush;
512
return
SystemColors
.InactiveCaptionBrush;
515
return
SystemColors
.InactiveCaptionTextBrush;
518
return
SystemColors
.InfoBrush;
521
return
SystemColors
.InfoTextBrush;
524
return
SystemColors
.MenuBrush;
527
return
SystemColors
.MenuBarBrush;
530
return
SystemColors
.MenuHighlightBrush;
533
return
SystemColors
.MenuTextBrush;
536
return
SystemColors
.ScrollBarBrush;
539
return
SystemColors
.WindowBrush;
542
return
SystemColors
.WindowFrameBrush;
545
return
SystemColors
.WindowTextBrush;
548
return
SystemColors
.InactiveSelectionHighlightBrush;
551
return
SystemColors
.InactiveSelectionHighlightTextBrush;
554
return
SystemColors
.AccentColorBrush;
557
return
SystemColors
.AccentColorLight1Brush;
560
return
SystemColors
.AccentColorLight2Brush;
563
return
SystemColors
.AccentColorLight3Brush;
566
return
SystemColors
.AccentColorDark1Brush;
569
return
SystemColors
.AccentColorDark2Brush;
572
return
SystemColors
.AccentColorDark3Brush;
575
return
SystemColors
.ActiveBorderColor;
578
return
SystemColors
.ActiveCaptionColor;
581
return
SystemColors
.ActiveCaptionTextColor;
584
return
SystemColors
.AppWorkspaceColor;
587
return
SystemColors
.ControlColor;
590
return
SystemColors
.ControlDarkColor;
593
return
SystemColors
.ControlDarkDarkColor;
596
return
SystemColors
.ControlLightColor;
599
return
SystemColors
.ControlLightLightColor;
602
return
SystemColors
.ControlTextColor;
605
return
SystemColors
.DesktopColor;
608
return
SystemColors
.GradientActiveCaptionColor;
611
return
SystemColors
.GradientInactiveCaptionColor;
614
return
SystemColors
.GrayTextColor;
617
return
SystemColors
.HighlightColor;
620
return
SystemColors
.HighlightTextColor;
623
return
SystemColors
.HotTrackColor;
626
return
SystemColors
.InactiveBorderColor;
629
return
SystemColors
.InactiveCaptionColor;
632
return
SystemColors
.InactiveCaptionTextColor;
635
return
SystemColors
.InfoColor;
638
return
SystemColors
.InfoTextColor;
641
return
SystemColors
.MenuColor;
644
return
SystemColors
.MenuBarColor;
647
return
SystemColors
.MenuHighlightColor;
650
return
SystemColors
.MenuTextColor;
653
return
SystemColors
.ScrollBarColor;
656
return
SystemColors
.WindowColor;
659
return
SystemColors
.WindowFrameColor;
662
return
SystemColors
.WindowTextColor;
665
return
SystemColors
.AccentColor;
668
return
SystemColors
.AccentColorLight1;
671
return
SystemColors
.AccentColorLight2;
674
return
SystemColors
.AccentColorLight3;
677
return
SystemColors
.AccentColorDark1;
680
return
SystemColors
.AccentColorDark2;
683
return
SystemColors
.AccentColorDark3;
1142
return
SystemColors
.ActiveBorderBrushKey;
1145
return
SystemColors
.ActiveCaptionBrushKey;
1148
return
SystemColors
.ActiveCaptionTextBrushKey;
1151
return
SystemColors
.AppWorkspaceBrushKey;
1154
return
SystemColors
.ControlBrushKey;
1157
return
SystemColors
.ControlDarkBrushKey;
1160
return
SystemColors
.ControlDarkDarkBrushKey;
1163
return
SystemColors
.ControlLightBrushKey;
1166
return
SystemColors
.ControlLightLightBrushKey;
1169
return
SystemColors
.ControlTextBrushKey;
1172
return
SystemColors
.DesktopBrushKey;
1175
return
SystemColors
.GradientActiveCaptionBrushKey;
1178
return
SystemColors
.GradientInactiveCaptionBrushKey;
1181
return
SystemColors
.GrayTextBrushKey;
1184
return
SystemColors
.HighlightBrushKey;
1187
return
SystemColors
.HighlightTextBrushKey;
1190
return
SystemColors
.HotTrackBrushKey;
1193
return
SystemColors
.InactiveBorderBrushKey;
1196
return
SystemColors
.InactiveCaptionBrushKey;
1199
return
SystemColors
.InactiveCaptionTextBrushKey;
1202
return
SystemColors
.InfoBrushKey;
1205
return
SystemColors
.InfoTextBrushKey;
1208
return
SystemColors
.MenuBrushKey;
1211
return
SystemColors
.MenuBarBrushKey;
1214
return
SystemColors
.MenuHighlightBrushKey;
1217
return
SystemColors
.MenuTextBrushKey;
1220
return
SystemColors
.ScrollBarBrushKey;
1223
return
SystemColors
.WindowBrushKey;
1226
return
SystemColors
.WindowFrameBrushKey;
1229
return
SystemColors
.WindowTextBrushKey;
1232
return
SystemColors
.InactiveSelectionHighlightBrushKey;
1235
return
SystemColors
.InactiveSelectionHighlightTextBrushKey;
1238
return
SystemColors
.AccentColorBrushKey;
1241
return
SystemColors
.AccentColorLight1BrushKey;
1244
return
SystemColors
.AccentColorLight2BrushKey;
1247
return
SystemColors
.AccentColorLight3BrushKey;
1250
return
SystemColors
.AccentColorDark1BrushKey;
1253
return
SystemColors
.AccentColorDark2BrushKey;
1256
return
SystemColors
.AccentColorDark3BrushKey;
1259
return
SystemColors
.ActiveBorderColorKey;
1262
return
SystemColors
.ActiveCaptionColorKey;
1265
return
SystemColors
.ActiveCaptionTextColorKey;
1268
return
SystemColors
.AppWorkspaceColorKey;
1271
return
SystemColors
.ControlColorKey;
1274
return
SystemColors
.ControlDarkColorKey;
1277
return
SystemColors
.ControlDarkDarkColorKey;
1280
return
SystemColors
.ControlLightColorKey;
1283
return
SystemColors
.ControlLightLightColorKey;
1286
return
SystemColors
.ControlTextColorKey;
1289
return
SystemColors
.DesktopColorKey;
1292
return
SystemColors
.GradientActiveCaptionColorKey;
1295
return
SystemColors
.GradientInactiveCaptionColorKey;
1298
return
SystemColors
.GrayTextColorKey;
1301
return
SystemColors
.HighlightColorKey;
1304
return
SystemColors
.HighlightTextColorKey;
1307
return
SystemColors
.HotTrackColorKey;
1310
return
SystemColors
.InactiveBorderColorKey;
1313
return
SystemColors
.InactiveCaptionColorKey;
1316
return
SystemColors
.InactiveCaptionTextColorKey;
1319
return
SystemColors
.InfoColorKey;
1322
return
SystemColors
.InfoTextColorKey;
1325
return
SystemColors
.MenuColorKey;
1328
return
SystemColors
.MenuBarColorKey;
1331
return
SystemColors
.MenuHighlightColorKey;
1334
return
SystemColors
.MenuTextColorKey;
1337
return
SystemColors
.ScrollBarColorKey;
1340
return
SystemColors
.WindowColorKey;
1343
return
SystemColors
.WindowFrameColorKey;
1346
return
SystemColors
.WindowTextColorKey;
1349
return
SystemColors
.AccentColorKey;
1352
return
SystemColors
.AccentColorLight1Key;
1355
return
SystemColors
.AccentColorLight2Key;
1358
return
SystemColors
.AccentColorLight3Key;
1361
return
SystemColors
.AccentColorDark1Key;
1364
return
SystemColors
.AccentColorDark2Key;
1367
return
SystemColors
.AccentColorDark3Key;
System\Windows\SystemResources.cs (3)
1381
SystemColors
.InvalidateCache();
1392
if (
SystemColors
.InvalidateCache())
1439
if(
SystemColors
.InvalidateCache())
PresentationFramework.AeroLite (1)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
492
return
SystemColors
.GrayTextBrush;
PresentationFramework.Classic (17)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
416
controlBrush != null && (controlColor = controlBrush.Color) !=
SystemColors
.ControlColor && controlColor.A > 0x00)
439
darkDarkColor.R = (byte)((darkColor.R +
SystemColors
.WindowFrameColor.R) / 2);
440
darkDarkColor.G = (byte)((darkColor.G +
SystemColors
.WindowFrameColor.G) / 2);
441
darkDarkColor.B = (byte)((darkColor.B +
SystemColors
.WindowFrameColor.B) / 2);
442
darkDarkColor.A = (byte)((darkColor.A +
SystemColors
.WindowFrameColor.A) / 2);
765
DrawBorder(
SystemColors
.WindowFrameBrush, singleThickness, drawingContext, ref bounds);
1349
return _brushCache != null ? _brushCache.LightBrush :
SystemColors
.ControlLightBrush;
1358
return _brushCache != null ? _brushCache.LightLightBrush :
SystemColors
.ControlLightLightBrush;
1367
return _brushCache != null ? _brushCache.DarkBrush :
SystemColors
.ControlDarkBrush;
1376
return _brushCache != null ? _brushCache.DarkDarkBrush :
SystemColors
.ControlDarkDarkBrush;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (7)
40
SetResourceReference(ControlBrushProperty,
SystemColors
.ControlBrushKey);
55
Brush light =
SystemColors
.ControlLightBrush;
56
Brush dark =
SystemColors
.ControlDarkBrush;
76
darkDarkRight =
SystemColors
.ControlDarkDarkBrush;
94
darkDarkBottom =
SystemColors
.ControlDarkDarkBrush;
191
?
SystemColors
.ControlTextBrush :
SystemColors
.GrayTextBrush;
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
381
static Brush defaultBrush =
SystemColors
.WindowBrush;