- WebView Integration: Migrated UI from
view2.0/toview/(HTML5/CSS3/JS), leveraging Microsoft WebView2 for the main rendering engine. Removed legacy WinForms heavy-hydrate controls (RichTextBox, Panel-based cards) in favor of a hybrid WebView approach. - Project Structure Cleanup: Removed
config/appsettings.jsonloading logic fromGlobalConfig(now uses default instantiation). Updated.csprojto exclude deleted configuration files and map new view assets correctly. - Code Consolidation: Deleted extensive WinForms boilerplate code (
PcInfoView,GameManager,Pagehierarchy) that was redundant with the new WebView implementation.
- Asset Migration: Moved all assets (icons, game logos, images) from
view2.0/toview/. Updated build configurations to copy resources correctly. - Styling Updates:
- Added CSS scrollbars (
::-webkit-scrollbar) and collapsible section logic (accordion styles for Launcher/Audio/Game lists). - Fixed layout overflow issues in Game Manager by adjusting container heights and adding padding.
- Unified color variables (added
--scrollbar-thumb-color/--scrollbar-track-colorfor Light/Dark modes).
- Added CSS scrollbars (
- Script Refactoring: Split monolithic
app.jsinto modular scripts (games.js,router.js) to improve maintainability and separate Game List logic from general routing.
- Configuration Simplification: Replaced external JSON config loading with static default values in
GlobalConfigfor a lighter startup. - Path Logic Updates: Modified
MainFormto detect development environments dynamically, ensuring correct mapping of theview/folder during builds vs. local runs.
- Image Handling: Enhanced
ConfigureLocalImageRequestsin WebView to better handle image MIME types and 404 fallbacks for missing game logos (using placeholder logic). - Error Handling: Improved error messages when accessing non-existent game directories or loading invalid image paths.
- Cleanup: Removed unused classes (
ColorThemes,CardControls,HoverShadowPanel,NormalButton) that were specific to the previous WinForms card system, as their functionality was abstracted or moved away from direct UI manipulation.
- Namespace Renaming: Aligned file paths and namespaces (
SystemGameManager.ViewvsSystemGameManager.View2) with the new folder structure. - File Consolidation: Deleted intermediate pages (
Info,MenuPage,Settingsplaceholders) and services (GameManagerViewService,ViewService) that were no longer strictly necessary for the WebView-based routing system.