From 49c7a2bba8dc4e87a88c0a164dad841cbbabad63 Mon Sep 17 00:00:00 2001 From: Miguel Astor Date: Thu, 26 Feb 2026 03:18:13 -0400 Subject: [PATCH] Add brutalism template with bold industrial style Features high-contrast colors, thick borders, hard shadows, monospace typography, and no rounded corners. Uses custom background placeholder that shows theme color when no image is specified. Co-Authored-By: Claude Opus 4.5 --- brutalism.html | 1215 ++++++++++++++++++++++++++++++++++++++++++++ generate_report.py | 3 + 2 files changed, 1218 insertions(+) create mode 100644 brutalism.html diff --git a/brutalism.html b/brutalism.html new file mode 100644 index 0000000..009964d --- /dev/null +++ b/brutalism.html @@ -0,0 +1,1215 @@ + + + + + + Lutris Playtime Report + + + + + + + + + + +
+
+

Lutris Playtime Report

+
+
+
+
+
+ +
+
+

Statistics

+
+
+
+
+
__TOTAL_LIBRARY__
+
Games in Library
+
+
+
0
+
Games Played
+
+
+
0h
+
Total Playtime
+
+
+
+
+ +
+
+

Playtime Distribution

+
+
+
+
+
Top Games
+ +
+
+
By Category
+ +
+
+
+
+ +
+
+

Summaries

+
+
+
+
Top Games
+
By Category
+
+
+
+
+ + + + + + + + + + +
#GamePlaytime%
+
+
+
+
+ + + + + + + + + + +
#CategoryPlaytime%
+
+
+
+
+
+ + + + diff --git a/generate_report.py b/generate_report.py index 64653ab..371927e 100644 --- a/generate_report.py +++ b/generate_report.py @@ -98,8 +98,10 @@ def generate_report(db_path: str, output_path: str, top_n: int, assets_dir: str, # Load background image (custom or default stripes) if bg_image_path and Path(bg_image_path).exists(): background_image = load_asset_as_base64(Path(bg_image_path), "image/png") + background_image_custom = f"url('{background_image}')" else: background_image = load_asset_as_base64(assets_path / "Others" / "stripes.png", "image/png") + background_image_custom = "none" # For templates that prefer no default background # Load fonts font_charcoal = load_asset_as_base64(assets_path / "Charcoal.ttf", "font/truetype") @@ -131,6 +133,7 @@ def generate_report(db_path: str, output_path: str, top_n: int, assets_dir: str, html = html.replace("__FONT_CHARCOAL__", font_charcoal) html = html.replace("__FONT_MONACO__", font_monaco) html = html.replace("__BACKGROUND_IMAGE__", background_image) + html = html.replace("__BACKGROUND_IMAGE_CUSTOM__", background_image_custom) html = html.replace("__TITLEBAR_BG__", titlebar_bg) html = html.replace("__TITLE_STRIPES__", title_stripes) html = html.replace("__CLOSE_BTN__", close_btn)