From 43c8d4d0138984df77c395242bc52af8a26b4752 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Tue, 13 Sep 2022 07:54:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20fix=20text=20readabilit?= =?UTF-8?q?y=20&=20avif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/configuration.md | 2 +- src/assets.py | 2 +- src/html_fn.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index edb7344..6be2f9d 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -19,4 +19,4 @@ Specify mirror urls inside of `mirrors.txt` and it will be served at `/mirrors.t The site colors can be configured with pywal. Place pywal's colors.json in the config folder. ## Background -To set a background picture place it at `config/wall.png` \ No newline at end of file +To set a background picture place it at `config/wall.avif` \ No newline at end of file diff --git a/src/assets.py b/src/assets.py index 05e41c3..cb9f373 100644 --- a/src/assets.py +++ b/src/assets.py @@ -20,4 +20,4 @@ def me_picture(): @asset_pages.route("/wall") def wall_bg(): - return filesend("/config/wall.png") + return filesend("/config/wall.avif") diff --git a/src/html_fn.py b/src/html_fn.py index 96ea133..6a5d10e 100644 --- a/src/html_fn.py +++ b/src/html_fn.py @@ -21,8 +21,8 @@ def buildSite(content, title=None, disable_color=False): bg = colors()["colors"][f"color{i}"] c_style = f"background: {bg}; color: {fg};" - if os.path.exists("/config/wall.png"): - c_style += "background-image: url('assets/wall');background-size:cover" + if os.path.exists("/config/wall.avif"): + c_style += "background-image: url('assets/wall');background-size:cover;text-shadow: 1px 1px 3px black;" return Document( head=Head(