From bf4168f5a1d9f93645083f673a449cd71827600f Mon Sep 17 00:00:00 2001 From: Luke Blevins Date: Sun, 10 Feb 2019 14:52:43 -0500 Subject: [PATCH] Tidy Up Home UI to Feel More Native --- GenericFileBrowser.xaml | 283 +--------------------------------------- Settings.xaml.cs | 3 + YourHome.xaml | 21 +-- YourHome.xaml.cs | 4 +- 4 files changed, 19 insertions(+), 292 deletions(-) diff --git a/GenericFileBrowser.xaml b/GenericFileBrowser.xaml index 3a2f3f8bf1f5..4cc7f4bdb1f4 100644 --- a/GenericFileBrowser.xaml +++ b/GenericFileBrowser.xaml @@ -11,286 +11,9 @@ xmlns:local2="using:ItemListPresenter" xmlns:local3="using:Interacts" Name="GenericItemView" - mc:Ignorable="d" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Auto"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + mc:Ignorable="d"> + @@ -298,7 +21,7 @@ - + diff --git a/Settings.xaml.cs b/Settings.xaml.cs index 7093a0ff1094..b2a8a6e9be91 100644 --- a/Settings.xaml.cs +++ b/Settings.xaml.cs @@ -1,4 +1,5 @@ using Files.SettingsPages; +using Windows.ApplicationModel.Core; using Windows.UI.Xaml.Controls; @@ -12,6 +13,8 @@ public Settings() { this.InitializeComponent(); SecondaryPane.SelectedIndex = 1; + var CoreTitleBar = CoreApplication.GetCurrentView().TitleBar; + CoreTitleBar.ExtendViewIntoTitleBar = true; } private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e) diff --git a/YourHome.xaml b/YourHome.xaml index 58b2fedd2f08..0a8de0c10eb9 100644 --- a/YourHome.xaml +++ b/YourHome.xaml @@ -381,15 +381,15 @@ - + - + - - + + @@ -401,14 +401,15 @@ - + - + - + + - + @@ -423,9 +424,9 @@ - + - + diff --git a/YourHome.xaml.cs b/YourHome.xaml.cs index 11f79904a77c..91f4e1b5981d 100644 --- a/YourHome.xaml.cs +++ b/YourHome.xaml.cs @@ -132,12 +132,12 @@ private void CardPressed(object sender, ItemClickEventArgs e) private void DropShadowPanel_PointerEntered(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e) { - (sender as DropShadowPanel).ShadowOpacity = 0.00; + (sender as DropShadowPanel).ShadowOpacity = 0.15; } private void DropShadowPanel_PointerExited(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e) { - (sender as DropShadowPanel).ShadowOpacity = 0.15; + (sender as DropShadowPanel).ShadowOpacity = 0.00; } } }