From b2debf85d82c454eb1514858d4ef1454c0d61571 Mon Sep 17 00:00:00 2001 From: ProJend <55018532+ProJend@users.noreply.github.com> Date: Sun, 20 Oct 2024 10:15:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=BA=9B=E9=81=97?= =?UTF-8?q?=E7=95=99=E7=9A=84ui=E9=97=AE=E9=A2=98=20(#871)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * #552 #272 修复加载缩略图时遮挡状态栏的问题 * #96 全局mica半透明背景 * 去除多余的白色焦点边框 --- .../Controls/Dynamic/DynamicTemplate.xaml | 2 +- .../Controls/Dynamic/DynamicV2Template.xaml | 2 +- .../Controls/ImageViewerControl.xaml | 19 +- .../Settings/LiveSettingsControl.xaml | 2 +- .../Settings/VideoDanmakuSettingsControl.xaml | 6 +- src/BiliLite.UWP/MainPage.xaml | 73 ++- src/BiliLite.UWP/NoTabMainPage.xaml | 72 ++- src/BiliLite.UWP/NoTabMainPage.xaml.cs | 10 +- .../Pages/Bangumi/AnimeIndexPage.xaml | 2 +- .../Pages/Bangumi/SeasonRankPage.xaml | 2 +- .../Pages/Bangumi/TimelinePage.xaml | 2 +- src/BiliLite.UWP/Pages/DownloadPage.xaml | 2 +- .../Pages/Home/UserDynamicPage.xaml | 3 +- src/BiliLite.UWP/Pages/HomePage.xaml | 4 +- .../Pages/Live/LiveAreaDetailPage.xaml | 2 +- src/BiliLite.UWP/Pages/Live/LiveAreaPage.xaml | 2 +- .../Pages/Live/LiveCenterPage.xaml | 4 +- .../Pages/Live/LiveRecommendPage.xaml | 2 +- .../Pages/Other/MarkdownViewerPage.xaml | 2 +- src/BiliLite.UWP/Pages/Other/TopicPage.xaml | 4 +- src/BiliLite.UWP/Pages/RankPage.xaml | 2 +- src/BiliLite.UWP/Pages/RegionDetailPage.xaml | 2 +- src/BiliLite.UWP/Pages/SearchPage.xaml | 7 +- src/BiliLite.UWP/Pages/SearchPage.xaml.cs | 9 +- src/BiliLite.UWP/Pages/SeasonDetailPage.xaml | 8 +- src/BiliLite.UWP/Pages/SettingPage.xaml | 2 +- .../Pages/User/CollectedPage.xaml | 2 +- .../Pages/User/DynamicDetailPage.xaml | 2 +- .../Pages/User/DynamicSpacePage.xaml | 4 +- src/BiliLite.UWP/Pages/User/FavoritePage.xaml | 6 +- src/BiliLite.UWP/Pages/User/HistoryPage.xaml | 4 +- .../Pages/User/WatchlaterPage.xaml | 2 +- src/BiliLite.UWP/Pages/UserInfoPage.xaml | 9 +- src/BiliLite.UWP/Pages/VideoDetailPage.xaml | 8 +- src/BiliLite.UWP/Styles/TabViewStyle.xaml | 451 ++++++++++-------- src/BiliLite.UWP/Themes/Dark.xaml | 16 +- src/BiliLite.UWP/Themes/Light.xaml | 14 +- 37 files changed, 431 insertions(+), 334 deletions(-) diff --git a/src/BiliLite.UWP/Controls/Dynamic/DynamicTemplate.xaml b/src/BiliLite.UWP/Controls/Dynamic/DynamicTemplate.xaml index 2a6e297d2..806f3aa8e 100644 --- a/src/BiliLite.UWP/Controls/Dynamic/DynamicTemplate.xaml +++ b/src/BiliLite.UWP/Controls/Dynamic/DynamicTemplate.xaml @@ -177,7 +177,7 @@ - + - - - - - - - - - @@ -54,7 +45,15 @@ - + + + + + + + + + diff --git a/src/BiliLite.UWP/Controls/Settings/LiveSettingsControl.xaml b/src/BiliLite.UWP/Controls/Settings/LiveSettingsControl.xaml index cc0f159bc..139463ccd 100644 --- a/src/BiliLite.UWP/Controls/Settings/LiveSettingsControl.xaml +++ b/src/BiliLite.UWP/Controls/Settings/LiveSettingsControl.xaml @@ -64,7 +64,7 @@ - + diff --git a/src/BiliLite.UWP/Controls/Settings/VideoDanmakuSettingsControl.xaml b/src/BiliLite.UWP/Controls/Settings/VideoDanmakuSettingsControl.xaml index c877f322c..c2a2b3187 100644 --- a/src/BiliLite.UWP/Controls/Settings/VideoDanmakuSettingsControl.xaml +++ b/src/BiliLite.UWP/Controls/Settings/VideoDanmakuSettingsControl.xaml @@ -84,7 +84,7 @@ - + @@ -111,7 +111,7 @@ - + @@ -137,7 +137,7 @@ - + diff --git a/src/BiliLite.UWP/MainPage.xaml b/src/BiliLite.UWP/MainPage.xaml index c963026fa..6246f0468 100644 --- a/src/BiliLite.UWP/MainPage.xaml +++ b/src/BiliLite.UWP/MainPage.xaml @@ -2,37 +2,48 @@ x:Class="BiliLite.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:BiliLite" + xmlns:controls="using:BiliLite.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:fa="using:FontAwesome5" + xmlns:local="using:BiliLite" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - mc:Ignorable="d" + xmlns:muxm="using:Microsoft.UI.Xaml.Media" + xmlns:pages="using:BiliLite.Pages" xmlns:winui="using:Microsoft.UI.Xaml.Controls" winui:BackdropMaterial.ApplyToRootOrPageBackground="True" - xmlns:fa="using:FontAwesome5" - xmlns:pages="using:BiliLite.Pages" - xmlns:muxm="using:Microsoft.UI.Xaml.Media" - xmlns:controls="using:BiliLite.Controls" - Background="Transparent"> + mc:Ignorable="d"> + + + + - - + + TabCloseRequested="TabView_TabCloseRequested" + TabItemsChanged="tabView_TabItemsChanged" + TabWidthMode="SizeToContent"> - - + + - + @@ -40,15 +51,25 @@ - + - + - - - + + + diff --git a/src/BiliLite.UWP/NoTabMainPage.xaml b/src/BiliLite.UWP/NoTabMainPage.xaml index b35cd6e3a..b7c7e4ec0 100644 --- a/src/BiliLite.UWP/NoTabMainPage.xaml +++ b/src/BiliLite.UWP/NoTabMainPage.xaml @@ -2,37 +2,67 @@ x:Class="BiliLite.NoTabMainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:BiliLite" + xmlns:controls="using:BiliLite.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls="using:BiliLite.Controls" - mc:Ignorable="d" + xmlns:local="using:BiliLite" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:winui="using:Microsoft.UI.Xaml.Controls" + winui:BackdropMaterial.ApplyToRootOrPageBackground="True" Background="Transparent" - Loaded="NoTabMainPage_OnLoaded"> + Loaded="NoTabMainPage_OnLoaded" + mc:Ignorable="d"> - + - - + + - + + + + + + + + - - + + - - - 哔哩哔哩 UWP + + + 哔哩哔哩 UWP + - - - - - - - diff --git a/src/BiliLite.UWP/NoTabMainPage.xaml.cs b/src/BiliLite.UWP/NoTabMainPage.xaml.cs index 1472b9ea9..474732cbb 100644 --- a/src/BiliLite.UWP/NoTabMainPage.xaml.cs +++ b/src/BiliLite.UWP/NoTabMainPage.xaml.cs @@ -110,7 +110,7 @@ private void Frame_Navigated(object sender, NavigationEventArgs e) { txtTitle.Text = "哔哩哔哩 UWP"; } - if (e.Content is Pages.BasePage && e.NavigationMode!=NavigationMode.Back) + if (e.Content is Pages.BasePage && e.NavigationMode != NavigationMode.Back) { var title = (e.Content as BasePage).Title; PushTitle(title); @@ -168,6 +168,12 @@ private void NavigationHelper_NavigateToPageEvent(object sender, NavigationInfo private void btnBack_Click(object sender, RoutedEventArgs e) { + //如果打开了图片浏览,则关闭图片浏览 + if (gridViewer.Visibility == Visibility.Visible) + { + imgViewer_CloseEvent(this, null); + return; + } if (frame.CanGoBack) { frame.GoBack(); @@ -289,7 +295,7 @@ public bool Navigate(Type sourcePageType, object parameter = null) //跳转页面 (this.Children.Last() as Frame).Navigate(sourcePageType, parameter); - + return true; } public bool CanGoBack diff --git a/src/BiliLite.UWP/Pages/Bangumi/AnimeIndexPage.xaml b/src/BiliLite.UWP/Pages/Bangumi/AnimeIndexPage.xaml index 02a0ed8ea..1786c5260 100644 --- a/src/BiliLite.UWP/Pages/Bangumi/AnimeIndexPage.xaml +++ b/src/BiliLite.UWP/Pages/Bangumi/AnimeIndexPage.xaml @@ -19,7 +19,7 @@ - + diff --git a/src/BiliLite.UWP/Pages/Bangumi/SeasonRankPage.xaml b/src/BiliLite.UWP/Pages/Bangumi/SeasonRankPage.xaml index 15babff94..dc5a00905 100644 --- a/src/BiliLite.UWP/Pages/Bangumi/SeasonRankPage.xaml +++ b/src/BiliLite.UWP/Pages/Bangumi/SeasonRankPage.xaml @@ -12,7 +12,7 @@ xmlns:modules="using:BiliLite.Modules.Season" Background="Transparent"> - + diff --git a/src/BiliLite.UWP/Pages/Bangumi/TimelinePage.xaml b/src/BiliLite.UWP/Pages/Bangumi/TimelinePage.xaml index 2545c784b..f0363440c 100644 --- a/src/BiliLite.UWP/Pages/Bangumi/TimelinePage.xaml +++ b/src/BiliLite.UWP/Pages/Bangumi/TimelinePage.xaml @@ -13,7 +13,7 @@ xmlns:fa="using:FontAwesome5" Background="Transparent"> - + diff --git a/src/BiliLite.UWP/Pages/DownloadPage.xaml b/src/BiliLite.UWP/Pages/DownloadPage.xaml index 6be357299..0b3d8cde4 100644 --- a/src/BiliLite.UWP/Pages/DownloadPage.xaml +++ b/src/BiliLite.UWP/Pages/DownloadPage.xaml @@ -13,7 +13,7 @@ xmlns:viewModel="using:BiliLite.ViewModels.Download" Background="Transparent"> - + diff --git a/src/BiliLite.UWP/Pages/Home/UserDynamicPage.xaml b/src/BiliLite.UWP/Pages/Home/UserDynamicPage.xaml index ec9ec5086..f39b3f2a8 100644 --- a/src/BiliLite.UWP/Pages/Home/UserDynamicPage.xaml +++ b/src/BiliLite.UWP/Pages/Home/UserDynamicPage.xaml @@ -11,7 +11,7 @@ xmlns:fa="using:FontAwesome5" xmlns:converters="using:BiliLite.Converters" xmlns:controls1="using:Microsoft.Toolkit.Uwp.UI.Controls" - Background="{ThemeResource TopPaneBackground}"> + Background="Transparent"> @@ -198,7 +198,6 @@ VerticalAlignment="Stretch" Background="{ThemeResource HalfTransparentBackground}"> diff --git a/src/BiliLite.UWP/Pages/HomePage.xaml b/src/BiliLite.UWP/Pages/HomePage.xaml index 234a37675..5777ad098 100644 --- a/src/BiliLite.UWP/Pages/HomePage.xaml +++ b/src/BiliLite.UWP/Pages/HomePage.xaml @@ -15,9 +15,7 @@ Background="Transparent"> - - @@ -162,7 +160,7 @@ - + diff --git a/src/BiliLite.UWP/Pages/Live/LiveAreaDetailPage.xaml b/src/BiliLite.UWP/Pages/Live/LiveAreaDetailPage.xaml index 240e3b916..db1e33be2 100644 --- a/src/BiliLite.UWP/Pages/Live/LiveAreaDetailPage.xaml +++ b/src/BiliLite.UWP/Pages/Live/LiveAreaDetailPage.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="Transparent"> - + diff --git a/src/BiliLite.UWP/Pages/Live/LiveAreaPage.xaml b/src/BiliLite.UWP/Pages/Live/LiveAreaPage.xaml index 700ab05fa..829a9ee9d 100644 --- a/src/BiliLite.UWP/Pages/Live/LiveAreaPage.xaml +++ b/src/BiliLite.UWP/Pages/Live/LiveAreaPage.xaml @@ -9,7 +9,7 @@ mc:Ignorable="d" Background="Transparent"> - + diff --git a/src/BiliLite.UWP/Pages/Live/LiveCenterPage.xaml b/src/BiliLite.UWP/Pages/Live/LiveCenterPage.xaml index a019c0040..e4ab034e1 100644 --- a/src/BiliLite.UWP/Pages/Live/LiveCenterPage.xaml +++ b/src/BiliLite.UWP/Pages/Live/LiveCenterPage.xaml @@ -13,13 +13,13 @@ xmlns:convert="using:BiliLite.Converters" Background="Transparent"> - + - + diff --git a/src/BiliLite.UWP/Pages/User/WatchlaterPage.xaml b/src/BiliLite.UWP/Pages/User/WatchlaterPage.xaml index 04b43c822..b9ab5f8d0 100644 --- a/src/BiliLite.UWP/Pages/User/WatchlaterPage.xaml +++ b/src/BiliLite.UWP/Pages/User/WatchlaterPage.xaml @@ -42,7 +42,7 @@ - + 稍后再看(个视频) diff --git a/src/BiliLite.UWP/Pages/UserInfoPage.xaml b/src/BiliLite.UWP/Pages/UserInfoPage.xaml index 64434c6ee..062e42637 100644 --- a/src/BiliLite.UWP/Pages/UserInfoPage.xaml +++ b/src/BiliLite.UWP/Pages/UserInfoPage.xaml @@ -15,7 +15,8 @@ xmlns:interactivity="using:Microsoft.Xaml.Interactivity" xmlns:core="using:Microsoft.Xaml.Interactions.Core" xmlns:userViewModel="using:BiliLite.ViewModels.User" xmlns:controls="using:Microsoft.UI.Xaml.Controls" - Background="{ThemeResource ApplicationBackground}"> + Background="Transparent"> + @@ -99,13 +100,13 @@ - + - +