Compact and weeks view are considered dark despite having light background

The template footer.html contains the following code to change footer logo according to dark or light background:

{% set filename = 'indico_small_white.png' if dark else 'indico_small.png' %}
 <img src="{{ url_for('assets.image', filename=filename) }}" class="footer-logo" alt="Indico">

However, compact and weeks view are considered dark despite having light background causing the footer logo to blend with the background. This is also the case for CERN’s Indico, so I think its a bug?

Yeah, we set the dark flag based on the context (e.g. event type). We don’t really know what those themes aren’t dark even though the corresponding event type usually is.

1 Like