Ads added; Fullscreen & minivew modes fixed; Titlebar returned
This commit is contained in:
+2
-4
@@ -99,8 +99,7 @@ namespace FoxTube
|
||||
// Ensure the current window is active
|
||||
Window.Current.Activate();
|
||||
}
|
||||
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
|
||||
|
||||
ActivateToastBackgoundTask();
|
||||
ActivateBackgoundTask();
|
||||
}
|
||||
@@ -238,8 +237,7 @@ namespace FoxTube
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
|
||||
|
||||
Window.Current.Activate();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Diagnostics;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
|
||||
namespace FoxTube.Controls
|
||||
@@ -32,7 +31,7 @@ namespace FoxTube.Controls
|
||||
|
||||
public Advert()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
InitializeComponent();
|
||||
if (!SecretsVault.AdsDisabled)
|
||||
Visibility = Visibility.Visible;
|
||||
else
|
||||
|
||||
@@ -633,9 +633,8 @@ namespace FoxTube
|
||||
|
||||
titleBar.ButtonBackgroundColor = Colors.Transparent;
|
||||
titleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
|
||||
|
||||
CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar;
|
||||
coreTitleBar.ExtendViewIntoTitleBar = true;
|
||||
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
|
||||
|
||||
mainControls.Visibility = Visibility.Collapsed;
|
||||
header.Visibility = Visibility.Collapsed;
|
||||
@@ -651,8 +650,6 @@ namespace FoxTube
|
||||
{
|
||||
await ApplicationView.GetForCurrentView().TryEnterViewModeAsync(ApplicationViewMode.Default);
|
||||
|
||||
//Methods.MainPage.SetTitleBar();
|
||||
|
||||
mainControls.Visibility = Visibility.Visible;
|
||||
header.Visibility = Visibility.Visible;
|
||||
|
||||
|
||||
@@ -112,7 +112,6 @@ namespace FoxTube
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
SetTitleBar();
|
||||
}
|
||||
|
||||
public Video GetCurrentItem()
|
||||
@@ -378,7 +377,6 @@ namespace FoxTube
|
||||
nav.IsBackEnabled = true;
|
||||
else
|
||||
nav.IsBackEnabled = false;
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
|
||||
}
|
||||
|
||||
public void MaximizeVideo()
|
||||
@@ -390,7 +388,6 @@ namespace FoxTube
|
||||
videoPlaceholder.Margin = new Thickness(0);
|
||||
|
||||
nav.IsBackEnabled = true;
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = false;
|
||||
}
|
||||
|
||||
public void Fullscreen(bool on)
|
||||
@@ -404,7 +401,7 @@ namespace FoxTube
|
||||
if ((videoPlaceholder.Content as VideoPage).player.MiniView)
|
||||
nav.Margin = new Thickness(0, -48, 0, 0);
|
||||
else
|
||||
nav.Margin = new Thickness(0, -60, 0, 0);
|
||||
nav.Margin = new Thickness(0, -50, 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -414,9 +411,8 @@ namespace FoxTube
|
||||
nav.Margin = new Thickness(0);
|
||||
nav.OpenPaneLength = 300;
|
||||
nav.CompactPaneLength = 48;
|
||||
SetTitleBar();
|
||||
}
|
||||
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = on;
|
||||
}
|
||||
|
||||
public void CloseVideo()
|
||||
@@ -435,8 +431,6 @@ namespace FoxTube
|
||||
nav.IsBackEnabled = true;
|
||||
else
|
||||
nav.IsBackEnabled = false;
|
||||
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = false;
|
||||
}
|
||||
|
||||
private void search_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args)
|
||||
|
||||
@@ -131,7 +131,6 @@ namespace FoxTube.Pages.SettingsPages
|
||||
else
|
||||
Methods.MainPage.RequestedTheme = ElementTheme.Light;
|
||||
}
|
||||
|
||||
Methods.MainPage.SetTitleBar();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user