From b1e43229062abf98f0e7d1f74201c47b888405e4 Mon Sep 17 00:00:00 2001 From: tom-englert Date: Mon, 17 May 2021 17:15:41 +0200 Subject: [PATCH] Fix #2409: Styling of windows title bar is now optional. --- ILSpy/AboutPage.cs | 1 + ILSpy/App.xaml | 12 ++++- ILSpy/ILSpy.csproj | 2 +- ILSpy/ISmartTextOutput.cs | 1 + ILSpy/MainWindow.xaml | 6 ++- ILSpy/MainWindow.xaml.cs | 1 + ILSpy/Options/DisplaySettings.cs | 14 +++++ ILSpy/Options/DisplaySettingsPanel.xaml | 6 ++- ILSpy/Options/DisplaySettingsPanel.xaml.cs | 2 + ILSpy/Properties/Resources.Designer.cs | 24 ++++++--- ILSpy/Properties/Resources.resx | 3 ++ ILSpy/SessionSettings.cs | 1 + ILSpy/TextView/DecompilerTextView.cs | 3 +- ILSpy/{themes => Themes}/DarkTheme.xaml | 6 +-- ILSpy/{themes => Themes}/LightTheme.xaml | 8 +-- ILSpy/{themes => Themes}/ResourceKeys.cs | 2 +- ILSpy/{ => Themes}/ThemeManager.cs | 2 +- ILSpy/Themes/WindowStyleManagerBehavior.cs | 62 ++++++++++++++++++++++ ILSpy/{themes => Themes}/generic.xaml | 2 +- SharpTreeView/ICSharpCode.TreeView.csproj | 2 +- 20 files changed, 138 insertions(+), 22 deletions(-) rename ILSpy/{themes => Themes}/DarkTheme.xaml (98%) rename ILSpy/{themes => Themes}/LightTheme.xaml (95%) rename ILSpy/{themes => Themes}/ResourceKeys.cs (93%) rename ILSpy/{ => Themes}/ThemeManager.cs (97%) create mode 100644 ILSpy/Themes/WindowStyleManagerBehavior.cs rename ILSpy/{themes => Themes}/generic.xaml (96%) diff --git a/ILSpy/AboutPage.cs b/ILSpy/AboutPage.cs index 825a17422..bfe32f3cd 100644 --- a/ILSpy/AboutPage.cs +++ b/ILSpy/AboutPage.cs @@ -34,6 +34,7 @@ using ICSharpCode.AvalonEdit.Rendering; using ICSharpCode.Decompiler; using ICSharpCode.ILSpy.Properties; using ICSharpCode.ILSpy.TextView; +using ICSharpCode.ILSpy.Themes; namespace ICSharpCode.ILSpy { diff --git a/ILSpy/App.xaml b/ILSpy/App.xaml index 2c49f6686..151558268 100644 --- a/ILSpy/App.xaml +++ b/ILSpy/App.xaml @@ -2,12 +2,22 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:styles="urn:TomsToolbox.Wpf.Styles" + xmlns:toms="urn:TomsToolbox" + xmlns:ilSpy="clr-namespace:ICSharpCode.ILSpy" + xmlns:themes="clr-namespace:ICSharpCode.ILSpy.Themes" StartupUri="MainWindow.xaml"> -