Major UI rework!

This commit is contained in:
Frank Skare
2021-08-22 18:50:11 +02:00
parent 0829b4bd9e
commit 17ecd9cb82
37 changed files with 3238 additions and 705 deletions

View File

@@ -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()