From f8691cc3998a1b5e7270b6c7a13e386dcbeb84f6 Mon Sep 17 00:00:00 2001 From: epix37 Date: Sat, 21 Jun 2014 15:48:27 +0200 Subject: [PATCH] v0.2.14 small fixes --- Hearthstone Deck Tracker/MainWindow.xaml | 139 ++++++++++---------- Hearthstone Deck Tracker/MainWindow.xaml.cs | 11 +- Hearthstone Deck Tracker/Version.xml | 2 +- 3 files changed, 78 insertions(+), 74 deletions(-) diff --git a/Hearthstone Deck Tracker/MainWindow.xaml b/Hearthstone Deck Tracker/MainWindow.xaml index d0542090db..27ad8abbb0 100644 --- a/Hearthstone Deck Tracker/MainWindow.xaml +++ b/Hearthstone Deck Tracker/MainWindow.xaml @@ -6,7 +6,8 @@ Title="Hearthstone Deck Tracker" Height="670" Width="510" MinWidth="510" MaxWidth="510" MinHeight="525" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" Closing="Window_Closing_1" Icon="Images/HearthstoneDeckTracker.ico" Activated="MetroWindow_Activated" Deactivated="MetroWindow_Deactivated" - StateChanged="MetroWindow_StateChanged" Loaded="MetroWindow_Loaded" LocationChanged="MetroWindow_LocationChanged"> + StateChanged="MetroWindow_StateChanged" Loaded="MetroWindow_Loaded" LocationChanged="MetroWindow_LocationChanged" + BorderBrush="{DynamicResource AccentColorBrush}" BorderThickness="1"> @@ -216,55 +217,55 @@ - - - - - - Theme - Light - Dark - Custom - - - + + + + + + Theme + Light + Dark + Custom + + + - - - - - - + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -277,33 +278,33 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - + + - - - + @@ -316,7 +317,7 @@ - + @@ -324,7 +325,7 @@ - + diff --git a/Hearthstone Deck Tracker/MainWindow.xaml.cs b/Hearthstone Deck Tracker/MainWindow.xaml.cs index 932a05196f..ab0a583ab2 100644 --- a/Hearthstone Deck Tracker/MainWindow.xaml.cs +++ b/Hearthstone Deck Tracker/MainWindow.xaml.cs @@ -709,8 +709,12 @@ private void LoadConfig() if (_config.TrackerWindowLeft != -32000 && _config.TrackerWindowLeft != -1) Left = _config.TrackerWindowLeft; - var theme = ThemeManager.AppThemes.First(t => t.Name == _config.ThemeName); - var accent = ThemeManager.Accents.First(a => a.Name == _config.AccentName); + var theme = string.IsNullOrEmpty(_config.ThemeName) + ? ThemeManager.DetectAppStyle().Item1 + : ThemeManager.AppThemes.First(t => t.Name == _config.ThemeName); + var accent = string.IsNullOrEmpty(_config.AccentName) + ? ThemeManager.DetectAppStyle().Item2 + : ThemeManager.Accents.First(a => a.Name == _config.AccentName); ThemeManager.ChangeAppStyle(Application.Current, accent, theme); ComboboxTheme.SelectedItem = theme; ComboboxAccent.SelectedItem = accent; @@ -1356,9 +1360,8 @@ await this.ShowMessageAsync("Not 30 cards", string.Format("Deck contains {0} car TagControlFilter.AddSelectedTag(tag); } - DeckPickerList.SelectDeck(newDeckClone); DeckPickerList.UpdateList(); - //ListboxDecks.SelectedItem = _deckList.DecksList.First(d => d.Equals(_newDeck)); + DeckPickerList.SelectDeck(newDeckClone); ClearNewDeckSection(); } diff --git a/Hearthstone Deck Tracker/Version.xml b/Hearthstone Deck Tracker/Version.xml index e4b0840426..0c2936ddb5 100644 --- a/Hearthstone Deck Tracker/Version.xml +++ b/Hearthstone Deck Tracker/Version.xml @@ -2,6 +2,6 @@ 0 2 - 13 + 14 0