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)
192
Color windowTextColor =
SystemColors
.WindowTextColor;
System\Windows\Appearance\WindowBackdropManager.cs (1)
116
windowSource.CompositionTarget.BackgroundColor =
SystemColors
.WindowColor;
System\Windows\Controls\Control.cs (1)
137
new FrameworkPropertyMetadata(
SystemColors
.ControlTextBrush,
System\Windows\Controls\DataGridTextColumn.cs (1)
385
new FrameworkPropertyMetadata(
SystemColors
.ControlTextBrush, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent));
System\Windows\Controls\InkCanvas.cs (2)
98
new DynamicResourceExtension(
SystemColors
.WindowBrushKey)));
178
_rtiHighContrastCallback.TurnHighContrastOn(
SystemColors
.WindowTextColor);
System\Windows\Controls\InkPresenter.cs (1)
47
_contrastCallback.TurnHighContrastOn(
SystemColors
.WindowTextColor);
System\Windows\Controls\MenuItem.cs (1)
165
ForegroundProperty.OverrideMetadata(typeof(MenuItem), new FrameworkPropertyMetadata(
SystemColors
.MenuTextBrush));
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1926
Brush selectionBrush = new SolidColorBrush(
SystemColors
.HighlightColor);
1936
Brush selectionTextBrush = new SolidColorBrush(
SystemColors
.HighlightTextColor);
System\Windows\Controls\ScrollViewer.cs (1)
2732
corner.SetResourceReference(Rectangle.FillProperty,
SystemColors
.ControlBrushKey);
System\Windows\Controls\ToolTip.cs (1)
27
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)
1638
backgroundColor =
SystemColors
.WindowColor;
System\Windows\FluentThemeState.cs (1)
11
AccentColor =
SystemColors
.AccentColor;
System\Windows\Markup\XamlTypeMapper.cs (1)
2889
keyObject = typeof(
SystemColors
);
System\Windows\Shell\WindowChromeWorker.cs (2)
953
_hwndSource.CompositionTarget.BackgroundColor =
SystemColors
.WindowColor;
1149
_hwndSource.CompositionTarget.BackgroundColor =
SystemColors
.WindowColor;
System\Windows\SystemColors.cs (18)
1374
return
SystemColors
.HighlightBrush;
1378
return
SystemColors
.ControlBrush;
1395
return
SystemColors
.HighlightTextBrush;
1399
return
SystemColors
.ControlTextBrush;
1409
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1417
return
SystemColors
.HighlightTextBrush;
1430
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1438
return
SystemColors
.HighlightTextBrush;
1451
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1459
return
SystemColors
.HighlightTextBrush;
1472
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1480
return
SystemColors
.HighlightTextBrush;
1493
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1501
return
SystemColors
.HighlightTextBrush;
1514
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1522
return
SystemColors
.HighlightTextBrush;
1535
/// When <see cref="SystemParameters.HighContrast"/> is <see langword="true" />, this property returns <see cref="
SystemColors
.HighlightTextBrush"/>.
1543
return
SystemColors
.HighlightTextBrush;
System\Windows\SystemKeyConverter.cs (1)
169
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)
1374
SystemColors
.InvalidateCache();
1385
if (
SystemColors
.InvalidateCache())
1432
if(
SystemColors
.InvalidateCache())
PresentationFramework.AeroLite (1)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
486
return
SystemColors
.GrayTextBrush;
PresentationFramework.Classic (17)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
413
controlBrush != null && (controlColor = controlBrush.Color) !=
SystemColors
.ControlColor && controlColor.A > 0x00)
436
darkDarkColor.R = (byte)((darkColor.R +
SystemColors
.WindowFrameColor.R) / 2);
437
darkDarkColor.G = (byte)((darkColor.G +
SystemColors
.WindowFrameColor.G) / 2);
438
darkDarkColor.B = (byte)((darkColor.B +
SystemColors
.WindowFrameColor.B) / 2);
439
darkDarkColor.A = (byte)((darkColor.A +
SystemColors
.WindowFrameColor.A) / 2);
762
DrawBorder(
SystemColors
.WindowFrameBrush, singleThickness, drawingContext, ref bounds);
1346
return _brushCache != null ? _brushCache.LightBrush :
SystemColors
.ControlLightBrush;
1355
return _brushCache != null ? _brushCache.LightLightBrush :
SystemColors
.ControlLightLightBrush;
1364
return _brushCache != null ? _brushCache.DarkBrush :
SystemColors
.ControlDarkBrush;
1373
return _brushCache != null ? _brushCache.DarkDarkBrush :
SystemColors
.ControlDarkDarkBrush;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (7)
36
SetResourceReference(ControlBrushProperty,
SystemColors
.ControlBrushKey);
51
Brush light =
SystemColors
.ControlLightBrush;
52
Brush dark =
SystemColors
.ControlDarkBrush;
72
darkDarkRight =
SystemColors
.ControlDarkDarkBrush;
90
darkDarkBottom =
SystemColors
.ControlDarkDarkBrush;
187
?
SystemColors
.ControlTextBrush :
SystemColors
.GrayTextBrush;
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
379
static Brush defaultBrush =
SystemColors
.WindowBrush;