Skip to content

Commit

Permalink
* Added theme previews
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDead committed May 8, 2019
1 parent 9b1dce8 commit eb9a31d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
7 changes: 5 additions & 2 deletions PK Finder.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio Version 16
VisualStudioVersion = 16.0.28803.352
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PK Finder", "PK Finder\PK Finder.csproj", "{AD1E68B1-CA43-4CB7-9E0A-DB3E8D8E6362}"
EndProject
Expand All @@ -19,4 +19,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FF85B741-717B-4A67-BAE5-27A6AA6BE822}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion PK Finder/Windows/SettingsWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</Grid.ColumnDefinitions>

<Label Margin="3" Content="Style:" />
<ComboBox Margin="3" SelectedValuePath="Content" SelectedValue="{bind:SettingsBinder VisualStyle}" Grid.Row="0" Grid.Column="1" IsReadOnly="True">
<ComboBox Margin="3" SelectedValuePath="Content" SelectedValue="{bind:SettingsBinder VisualStyle}" Grid.Row="0" Grid.Column="1" IsReadOnly="True" SelectionChanged="Selector_OnSelectionChanged">
<ComboBoxItem Content="Metro" />
<ComboBoxItem Content="Blend" />
<ComboBoxItem Content="VS2010" />
Expand Down
10 changes: 10 additions & 0 deletions PK Finder/Windows/SettingsWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,16 @@ private void SldBorderThickness_OnValueChanged(object sender, RoutedPropertyChan
}
}

/// <summary>
/// Method that is called when the theme is changed
/// </summary>
/// <param name="sender">The object that called this method</param>
/// <param name="e">The SelectionChangedEventArgs</param>
private void Selector_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
LoadTheme();
}

/// <summary>
/// Method that is called when the Window is closing
/// </summary>
Expand Down

0 comments on commit eb9a31d

Please sign in to comment.