diff --git a/gitlog.py b/gitlog.py index c0d6d95..2c01276 100644 --- a/gitlog.py +++ b/gitlog.py @@ -8,7 +8,7 @@ import mimetypes import html # --- Theme selection (choose one: "light1", "light2", "dark1", "dark2") --- -THEME = "dark2" # Change this to "light2", "dark1", or "dark2" as desired +THEME = "light1" # Change this to "light2", "dark1", or "dark2" as desired THEMES = { "light1": """ @@ -86,7 +86,7 @@ def HTML_TEMPLATE(content, theme=THEME): REPO_ROOT = os.path.abspath(".") LOG_FILE = os.path.join(REPO_ROOT, "gitlog.jsonl") -PORT = 8000 +PORT = 8481 def format_diff_to_html(diff_text: str) -> str: lines = diff_text.strip().splitlines() @@ -107,11 +107,11 @@ def format_diff_to_html(diff_text: str) -> str: if line.startswith('+++') or line.startswith('---'): html_lines.append(f'
{escaped}
') elif line.startswith('@@'): - html_lines.append(f'
{escaped}
') + html_lines.append(f'
{escaped}
') elif line.startswith('+'): - html_lines.append(f'
{escaped}
') + html_lines.append(f'
{escaped}
') elif line.startswith('-'): - html_lines.append(f'
{escaped}
') + html_lines.append(f'
{escaped}
') elif line.startswith('\\'): html_lines.append(f'
{escaped}
') else: diff --git a/src/snek/templates/index.html b/src/snek/templates/index.html index e12fe2b..417b75f 100644 --- a/src/snek/templates/index.html +++ b/src/snek/templates/index.html @@ -14,7 +14,7 @@ * { margin:0; padding:0; box-sizing:border-box; } body { font-family: 'Segoe UI',sans-serif; - background: #111; + background: #000; color: #eee; line-height:1.5; } @@ -187,6 +187,7 @@ .btn { width: 100%; box-sizing: border-box; text-align:center; } } + @@ -284,5 +285,35 @@ snek serve

© 2025 Snek – Join our global community of developers, testers & AI enthusiasts.

+ + +