Separated the modern theme script into it's own file.

This commit is contained in:
Miguel Astor
2026-03-03 03:56:39 -04:00
parent b56b7176a8
commit afd11fba3a
9 changed files with 712 additions and 600 deletions

View File

@@ -46,9 +46,14 @@ python generate_report.py --db pga.db --output report.html --top 10 --background
**Style system (`styles.py`):**
- CSS definitions for each modern style (brutalism, glassmorphism, neumorphism)
- Theme configurations (colors, fonts, chart options) injected via `__THEME_CSS__` and `__THEME_CONFIG__`
- Theme configurations (colors, fonts, chart options) injected via `__THEME_CSS__`
- Use `--style` argument to select a modern style instead of `--template`
**Javascript (`templates/script.js`):**
- A single common script is used for each modern style (brutalism, glassmorphism, neumorphism)
- Theme configurations (colors, fonts, chart options) injected via `__THEME_CONFIG__`
- Data inserted via `__ALL_GAMES__` and `__TOP_N__`
**Database schema (`schema.py`):**
- Reference file documenting Lutris database structure
- Key tables: `games` (with `playtime`, `service` fields), `categories`, `games_categories` (many-to-many join)