Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit f3a25a6

Browse files
committed
Set the design time color theme in one place
1 parent 6b0e30b commit f3a25a6

File tree

3 files changed

+9
-47
lines changed

3 files changed

+9
-47
lines changed

src/GitHub.InlineReviews/Properties/DesignTimeResources.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/CommonControlsComboboxStyle.xaml" />
1414
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/CommonControlsTextboxStyle.xaml" />
1515
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/ThemedDialogStyles.xaml" />
16+
17+
<!-- Set this theme to match the Visual Studio theme above -->
18+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Styles/ThemeDark.xaml" />
1619
</ResourceDictionary.MergedDictionaries>
1720
<ResourceDictionary x:Key="ThemedDialogDefaultStylesKey" Source="/Themes/ThemedDialogDefaultStyles.xaml" />
1821
</ResourceDictionary>

src/GitHub.VisualStudio.UI/Properties/DesignTimeResources.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<ResourceDictionary Source="/Themes/CommonControlsComboboxStyle.xaml" />
1414
<ResourceDictionary Source="/Themes/CommonControlsTextboxStyle.xaml" />
1515
<ResourceDictionary Source="/Themes/ThemedDialogStyles.xaml" />
16+
17+
<!-- Set this theme to match the Visual Studio theme above -->
18+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Styles/ThemeDark.xaml" />
1619
</ResourceDictionary.MergedDictionaries>
1720
<ResourceDictionary x:Key="ThemedDialogDefaultStylesKey" Source="/Themes/ThemedDialogDefaultStyles.xaml" />
1821
</ResourceDictionary>
Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,7 @@
11
<ResourceDictionary
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options">
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
54

6-
<ResourceDictionary.MergedDictionaries>
7-
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/Dark/VsColors.xaml" />
8-
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/Dark/VsBrushes.xaml" />
9-
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Styles/ThemeDark.xaml" />
10-
</ResourceDictionary.MergedDictionaries>
11-
12-
<!-- Design time colors taken from the VS dark theme
13-
-->
14-
<SolidColorBrush x:Key="GitHubVsToolWindowText" Color="#FFFFFFFF" />
15-
<SolidColorBrush x:Key="GitHubVsToolWindowBackground" Color="#FF252526" />
16-
<SolidColorBrush x:Key="GitHubVsGrayText" Color="#FF999999" />
17-
<SolidColorBrush x:Key="GitHubVsCommandBarHover" Color="#FF3E3E40" />
18-
<SolidColorBrush x:Key="GitHubVsCommandBarSelectedBorder" Color="#FF3399FF" />
19-
<SolidColorBrush x:Key="GitHubVsSearchBoxBackground" Color="#FF333337" />
20-
<SolidColorBrush x:Key="GitHubVsWindowText" Color="#FFF1F1F1" />
21-
<SolidColorBrush x:Key="GitHubVsBrandedUIBorder" Color="#FF3F3F46" />
22-
<SolidColorBrush x:Key="GitHubBranchNameBackgroundBrush" Color="#FF4B4D50" />
23-
24-
<!-- Design time colors taken from the VS light theme
25-
<SolidColorBrush x:Key="GitHubVsToolWindowText" Color="#FF1E1E1E" />
26-
<SolidColorBrush x:Key="GitHubVsToolWindowBackground" Color="#FFF5F5F5" />
27-
<SolidColorBrush x:Key="GitHubVsGrayText" Color="#FF717171" />
28-
<SolidColorBrush x:Key="GitHubVsCommandBarHover" Color="#FFC9DEF5" />
29-
<SolidColorBrush x:Key="GitHubVsCommandBarSelectedBorder" Color="#FF3399FF" />
30-
<SolidColorBrush x:Key="GitHubVsSearchBoxBackground" Color="#FFFCFCFC" />
31-
<SolidColorBrush x:Key="GitHubVsWindowText" Color="#FF1E1E1E" />
32-
<SolidColorBrush x:Key="GitHubVsBrandedUIBorder" Color="#FFCCCEBD" />
33-
<SolidColorBrush x:Key="GitHubVsBrandedUIBackground" Color="#FFEEEEF2" />
34-
<SolidColorBrush x:Key="GitHubDirectoryIconForeground" Color="#FFF5D367" />
35-
<SolidColorBrush x:Key="GitHubBranchNameBackgroundBrush" Color="#FFDAE8F6" />
36-
-->
37-
38-
<!-- Design time colors taken from the VS blue theme
39-
<SolidColorBrush x:Key="GitHubVsToolWindowText" Color="#FF000000" />
40-
<SolidColorBrush x:Key="GitHubVsToolWindowBackground" Color="#FFFFFFFF" />
41-
<SolidColorBrush x:Key="GitHubVsGrayText" Color="#FF6d6d6d" />
42-
<SolidColorBrush x:Key="GitHubVsCommandBarHover" Color="#FFFDF4BF" />
43-
<SolidColorBrush x:Key="GitHubVsCommandBarSelectedBorder" Color="#FFE5C365" />
44-
<SolidColorBrush x:Key="GitHubVsSearchBoxBackground" Color="#FFFFFFFF" />
45-
<SolidColorBrush x:Key="GitHubVsWindowText" Color="#FF000000" />
46-
<SolidColorBrush x:Key="GitHubVsBrandedUIBorder" Color="#FF8591A2" />
47-
<SolidColorBrush x:Key="GitHubVsBrandedUIBackground" Color="#FFFFFFFF" />
48-
<SolidColorBrush x:Key="GitHubDirectoryIconForeground" Color="#FFF5D367" />
49-
<SolidColorBrush x:Key="GitHubBranchNameBackgroundBrush" Color="#FFE8F0F8" />
50-
-->
5+
<!-- Set the theme for the designer to use in Properties/DesignTimeResources.xaml -->
6+
517
</ResourceDictionary>

0 commit comments

Comments
 (0)