Thank you for this information. It has a value. Unfortunately because
I am using Zentyal as a server UI it automatically generates sogo.conf
and so would overwrite such custom .js insertions each time the Zentyal
config was resaved.
So unless someone else pulls a rabbit out of a hat, I will have to wait
until Sogo comes out with a supported measure for instance a
conf.d/mytheme.css option.
Sincerely,
Jay
On 9/21/2017 11:55 PM, dan le bray ([email protected]) wrote:
Hello,
Le 21/09/2017 à 20:49, Marcio Merlone ([email protected]) a écrit :
Em 13/09/2017 15:36, Jay Lepore ([email protected]) escreveu:
I am using Sogo 3.2.1 and was wondering if there was a way for me to
control the colors used by Sogo ie; modify the bright green to
something of our preference ?
What sayeth the group ?
Hi,
Sorry for not coming with a solution, I have the same question. I have
checked the FAQ (1), followed the instructions and nothing changed:
mkdir -p ~sogo/GNUstep/SOGo/WebServerResources/css/
cp /usr/lib/GNUstep/SOGo/WebServerResources/css/theme-default.css
~sogo/GNUstep/SOGo/WebServerResources/css/
vi ~sogo/GNUstep/SOGo/WebServerResources/css/theme-default.css
mkdir ~sogo/GNUstep/SOGo/WebServerResources/js/
cp /usr/lib/GNUstep/SOGo/WebServerResources/js/Common.js
~sogo/GNUstep/SOGo/WebServerResources/js/
vi ~sogo/GNUstep/SOGo/WebServerResources/js/Common.js
It only mentions .wox files, but the color definitions are not there. If
I edit the original files on their original locations then it obviously
works, but I guess it will not survive an update. Other than that, no
other information anywhere on internet on how to customize at least the
colors. I managed to change the logos by using mod_rewrite on apache,
but the colors are still an issue.
Any hint?
(1) https://sogo.nu/nc/support/faq/article/how-to-customize-the-html-2.html
Thanks, best regards.
We successfully managed to custom colors using a little JavaScript and a
custom CSS files.
At first, we made a copy of the default CSS
(/usr/lib/GNUstep/SOGo/WebServerResources/css/theme-default.css) into a
custom directory
(/usr/lib/GNUstep/SOGo/WebServerResources/local/ulh.css) and set some
modifications into it. Then we added a custom JS file which will load
that CSS (/usr/lib/GNUstep/SOGo/WebServerResources/local/ulh.js).
Finally, we added that JS to SOGo configuration file (/etc/sogo/sogo.conf):
---
SOGoUIAdditionalJSFiles = ("local/ulh.js"); // this is an array, keep
the parenthesis!
---
After restarting SOGo, we do have custom colors loaded at runtime
The JS file is:
---
var ulhCss = "/SOGo.woa/WebServerResources/local/ulh.css";
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = ulhCss;
link.media = 'all';
head.appendChild(link);
---
This may not the smartest way of doing color customizations but it's
quite simple and easy ^^
--
[email protected]
https://inverse.ca/sogo/lists