From a2fc83d94e66c3abf995e2fba39ff668fd943336 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Tue, 6 Feb 2024 12:05:02 +0100 Subject: [PATCH] (control) Add configurable border styling To help distinguish between environments, a system property 'control.appBorder' is added that is injected as a body element border property in the control GUI stylesheets. --- .../java/nu/marginalia/control/ControlRendererFactory.java | 1 + .../resources/templates/control/partials/head-includes.hdb | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/services-core/control-service/src/main/java/nu/marginalia/control/ControlRendererFactory.java b/code/services-core/control-service/src/main/java/nu/marginalia/control/ControlRendererFactory.java index 06f7c7e2..47b7976d 100644 --- a/code/services-core/control-service/src/main/java/nu/marginalia/control/ControlRendererFactory.java +++ b/code/services-core/control-service/src/main/java/nu/marginalia/control/ControlRendererFactory.java @@ -34,6 +34,7 @@ public class ControlRendererFactory { baseRenderer.render(context, Map.of("global-context", Map.of( + "appBorder", System.getProperty("control.appBorder", "none;"), "nodes", nodeConfigurationService.getAll(), "hideMarginaliaApp", Boolean.getBoolean("control.hideMarginaliaApp") ) diff --git a/code/services-core/control-service/src/main/resources/templates/control/partials/head-includes.hdb b/code/services-core/control-service/src/main/resources/templates/control/partials/head-includes.hdb index 2725fca9..e7c10d09 100644 --- a/code/services-core/control-service/src/main/resources/templates/control/partials/head-includes.hdb +++ b/code/services-core/control-service/src/main/resources/templates/control/partials/head-includes.hdb @@ -1,4 +1,9 @@ - \ No newline at end of file + + \ No newline at end of file