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

Commit 233b5b9

Browse files
Merge pull request #2261 from github/fixes/dialog-style-guide
Use Visual Studio colors and styles for all dialogs
2 parents 794ae47 + 0ff1064 commit 233b5b9

File tree

107 files changed

+13693
-5202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+13693
-5202
lines changed
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
<ResourceDictionary
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
4-
54
<ResourceDictionary.MergedDictionaries>
6-
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Styles/VsColorsBlue.xaml" />
7-
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Styles/VsBrushesBlue.xaml" />
8-
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Styles/ThemeBlue.xaml" />
9-
</ResourceDictionary.MergedDictionaries>
5+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/Dark/VsBrushes.xaml" />
6+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/Dark/VsColors.xaml" />
7+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/Dark/CommonControlsColors.xaml" />
8+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/Dark/ThemedDialogColors.xaml" />
9+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/Dark/EnvironmentColors.xaml" />
10+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/Dark/TreeViewColors.xaml" />
11+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/CommonControlsButtonStyle.xaml" />
12+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/CommonControlsCheckboxStyle.xaml" />
13+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/CommonControlsComboboxStyle.xaml" />
14+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/CommonControlsTextboxStyle.xaml" />
15+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Themes/ThemedDialogStyles.xaml" />
1016

17+
<!-- Set this theme to match the Visual Studio theme above -->
18+
<ResourceDictionary Source="pack://application:,,,/GitHub.VisualStudio.UI;component/Styles/ThemeDark.xaml" />
19+
</ResourceDictionary.MergedDictionaries>
20+
<ResourceDictionary x:Key="ThemedDialogDefaultStylesKey" Source="/Themes/ThemedDialogDefaultStyles.xaml" />
1121
</ResourceDictionary>

src/GitHub.UI.Reactive/Assets/Controls.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<ResourceDictionary Source="Controls\Validation\UserErrorMessages.xaml" />
1010
<ResourceDictionary Source="Controls\Validation\ValidationMessage.xaml" />
1111
<ResourceDictionary Source="Controls\GitHubTabControl.xaml" />
12-
<ResourceDictionary Source="Controls\FilteredComboBox.xaml" />
1312
<ResourceDictionary Source="Controls\GitHubComboBox.xaml" />
1413
</ResourceDictionary.MergedDictionaries>
1514
</ResourceDictionary>

src/GitHub.UI.Reactive/Assets/Controls/FilteredComboBox.xaml

Lines changed: 0 additions & 117 deletions
This file was deleted.

src/GitHub.UI.Reactive/Controls/FilteredComboBox.cs

Lines changed: 0 additions & 147 deletions
This file was deleted.

src/GitHub.UI.Reactive/Controls/TwoFactorInput.xaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,21 @@
1111
d:DesignWidth="262"
1212
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.TwoFactorAuthenticatonInputCustom}">
1313
<UserControl.Resources>
14-
<Style TargetType="{x:Type TextBox}">
15-
<Setter Property="Width" Value="36"/>
16-
<Setter Property="Height" Value="46"/>
17-
<Setter Property="Margin" Value="0,0,8,0"/>
18-
<Setter Property="HorizontalContentAlignment" Value="Center" />
19-
<Setter Property="VerticalContentAlignment" Value="Center" />
20-
<Setter Property="FontSize" Value="20px" />
21-
</Style>
14+
<ResourceDictionary>
15+
<ResourceDictionary.MergedDictionaries>
16+
<StaticResource ResourceKey="ThemedDialogDefaultStylesKey"/>
17+
<ResourceDictionary>
18+
<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
19+
<Setter Property="Width" Value="36"/>
20+
<Setter Property="Height" Value="46"/>
21+
<Setter Property="Margin" Value="0,0,8,0"/>
22+
<Setter Property="HorizontalContentAlignment" Value="Center" />
23+
<Setter Property="VerticalContentAlignment" Value="Center" />
24+
<Setter Property="FontSize" Value="20px" />
25+
</Style>
26+
</ResourceDictionary>
27+
</ResourceDictionary.MergedDictionaries>
28+
</ResourceDictionary>
2229
</UserControl.Resources>
2330
<StackPanel Orientation="Horizontal" UseLayoutRounding="True" SnapsToDevicePixels="True" AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.TwoFactorAuthenticationInputStackPanel}">
2431
<TextBox x:Name="one" />

0 commit comments

Comments
 (0)