From 6173058d45f995b28fbb68a5463b73a7090b88c1 Mon Sep 17 00:00:00 2001 From: Matthias Heilhecker Date: Thu, 1 Sep 2016 19:26:48 +0200 Subject: [PATCH 1/4] Refactored Settings page Added version below title --- .../ViewModels/PlayerProfileViewModel.cs | 5 + PokemonGo-UWP/Views/SettingsPage.xaml | 286 ++++++++++-------- 2 files changed, 162 insertions(+), 129 deletions(-) diff --git a/PokemonGo-UWP/ViewModels/PlayerProfileViewModel.cs b/PokemonGo-UWP/ViewModels/PlayerProfileViewModel.cs index f3738c764..018ec0cab 100644 --- a/PokemonGo-UWP/ViewModels/PlayerProfileViewModel.cs +++ b/PokemonGo-UWP/ViewModels/PlayerProfileViewModel.cs @@ -90,6 +90,11 @@ public override async Task OnNavigatingFromAsync(NavigatingEventArgs args) #region Bindable Game Vars + /// + /// Current version of the App. + /// + public string CurrentVersion => GameClient.CurrentVersion; + /// /// Player's profile, we use it just for the username /// diff --git a/PokemonGo-UWP/Views/SettingsPage.xaml b/PokemonGo-UWP/Views/SettingsPage.xaml index 7e7b267dc..0946dce7d 100644 --- a/PokemonGo-UWP/Views/SettingsPage.xaml +++ b/PokemonGo-UWP/Views/SettingsPage.xaml @@ -13,165 +13,190 @@ - - + + - - - - - + - + + - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - + - - - - - - - - + + + + - + - - - - - - - + + - - + - - - - - - - + + + Style="{StaticResource TextSettingsTitle}" + HorizontalAlignment="Left"/> - - - - - - - - - + + + + FontSize="12" + Margin="15,0,15,15" + Foreground="#ddd" /> - - - - - - - - + + - - - - - - - - - - + - - + From 883be3a70112d7604212f2abe14190bc7cd29fd1 Mon Sep 17 00:00:00 2001 From: Matthias Heilhecker Date: Thu, 1 Sep 2016 19:42:48 +0200 Subject: [PATCH 2/4] Added basic settings style to page --- PokemonGo-UWP/Styles/Custom.xaml | 5 +- PokemonGo-UWP/Views/SettingsPage.xaml | 96 ++++++++++++--------------- 2 files changed, 48 insertions(+), 53 deletions(-) diff --git a/PokemonGo-UWP/Styles/Custom.xaml b/PokemonGo-UWP/Styles/Custom.xaml index ec8426841..b80202087 100644 --- a/PokemonGo-UWP/Styles/Custom.xaml +++ b/PokemonGo-UWP/Styles/Custom.xaml @@ -2073,7 +2073,7 @@ - + + + + + + @@ -29,7 +51,7 @@ Style="{StaticResource TextPageTitle}" /> + Margin="0"/> + Style="{StaticResource TextSettingsTitle}" /> + IsChecked="{Binding IsNianticMapEnabled, Mode=TwoWay}"/> + Style="{StaticResource TextSettingsTitle}"/> + SelectedIndex="{Binding MapAutomaticOrientationMode_Index, Mode=TwoWay}"> - - + + IsChecked="{Binding IsRememberMapZoomEnabled, Mode=TwoWay}"/> + RelativePanel.Below="RememberMapZoomGrid" /> + Style="{StaticResource TextSettingsTitle}" /> + IsChecked="{Binding IsMusicEnabled, Mode=TwoWay}" /> + Style="{StaticResource TextSettingsTitle}" /> + IsChecked="{Binding IsVibrationEnabled, Mode=TwoWay}"/> + Style="{StaticResource TextSettingsTitle}" /> + IsChecked="{Binding IsBatterySaverEnabled, Mode=TwoWay}" /> + SelectedItem="{Binding UserLanguage, Mode=TwoWay}" /> @@ -257,8 +250,7 @@ From a3beb342ce65ec37e2bd0193e59a4b65d6f87575 Mon Sep 17 00:00:00 2001 From: Matthias Heilhecker Date: Sun, 4 Sep 2016 20:16:59 +0200 Subject: [PATCH 3/4] Reverted Version in Settings --- PokemonGo-UWP/Views/SettingsPage.xaml | 158 +++++++++++++------------- 1 file changed, 82 insertions(+), 76 deletions(-) diff --git a/PokemonGo-UWP/Views/SettingsPage.xaml b/PokemonGo-UWP/Views/SettingsPage.xaml index 298043cab..3a5547f60 100644 --- a/PokemonGo-UWP/Views/SettingsPage.xaml +++ b/PokemonGo-UWP/Views/SettingsPage.xaml @@ -1,13 +1,12 @@ - + @@ -28,7 +27,8 @@ - @@ -37,13 +37,17 @@ - - - + + + - - + Margin="0" /> + IsChecked="{Binding IsNianticMapEnabled, Mode=TwoWay}" /> + Style="{StaticResource TextSettingsTitle}" /> + RelativePanel.AlignRightWithPanel="True" + RelativePanel.Below="MapRotationGrid" + IsChecked="{Binding IsRememberMapZoomEnabled, Mode=TwoWay}" /> - + x:Uid="SettingsMusicTextBlock" + Text="Music" + Style="{StaticResource TextSettingsTitle}" /> + - - + + - + - + - - - + Text="Language" + Style="{StaticResource TextSettingsTitle}" + Margin="15,15,15,5" /> + + + + x:Uid="SettingsLiveTileTextBlock" + HorizontalAlignment="Left" + Text="Live Tile Mode" + Style="{StaticResource TextSettingsTitle}" /> - + From 02e5ea320af935bd0d9cc71caf3ee9137cafeab1 Mon Sep 17 00:00:00 2001 From: Matthias Heilhecker Date: Sun, 4 Sep 2016 20:20:33 +0200 Subject: [PATCH 4/4] Reverted wrong implementation of current version --- PokemonGo-UWP/ViewModels/PlayerProfileViewModel.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/PokemonGo-UWP/ViewModels/PlayerProfileViewModel.cs b/PokemonGo-UWP/ViewModels/PlayerProfileViewModel.cs index 018ec0cab..f3738c764 100644 --- a/PokemonGo-UWP/ViewModels/PlayerProfileViewModel.cs +++ b/PokemonGo-UWP/ViewModels/PlayerProfileViewModel.cs @@ -90,11 +90,6 @@ public override async Task OnNavigatingFromAsync(NavigatingEventArgs args) #region Bindable Game Vars - /// - /// Current version of the App. - /// - public string CurrentVersion => GameClient.CurrentVersion; - /// /// Player's profile, we use it just for the username ///