|
|
|
@ -64,7 +64,7 @@ namespace ICSharpCode.ILSpy
@@ -64,7 +64,7 @@ namespace ICSharpCode.ILSpy
|
|
|
|
|
this.TopPaneSplitterPosition = FromString((string)doc.Element("TopPaneSplitterPosition"), 0.3); |
|
|
|
|
this.BottomPaneSplitterPosition = FromString((string)doc.Element("BottomPaneSplitterPosition"), 0.3); |
|
|
|
|
this.SelectedSearchMode = FromString((string)doc.Element("SelectedSearchMode"), SearchMode.TypeAndMember); |
|
|
|
|
this.IsDarkMode = FromString((string)doc.Element(nameof(IsDarkMode)), false); |
|
|
|
|
this.Theme = FromString((string)doc.Element(nameof(Theme)), ThemeManager.Current.DefaultTheme); |
|
|
|
|
string currentCulture = (string)doc.Element(nameof(CurrentCulture)); |
|
|
|
|
this.CurrentCulture = string.IsNullOrEmpty(currentCulture) ? null : currentCulture; |
|
|
|
|
|
|
|
|
@ -81,10 +81,10 @@ namespace ICSharpCode.ILSpy
@@ -81,10 +81,10 @@ namespace ICSharpCode.ILSpy
|
|
|
|
|
public FilterSettings FilterSettings { get; internal set; } |
|
|
|
|
public SearchMode SelectedSearchMode { get; set; } |
|
|
|
|
|
|
|
|
|
public bool IsDarkMode { |
|
|
|
|
get => ThemeManager.Current.IsDarkMode; |
|
|
|
|
public string Theme { |
|
|
|
|
get => ThemeManager.Current.Theme; |
|
|
|
|
set { |
|
|
|
|
ThemeManager.Current.IsDarkMode = value; |
|
|
|
|
ThemeManager.Current.Theme = value; |
|
|
|
|
OnPropertyChanged(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -149,7 +149,7 @@ namespace ICSharpCode.ILSpy
@@ -149,7 +149,7 @@ namespace ICSharpCode.ILSpy
|
|
|
|
|
doc.Add(new XElement("TopPaneSplitterPosition", ToString(this.TopPaneSplitterPosition))); |
|
|
|
|
doc.Add(new XElement("BottomPaneSplitterPosition", ToString(this.BottomPaneSplitterPosition))); |
|
|
|
|
doc.Add(new XElement("SelectedSearchMode", ToString(this.SelectedSearchMode))); |
|
|
|
|
doc.Add(new XElement(nameof(IsDarkMode), ToString(this.IsDarkMode))); |
|
|
|
|
doc.Add(new XElement(nameof(Theme), ToString(this.Theme))); |
|
|
|
|
if (this.CurrentCulture != null) |
|
|
|
|
{ |
|
|
|
|
doc.Add(new XElement(nameof(CurrentCulture), this.CurrentCulture)); |
|
|
|
|