Notification system done
This commit is contained in:
@@ -124,30 +124,15 @@ namespace FoxTube
|
||||
public void SetTitleBar()
|
||||
{
|
||||
var titleBar = ApplicationView.GetForCurrentView().TitleBar;
|
||||
|
||||
titleBar.ButtonBackgroundColor = Colors.Transparent;
|
||||
|
||||
titleBar.BackgroundColor = Colors.Red;
|
||||
titleBar.ButtonBackgroundColor = Colors.Red;
|
||||
titleBar.ButtonHoverBackgroundColor = Colors.IndianRed;
|
||||
titleBar.ButtonPressedBackgroundColor = Colors.DarkRed;
|
||||
titleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
|
||||
titleBar.ButtonInactiveBackgroundColor = Colors.DeepPink;
|
||||
titleBar.ForegroundColor = Colors.White;
|
||||
|
||||
if((int)settings.Values["themeMode"] == 2)
|
||||
{
|
||||
Color uiTheme = new UISettings().GetColorValue(UIColorType.Background);
|
||||
if (uiTheme == Colors.Black)
|
||||
titleBar.ButtonForegroundColor = Colors.White;
|
||||
else
|
||||
titleBar.ButtonForegroundColor = Colors.Black;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (RequestedTheme == ElementTheme.Dark)
|
||||
titleBar.ButtonForegroundColor = Colors.White;
|
||||
else if (RequestedTheme == ElementTheme.Light)
|
||||
titleBar.ButtonForegroundColor = Colors.Black;
|
||||
}
|
||||
|
||||
CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar;
|
||||
coreTitleBar.ExtendViewIntoTitleBar = true;
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = false;
|
||||
}
|
||||
|
||||
private void SecretsVault_SubscriptionsChanged(object sender, params object[] args)
|
||||
@@ -393,6 +378,7 @@ namespace FoxTube
|
||||
nav.IsBackEnabled = true;
|
||||
else
|
||||
nav.IsBackEnabled = false;
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
|
||||
}
|
||||
|
||||
public void MaximizeVideo()
|
||||
@@ -404,25 +390,33 @@ namespace FoxTube
|
||||
videoPlaceholder.Margin = new Thickness(0);
|
||||
|
||||
nav.IsBackEnabled = true;
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = false;
|
||||
}
|
||||
|
||||
public void Fullscreen(bool on)
|
||||
{
|
||||
if (on)
|
||||
{
|
||||
nav.CompactModeThresholdWidth = short.MaxValue;
|
||||
nav.ExpandedModeThresholdWidth = short.MaxValue;
|
||||
nav.OpenPaneLength = 0;
|
||||
nav.CompactPaneLength = 0;
|
||||
if ((videoPlaceholder.Content as VideoPage).player.MiniView)
|
||||
nav.Margin = new Thickness(0, -80, 0, 0);
|
||||
nav.Margin = new Thickness(0, -48, 0, 0);
|
||||
else
|
||||
nav.Margin = new Thickness(0, -91, 0, 0);
|
||||
nav.Margin = new Thickness(0, -60, 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
nav.CompactModeThresholdWidth = 641;
|
||||
nav.ExpandedModeThresholdWidth = 1008;
|
||||
nav.Margin = new Thickness(0);
|
||||
nav.OpenPaneLength = 300;
|
||||
nav.CompactPaneLength = 48;
|
||||
}
|
||||
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = on;
|
||||
}
|
||||
|
||||
public void CloseVideo()
|
||||
@@ -441,6 +435,8 @@ namespace FoxTube
|
||||
nav.IsBackEnabled = true;
|
||||
else
|
||||
nav.IsBackEnabled = false;
|
||||
|
||||
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = false;
|
||||
}
|
||||
|
||||
private void search_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args)
|
||||
|
||||
@@ -153,12 +153,12 @@
|
||||
<AppBarButton Name="openBrowser" Click="openBrowser_Click" Icon="Globe" Label="Open in browser"/>
|
||||
</CommandBar>
|
||||
|
||||
<Grid Grid.Column="1" Name="tabsPlaceholder">
|
||||
<StackPanel Grid.Column="1" Name="tabsPlaceholder">
|
||||
<controls1:Advert/>
|
||||
<Pivot Grid.Row="1" Name="pivot" SelectedIndex="0" IsHeaderItemsCarouselEnabled="False">
|
||||
<PivotItem Header="Suggestions">
|
||||
<ScrollViewer>
|
||||
<StackPanel>
|
||||
<controls1:Advert/>
|
||||
<StackPanel Name="relatedVideos"/>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
@@ -194,7 +194,7 @@
|
||||
</ScrollViewer>
|
||||
</PivotItem>
|
||||
</Pivot>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
<local:LoadingPage Grid.ColumnSpan="2" Visibility="Collapsed"/>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user