From 33795d9561c18c81a202ae83ee6721cbcc81350f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Dywicki?= Date: Mon, 25 Apr 2022 18:42:47 +0200 Subject: [PATCH] Allow resource overrides for main UI. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit solves #551 where user requested a way to customize UI colors or logo. Now, with OSGi bundle fragment, just like in OH 2.5 it is possible to put new/additional resources. Just create an OSGi fragment with patch/app/index.html, patch/app/css/xyz.css. After reload of system, if fragment is matched properly, patched index will take a rule over default one. Signed-off-by: Ɓukasz Dywicki --- bundles/org.openhab.ui/bnd.bnd | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.openhab.ui/bnd.bnd b/bundles/org.openhab.ui/bnd.bnd index a9483d06b8..78bce5b6ef 100644 --- a/bundles/org.openhab.ui/bnd.bnd +++ b/bundles/org.openhab.ui/bnd.bnd @@ -1,2 +1,3 @@ Bundle-SymbolicName: ${project.artifactId} Service-Component: OSGI-INF/*.xml +Bundle-ClassPath: /patch,.