I started from reading docs
Then this topic
Under impression that I’ll make SoGo looks customized in a heartbeat, I made this:
- Uncommented a code inside the sample file
sudo vi /opt/mailcow-dockerized/data/conf/sogo/custom-theme.js
- Restarted both containers
sudo docker-compose restart memcached-mailcow sogo-mailcow
- Cleared browser’s cache and reloaded the page.
- And….nothing is changed in SoGo’s UI
If I issue
sudo docker exec -it mailcowdockerized-sogo-mailcow-1 cat /sogo_web/WebServerResources/js/theme.js
I see exactly the same custom-theme.js, which is on host:
(function() {
'use strict';
angular.module('SOGo.Common')
.config(configure)
configure.$inject = ['$mdThemingProvider'];
function configure($mdThemingProvider) {
var greyMap = $mdThemingProvider.extendPalette('grey', {
'200': 'F5F5F5',
'300': 'E5E5E5',
'1000': '4C566A'
});
var greenCow = $mdThemingProvider.extendPalette('grey', {
'600': 'E5E5E5'
});
$mdThemingProvider.definePalette('frost-grey', greyMap);
$mdThemingProvider.definePalette('blue-cow', greenCow);
$mdThemingProvider.theme('default')
.primaryPalette('blue-cow', {
'default': '400',
'hue-1': '400',
'hue-2': '600',
'hue-3': 'A700'
})
.accentPalette('grey', {
'default': '600',
'hue-1': '300',
'hue-2': '300',
'hue-3': 'A700'
})
.backgroundPalette('frost-grey');
$mdThemingProvider.generateThemesOnDemand(false);
}
})();
``` !<
Then I tried to use duli's suggested contents, but not succeeded too.
Yes, I know, that by creating custom-theme.css
and by mapping it into the SoGo container I’ll change the look of UI, but why can’t I make it by the easy way?