mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-10-02 05:06:35 -05:00
improve defaults
fix a bug that prevented you from showing the theme window twice
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user