From 6fe1d556071416122af362064c78873babcfe9cf Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 22 Apr 2023 12:21:48 +0200 Subject: [PATCH] Always set default primary and accent colors --- material/base.html | 4 ++-- material/partials/header.html | 6 ++++-- src/base.html | 4 ++-- src/partials/header.html | 8 +++++--- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/material/base.html b/material/base.html index 5dcef972b..9e08a86d0 100644 --- a/material/base.html +++ b/material/base.html @@ -81,8 +81,8 @@ {% set palette = palette | first %} {% endif %} {% set scheme = palette.scheme | d("default", true) %} - {% set primary = palette.primary | d("", true) %} - {% set accent = palette.accent | d("", true) %} + {% set primary = palette.primary | d("indigo", true) %} + {% set accent = palette.accent | d("indigo", true) %} {% else %} diff --git a/material/partials/header.html b/material/partials/header.html index 89f9513be..eafbea141 100644 --- a/material/partials/header.html +++ b/material/partials/header.html @@ -36,8 +36,10 @@ {% if not config.theme.palette is mapping %}
{% for option in config.theme.palette %} - {% set scheme = option.scheme | d("default", true) %} - + {% set scheme = option.scheme | d("default", true) %} + {% set primary = option.primary | d("indigo", true) %} + {% set accent = option.accent | d("indigo", true) %} + {% if option.toggle %}