summaryrefslogtreecommitdiffstats
path: root/browser/html/cool.html.m4
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2021-12-11 03:37:03 +0530
committerPranam Lashkari <plashkari628@gmail.com>2022-01-25 12:09:01 +0530
commitc5f2c5e1747e5344cb1a87ad679a5a960ff81813 (patch)
tree12810fe340675f6ba0d2ddd4cd83c58ce29f1432 /browser/html/cool.html.m4
parentcypress: fix: inconsistent text wrapping tests in calc (diff)
downloadonline-c5f2c5e1747e5344cb1a87ad679a5a960ff81813.tar.gz
online-c5f2c5e1747e5344cb1a87ad679a5a960ff81813.zip
theme: added config flag to switch between integration and cool themes
Signed-off-by: Pranam Lashkari <lpranam@collabora.com> Change-Id: I679328e29f2e2297491c73249632627d01a1bf42
Diffstat (limited to 'browser/html/cool.html.m4')
-rw-r--r--browser/html/cool.html.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/browser/html/cool.html.m4 b/browser/html/cool.html.m4
index 2f97f601fc..845ad78fab 100644
--- a/browser/html/cool.html.m4
+++ b/browser/html/cool.html.m4
@@ -301,7 +301,8 @@ m4_ifelse(MOBILEAPP,[true],
window.frameAncestors = '';
window.socketProxy = false;
window.tileSize = 256;
- window.uiDefaults = {};],
+ window.uiDefaults = {};
+ window.useIntegrationTheme = 'false';],
[window.host = '%HOST%';
window.serviceRoot = '%SERVICE_ROOT%';
window.hexifyUrl = %HEXIFY_URL%;
@@ -314,6 +315,7 @@ m4_ifelse(MOBILEAPP,[true],
window.enableWelcomeMessage = %ENABLE_WELCOME_MSG%;
window.enableWelcomeMessageButton = %ENABLE_WELCOME_MSG_BTN%;
window.userInterfaceMode = '%USER_INTERFACE_MODE%';
+ window.useIntegrationTheme = '%USE_INTEGRATION_THEME%';
window.enableMacrosExecution = '%ENABLE_MACROS_EXECUTION%';
window.outOfFocusTimeoutSecs = %OUT_OF_FOCUS_TIMEOUT_SECS%;
window.idleTimeoutSecs = %IDLE_TIMEOUT_SECS%;
@@ -342,7 +344,7 @@ brandingLink.setAttribute("type", "text/css");
var theme_name = document.getElementsByName("theme")[[0]] ? document.getElementsByName("theme")[[0]].value : '';
var theme_prefix = '';
-if(theme_name.includes("nextcloud")) {
+if(window.useIntegrationTheme === 'true' && theme_name.includes("nextcloud")) {
theme_prefix = 'nextcloud/';
}