Create a whatsapp-alike theme #97

This commit is contained in:
KnugiHK
2025-01-02 16:01:25 +08:00
parent 7117716e5b
commit a0b8167121
4 changed files with 391 additions and 9 deletions

View File

@@ -376,10 +376,10 @@ def get_status_location(output_folder, offline_static):
w3css = os.path.join(offline_static, "w3.css")
def setup_template(template, no_avatar):
if template is None:
def setup_template(template, no_avatar, experimental=False):
if template is None or experimental:
template_dir = os.path.dirname(__file__)
template_file = "whatsapp.html"
template_file = "whatsapp.html" if not experimental else template
else:
template_dir = os.path.dirname(template)
template_file = os.path.basename(template)