From 23400f78c03bcea769d43d3191689ea179c71bdc Mon Sep 17 00:00:00 2001 From: OneGate Dev Date: Sat, 8 Aug 2026 08:57:37 +0800 Subject: [PATCH 1/3] Add switchable gallery layout to Games tab --- OneGateApp/Data/DApp.cs | 1 + OneGateApp/Pages/GamingPage.xaml | 359 +++++++++++++++++---- OneGateApp/Pages/GamingPage.xaml.cs | 88 ++++- OneGateApp/Properties/Strings.Designer.cs | 45 +++ OneGateApp/Properties/Strings.resx | 15 + OneGateApp/Properties/Strings.zh-Hans.resx | 15 + 6 files changed, 454 insertions(+), 69 deletions(-) diff --git a/OneGateApp/Data/DApp.cs b/OneGateApp/Data/DApp.cs index bcd9f9f..fd04a7b 100644 --- a/OneGateApp/Data/DApp.cs +++ b/OneGateApp/Data/DApp.cs @@ -34,6 +34,7 @@ public class DApp : IComparable, IShareable, IVersioned public bool IsGamingApp => !string.IsNullOrWhiteSpace(GameType); public bool IsRegularApp => !IsGamingApp; + public string? PreviewUrl => Previews?.FirstOrDefault(p => !string.IsNullOrWhiteSpace(p)) ?? IconUrl; public string? GameTypeDisplayName => LocalizeGameType(GameType); public Dictionary NameLocalizer => field ??= JsonSerializer.Deserialize>(Name)!; public Dictionary? DescriptionLocalizer => Description is null ? null : field ??= JsonSerializer.Deserialize>(Description); diff --git a/OneGateApp/Pages/GamingPage.xaml b/OneGateApp/Pages/GamingPage.xaml index 3b23f36..bede410 100644 --- a/OneGateApp/Pages/GamingPage.xaml +++ b/OneGateApp/Pages/GamingPage.xaml @@ -9,6 +9,7 @@ + @@ -30,42 +31,291 @@ - - - - - - - -