Added additional fake buttons to the window titles.
This commit is contained in:
@@ -121,6 +121,27 @@ HTML_TEMPLATE = """<!DOCTYPE html>
|
||||
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 = """<!DOCTYPE html>
|
||||
<div class="window-titlebar">
|
||||
<div class="window-close"></div>
|
||||
<div class="window-title">Lutris Playtime Report</div>
|
||||
<div class="window-hide"></div>
|
||||
<div class="window-shade"></div>
|
||||
</div>
|
||||
<div class="window-content">
|
||||
<div class="filters" id="filters"></div>
|
||||
@@ -447,6 +470,8 @@ HTML_TEMPLATE = """<!DOCTYPE html>
|
||||
<div class="window-titlebar">
|
||||
<div class="window-close"></div>
|
||||
<div class="window-title">Statistics</div>
|
||||
<div class="window-hide"></div>
|
||||
<div class="window-shade"></div>
|
||||
</div>
|
||||
<div class="window-content">
|
||||
<div class="stats">
|
||||
@@ -470,6 +495,8 @@ HTML_TEMPLATE = """<!DOCTYPE html>
|
||||
<div class="window-titlebar">
|
||||
<div class="window-close"></div>
|
||||
<div class="window-title">Playtime Distribution</div>
|
||||
<div class="window-hide"></div>
|
||||
<div class="window-shade"></div>
|
||||
</div>
|
||||
<div class="window-content">
|
||||
<div class="chart-container">
|
||||
@@ -482,6 +509,8 @@ HTML_TEMPLATE = """<!DOCTYPE html>
|
||||
<div class="window-titlebar">
|
||||
<div class="window-close"></div>
|
||||
<div class="window-title">Summaries</div>
|
||||
<div class="window-hide"></div>
|
||||
<div class="window-shade"></div>
|
||||
</div>
|
||||
<div class="window-content">
|
||||
<div class="tabs">
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user