From 0ed71086edd03d90fc8813e495535146eff224a8 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 12 Dec 2024 08:28:15 +1100 Subject: [PATCH 1/2] Ensure light mode is forced in backoffice on Drupal 7 builds --- src/civibuild.lib.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/civibuild.lib.sh b/src/civibuild.lib.sh index 0f962575..841760db 100644 --- a/src/civibuild.lib.sh +++ b/src/civibuild.lib.sh @@ -645,6 +645,9 @@ function civicrm_enable_riverlea_theme() { if civicrm_check_ver '>' 5.80.alpha1 ; then cv en --ignore-missing riverlea cv vset theme_backend=minetta + if [[ "$CIVI_UF" == "Drupal" ]]; then + cv vset riverlea_dark_mode_backend=light + fi fi } From 95aef049515321406b8c7c605eec787615a62eb5 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 12 Dec 2024 14:55:56 +1100 Subject: [PATCH 2/2] Also apply setting to WordPress installs as well --- src/civibuild.lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/civibuild.lib.sh b/src/civibuild.lib.sh index 841760db..8ccd4fbd 100644 --- a/src/civibuild.lib.sh +++ b/src/civibuild.lib.sh @@ -645,7 +645,7 @@ function civicrm_enable_riverlea_theme() { if civicrm_check_ver '>' 5.80.alpha1 ; then cv en --ignore-missing riverlea cv vset theme_backend=minetta - if [[ "$CIVI_UF" == "Drupal" ]]; then + if [[ "$CIVI_UF" == "Drupal" ] || [ "$CIVI_UF" == "WordPress" ]]; then cv vset riverlea_dark_mode_backend=light fi fi