improve defaults

fix a bug that prevented you from showing the theme window twice
This commit is contained in:
Benjamin Popp
2019-04-27 21:50:35 -05:00
parent cfdde5776b
commit c1ee36bb43
3 changed files with 4 additions and 4 deletions

View File

@@ -231,7 +231,7 @@ namespace HavenSoft.HexManiac.Core.ViewModels {
var metadata = fileSystem.MetadataFor(ApplicationName) ?? new string[0];
Theme = new Theme(metadata);
ShowMatrix = metadata.Contains("ShowMatrixGrid = True");
ShowMatrix = !metadata.Contains("ShowMatrixGrid = False");
}
public void WriteAppLevelMetadata() {

View File

@@ -5,8 +5,8 @@ using System.Linq;
namespace HavenSoft.HexManiac.Core.ViewModels {
public class Theme : ViewModelCore {
private string lightColor = "#EEE", darkColor = "#111";
private double hueOffset = 0.3, accentSaturation = 0.6, accentValue = 0.9, highlightBrightness = 0.9;
private string lightColor = "#DDDDDD", darkColor = "#080808";
private double hueOffset = 0.3, accentSaturation = 0.4, accentValue = 0.7, highlightBrightness = 0.7;
private bool lightVariant;
public bool LightVariant {

View File

@@ -191,7 +191,7 @@ namespace HavenSoft.HexManiac.WPF.Windows {
}
private void ShowThemeSelector(object sender, RoutedEventArgs e) {
if (themeWindow?.Visibility != Visibility.Visible) {
if (themeWindow?.IsVisible != true) {
themeWindow = new ThemeSelector { DataContext = ViewModel.Theme };
themeWindow.Show();
}