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 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user