@@ -64,7 +64,7 @@ public SessionSettings(ILSpySettings spySettings)
64
64
this . TopPaneSplitterPosition = FromString ( ( string ) doc . Element ( "TopPaneSplitterPosition" ) , 0.3 ) ;
65
65
this . BottomPaneSplitterPosition = FromString ( ( string ) doc . Element ( "BottomPaneSplitterPosition" ) , 0.3 ) ;
66
66
this . SelectedSearchMode = FromString ( ( string ) doc . Element ( "SelectedSearchMode" ) , SearchMode . TypeAndMember ) ;
67
- this . IsDarkMode = FromString ( ( string ) doc . Element ( nameof ( IsDarkMode ) ) , false ) ;
67
+ this . Theme = FromString ( ( string ) doc . Element ( nameof ( Theme ) ) , ThemeManager . Current . DefaultTheme ) ;
68
68
string currentCulture = ( string ) doc . Element ( nameof ( CurrentCulture ) ) ;
69
69
this . CurrentCulture = string . IsNullOrEmpty ( currentCulture ) ? null : currentCulture ;
70
70
@@ -81,10 +81,10 @@ void OnPropertyChanged([CallerMemberName] string propertyName = null)
81
81
public FilterSettings FilterSettings { get ; internal set ; }
82
82
public SearchMode SelectedSearchMode { get ; set ; }
83
83
84
- public bool IsDarkMode {
85
- get => ThemeManager . Current . IsDarkMode ;
84
+ public string Theme {
85
+ get => ThemeManager . Current . Theme ;
86
86
set {
87
- ThemeManager . Current . IsDarkMode = value ;
87
+ ThemeManager . Current . Theme = value ;
88
88
OnPropertyChanged ( ) ;
89
89
}
90
90
}
@@ -149,7 +149,7 @@ public void Save()
149
149
doc . Add ( new XElement ( "TopPaneSplitterPosition" , ToString ( this . TopPaneSplitterPosition ) ) ) ;
150
150
doc . Add ( new XElement ( "BottomPaneSplitterPosition" , ToString ( this . BottomPaneSplitterPosition ) ) ) ;
151
151
doc . Add ( new XElement ( "SelectedSearchMode" , ToString ( this . SelectedSearchMode ) ) ) ;
152
- doc . Add ( new XElement ( nameof ( IsDarkMode ) , ToString ( this . IsDarkMode ) ) ) ;
152
+ doc . Add ( new XElement ( nameof ( Theme ) , ToString ( this . Theme ) ) ) ;
153
153
if ( this . CurrentCulture != null )
154
154
{
155
155
doc . Add ( new XElement ( nameof ( CurrentCulture ) , this . CurrentCulture ) ) ;
0 commit comments