From 9d94fb8695e26d5b376ad61def9fc077b266ddee Mon Sep 17 00:00:00 2001 From: dilgenfritz Date: Tue, 11 Nov 2025 20:54:26 -0600 Subject: [PATCH] Add Library theme with user images + fix theme system New Library Theme Feature: - Added 'Library (Random)' option to theme dropdown - Uses random images from user's linked directories - Fresh random selection on each page load/theme change - Displays 10 random images from personal collection on home screen Theme System Improvements: - Updated applyTheme() to handle async library theme loading - Added applyLibraryTheme() function with proper error handling - Fixed CSS loading to skip image-based themes (library, hentai, etc.) - Improved file path handling for Electron environment - Added fallback to hentai theme when no library images found Enhanced Dropdown: - Added BBC and feet themes with proper image mappings - Added Library theme with folder icon - All 6 theme options now fully functional Result: Personalized home screen using user's own image collection! --- index.html | 193 ++++++++++++++++++++++++++++++++++++++++++----- src/core/game.js | 4 +- 2 files changed, 179 insertions(+), 18 deletions(-) diff --git a/index.html b/index.html index 9c84b5f..3cf6b15 100644 --- a/index.html +++ b/index.html @@ -256,6 +256,9 @@ @@ -1307,24 +1310,69 @@