diff --git a/generate_report.py b/generate_report.py index 6ddd18f..839a4b3 100644 --- a/generate_report.py +++ b/generate_report.py @@ -121,6 +121,27 @@ HTML_TEMPLATE = """ position: relative; z-index: 1; } + .window-hide { + width: 13px; + height: 13px; + background-image: url('__HIDE_BTN__'); + background-size: contain; + background-repeat: no-repeat; + flex-shrink: 0; + position: relative; + z-index: 1; + } + .window-shade { + width: 13px; + height: 13px; + background-image: url('__SHADE_BTN__'); + background-size: contain; + background-repeat: no-repeat; + flex-shrink: 0; + position: relative; + z-index: 1; + margin-left: 4px; + } .window-title { flex: 1; text-align: center; @@ -437,6 +458,8 @@ HTML_TEMPLATE = """
Lutris Playtime Report
+
+
@@ -447,6 +470,8 @@ HTML_TEMPLATE = """
Statistics
+
+
@@ -470,6 +495,8 @@ HTML_TEMPLATE = """
Playtime Distribution
+
+
@@ -482,6 +509,8 @@ HTML_TEMPLATE = """
Summaries
+
+
@@ -854,6 +883,8 @@ def generate_report(db_path: str, output_path: str, top_n: int, assets_dir: str, titlebar_bg = load_asset_as_base64(assets_path / "Windows" / "title-1-active.png", "image/png") title_stripes = load_asset_as_base64(assets_path / "Windows" / "title-1-active.png", "image/png") close_btn = load_asset_as_base64(assets_path / "Windows" / "close-active.png", "image/png") + hide_btn = load_asset_as_base64(assets_path / "Windows" / "maximize-active.png", "image/png") + shade_btn = load_asset_as_base64(assets_path / "Windows" / "shade-active.png", "image/png") check_off = load_asset_as_base64(assets_path / "Check-Radio" / "check-normal.png", "image/png") check_on = load_asset_as_base64(assets_path / "Check-Radio" / "check-active.png", "image/png") @@ -876,6 +907,8 @@ def generate_report(db_path: str, output_path: str, top_n: int, assets_dir: str, html = html.replace("__TITLEBAR_BG__", titlebar_bg) html = html.replace("__TITLE_STRIPES__", title_stripes) html = html.replace("__CLOSE_BTN__", close_btn) + html = html.replace("__HIDE_BTN__", hide_btn) + html = html.replace("__SHADE_BTN__", shade_btn) html = html.replace("__CHECK_OFF__", check_off) html = html.replace("__CHECK_ON__", check_on) html = html.replace("__SCROLLBAR_TROUGH_V__", scrollbar_trough_v)