Major UI rework!
This commit is contained in:
@@ -21,6 +21,7 @@ namespace mpvnet
|
||||
List<ConfItem> ConfItems = new List<ConfItem>();
|
||||
public ObservableCollection<string> FilterStrings { get; } = new ObservableCollection<string>();
|
||||
string InitialContent;
|
||||
string ThemeConf = GetThemeConf();
|
||||
|
||||
public ConfWindow()
|
||||
{
|
||||
@@ -35,6 +36,8 @@ namespace mpvnet
|
||||
FilterListBox.SelectedItem = SearchControl.Text.TrimEnd(':');
|
||||
}
|
||||
|
||||
static string GetThemeConf() => App.IsDarkMode + App.DarkTheme + App.LightTheme;
|
||||
|
||||
public Theme Theme => Theme.Current;
|
||||
|
||||
void LoadSettings()
|
||||
@@ -103,6 +106,10 @@ namespace mpvnet
|
||||
}
|
||||
|
||||
App.InitTheme();
|
||||
App.UpdateWpfColors();
|
||||
|
||||
if (ThemeConf != GetThemeConf())
|
||||
Msg.ShowInfo("Changed theme settings require mpv.net being restarted.");
|
||||
}
|
||||
|
||||
string GetCompareString()
|
||||
|
||||
Reference in New Issue
Block a user