From fdc23195d50083d7e053dcc3083cc50af79a80b5 Mon Sep 17 00:00:00 2001
From: YourOrdinaryCat <49221554+YourOrdinaryCat@users.noreply.github.com>
Date: Wed, 21 Jun 2023 17:32:53 -0500
Subject: [PATCH] Removed some web based pages
This removes the support project page (replaced by the patreon website), and what's new (wasn't implemented prior and isn't implemented yet)
---
Rise Media Player Dev/Rise.App.csproj | 14 ---
Rise Media Player Dev/Views/HomePage.xaml | 8 +-
Rise Media Player Dev/Views/HomePage.xaml.cs | 5 -
Rise Media Player Dev/Web/SupportProject.xaml | 49 ----------
.../Web/SupportProject.xaml.cs | 95 -------------------
Rise Media Player Dev/Web/WhatsNew.xaml | 30 ------
Rise Media Player Dev/Web/WhatsNew.xaml.cs | 18 ----
7 files changed, 1 insertion(+), 218 deletions(-)
delete mode 100644 Rise Media Player Dev/Web/SupportProject.xaml
delete mode 100644 Rise Media Player Dev/Web/SupportProject.xaml.cs
delete mode 100644 Rise Media Player Dev/Web/WhatsNew.xaml
delete mode 100644 Rise Media Player Dev/Web/WhatsNew.xaml.cs
diff --git a/Rise Media Player Dev/Rise.App.csproj b/Rise Media Player Dev/Rise.App.csproj
index 51b0e680..d76f04d6 100644
--- a/Rise Media Player Dev/Rise.App.csproj
+++ b/Rise Media Player Dev/Rise.App.csproj
@@ -307,12 +307,6 @@
FeedbackPage.xaml
-
- SupportProject.xaml
-
-
- WhatsNew.xaml
- NowPlayingPage.xaml
@@ -862,14 +856,6 @@
DesignerMSBuild:Compile
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
- DesignerMSBuild:Compile
diff --git a/Rise Media Player Dev/Views/HomePage.xaml b/Rise Media Player Dev/Views/HomePage.xaml
index 9f30556e..4b3d942f 100644
--- a/Rise Media Player Dev/Views/HomePage.xaml
+++ b/Rise Media Player Dev/Views/HomePage.xaml
@@ -27,7 +27,7 @@
-
+
-
\ No newline at end of file
diff --git a/Rise Media Player Dev/Views/HomePage.xaml.cs b/Rise Media Player Dev/Views/HomePage.xaml.cs
index 7e0062ef..737e4beb 100644
--- a/Rise Media Player Dev/Views/HomePage.xaml.cs
+++ b/Rise Media Player Dev/Views/HomePage.xaml.cs
@@ -28,11 +28,6 @@ public HomePage()
private async void SupportButton_Click(object sender, RoutedEventArgs e)
=> await URLs.Support.LaunchAsync();
- private async void WhatsNew_Click(object sender, RoutedEventArgs e)
- {
- _ = await WhatsNew.TryShowAsync();
- }
-
private async void FoldersButton_Click(object sender, RoutedEventArgs e)
{
ContentDialog dialog = new()
diff --git a/Rise Media Player Dev/Web/SupportProject.xaml b/Rise Media Player Dev/Web/SupportProject.xaml
deleted file mode 100644
index abd544cb..00000000
--- a/Rise Media Player Dev/Web/SupportProject.xaml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Rise Media Player Dev/Web/SupportProject.xaml.cs b/Rise Media Player Dev/Web/SupportProject.xaml.cs
deleted file mode 100644
index a91ec83b..00000000
--- a/Rise Media Player Dev/Web/SupportProject.xaml.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-using Rise.Common.Extensions;
-using Windows.ApplicationModel.Core;
-using Windows.UI;
-using Windows.UI.ViewManagement;
-using Windows.UI.Xaml;
-using Windows.UI.Xaml.Controls;
-using Windows.UI.Xaml.Media;
-
-// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
-
-namespace Rise.App.Web
-{
- ///
- /// An empty page that can be used on its own or navigated to within a Frame.
- ///
- public sealed partial class SupportProject : Page
- {
- public SupportProject()
- {
- this.InitializeComponent();
- var titleBar = ApplicationView.GetForCurrentView().TitleBar;
-
- titleBar.ButtonBackgroundColor = Colors.Transparent;
- titleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
-
- // Hide default title bar.
- var coreTitleBar = CoreApplication.GetCurrentView().TitleBar;
- coreTitleBar.ExtendViewIntoTitleBar = true;
- UpdateTitleBarLayout(coreTitleBar);
-
- // Set XAML element as a draggable region.
- Window.Current.SetTitleBar(AppTitleBar);
-
- // Register a handler for when the size of the overlaid caption control changes.
- // For example, when the app moves to a screen with a different DPI.
- coreTitleBar.LayoutMetricsChanged += CoreTitleBar_LayoutMetricsChanged;
-
- // Register a handler for when the title bar visibility changes.
- // For example, when the title bar is invoked in full screen mode.
- coreTitleBar.IsVisibleChanged += CoreTitleBar_IsVisibleChanged;
-
- //Register a handler for when the window changes focus
- Window.Current.Activated += Current_Activated;
- }
-
- private void CoreTitleBar_LayoutMetricsChanged(CoreApplicationViewTitleBar sender, object args)
- {
- UpdateTitleBarLayout(sender);
- }
-
- private void UpdateTitleBarLayout(CoreApplicationViewTitleBar coreTitleBar)
- {
- // Update title bar control size as needed to account for system size changes.
- AppTitleBar.Height = coreTitleBar.Height;
-
- // Ensure the custom title bar does not overlap window caption controls
- Thickness currMargin = AppTitleBar.Margin;
- AppTitleBar.Margin = new Thickness(currMargin.Left, currMargin.Top, coreTitleBar.SystemOverlayRightInset, currMargin.Bottom);
- }
-
- private void CoreTitleBar_IsVisibleChanged(CoreApplicationViewTitleBar sender, object args)
- {
- if (sender.IsVisible)
- {
- AppTitleBar.Visibility = Visibility.Visible;
- }
- else
- {
- AppTitleBar.Visibility = Visibility.Collapsed;
- }
- }
-
- // Update the TitleBar based on the inactive/active state of the app
- private void Current_Activated(object sender, Windows.UI.Core.WindowActivatedEventArgs e)
- {
- SolidColorBrush defaultForegroundBrush = (SolidColorBrush)Application.Current.Resources["TextFillColorPrimaryBrush"];
- SolidColorBrush inactiveForegroundBrush = (SolidColorBrush)Application.Current.Resources["TextFillColorDisabledBrush"];
-
- if (e.WindowActivationState == Windows.UI.Core.CoreWindowActivationState.Deactivated)
- {
- AppTitle.Foreground = inactiveForegroundBrush;
- }
- else
- {
- AppTitle.Foreground = defaultForegroundBrush;
- }
- }
-
- private async void MenuFlyoutItem_Click(object sender, RoutedEventArgs e)
- {
- string uriToLaunch = @"https://github.com/Rise-Software/Rise-Media-Player/issues/new/choose";
- await uriToLaunch.LaunchAsync();
- }
- }
-}
diff --git a/Rise Media Player Dev/Web/WhatsNew.xaml b/Rise Media Player Dev/Web/WhatsNew.xaml
deleted file mode 100644
index 7b2a4581..00000000
--- a/Rise Media Player Dev/Web/WhatsNew.xaml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Rise Media Player Dev/Web/WhatsNew.xaml.cs b/Rise Media Player Dev/Web/WhatsNew.xaml.cs
deleted file mode 100644
index 6a130d8e..00000000
--- a/Rise Media Player Dev/Web/WhatsNew.xaml.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using Rise.Common.Extensions;
-using System.Threading.Tasks;
-using Windows.UI.Xaml.Controls;
-
-namespace Rise.App.Web
-{
- public sealed partial class WhatsNew : Page
- {
- public WhatsNew()
- {
- InitializeComponent();
- TitleBar.SetTitleBarForCurrentView();
- }
-
- public static Task TryShowAsync()
- => ViewHelpers.OpenViewAsync(minSize: new(500, 500));
- }
-}