Subject: [bug#74634] [PATCH shepherd website 1/5] logo: Remove adaptation to user's preferred color scheme.

From: [email-masked]
Date: Sun, 1 Dec 2024 11:19:46 -0500

From: Luis Felipe <[email-masked]>

The website's CSS doesn't adapt to user's preferred color scheme yet,
but the logo image did. This created an accessibility problem for
users who prefer a dark scheme: the whitish version of the logo was
displayed on the whitish pages of the website. This change solves that
problem.

* haunt.scm (page-layout): Always use the logo for light backgrounds.
---
 haunt.scm | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/haunt.scm b/haunt.scm
index 23a0efa..f561fc9 100644
--- a/haunt.scm
+++ b/haunt.scm
@@ -95,11 +95,8 @@
                      (a (@ (href ,(base-url "/"))
                            (class ,(if front-page?
                                        "logo" "logo small")))
-                        (picture
-                         (source (@ (media "(prefers-color-scheme: dark)")
-                                    (srcset ,(image-url "logo-dark.svg"))))
-                         (img (@ (src ,(image-url "logo-light.svg"))
-                                 (alt "Shepherd logo")))))
+                        (img (@ (src ,(image-url "logo-light.svg"))
+                                (alt "Shepherd logo"))))
 
                      ;; Add the large-font welcoming message on the
                      ;; front page.
-- 
2.46.0