diff --git a/data/Dockerfiles/sogo/Dockerfile b/data/Dockerfiles/sogo/Dockerfile index b00e2f73..bb429326 100644 --- a/data/Dockerfiles/sogo/Dockerfile +++ b/data/Dockerfiles/sogo/Dockerfile @@ -42,7 +42,8 @@ RUN mkdir /usr/share/doc/sogo \ COPY ./bootstrap-sogo.sh / COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf COPY supervisord.conf /etc/supervisor/supervisord.conf -COPY theme.js /usr/lib/GNUstep/SOGo/WebServerResources/js/theme.js +COPY theme-blue.js /usr/lib/GNUstep/SOGo/WebServerResources/js/theme-blue.js +COPY theme-green.js /usr/lib/GNUstep/SOGo/WebServerResources/js/theme-green.js COPY sogo-full.svg /usr/lib/GNUstep/SOGo/WebServerResources/img/sogo-full.svg CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf diff --git a/data/Dockerfiles/sogo/theme.js b/data/Dockerfiles/sogo/theme-blue.js similarity index 100% rename from data/Dockerfiles/sogo/theme.js rename to data/Dockerfiles/sogo/theme-blue.js diff --git a/data/Dockerfiles/sogo/theme-green.js b/data/Dockerfiles/sogo/theme-green.js new file mode 100644 index 00000000..35a6f788 --- /dev/null +++ b/data/Dockerfiles/sogo/theme-green.js @@ -0,0 +1,61 @@ +/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ + +(function() { + 'use strict'; + + angular.module('SOGo.Common') + .config(configure) + + /** + * @ngInject + */ + configure.$inject = ['$mdThemingProvider']; + function configure($mdThemingProvider) { + + + /** + * Define the Alternative theme + */ + $mdThemingProvider.theme('mailcow') + .primaryPalette('green', { + 'default': '600', // top toolbar + 'hue-1': '200', + 'hue-2': '600', // sidebar toolbar + 'hue-3': 'A700' + }) + .accentPalette('green', { + 'default': '600', // fab buttons + 'hue-1': '50', // center list toolbar + 'hue-2': '400', + 'hue-3': 'A700' + }) + .backgroundPalette('grey', { + 'default': '50', // center list background + 'hue-1': '50', + 'hue-2': '100', + 'hue-3': '100' + }); + $mdThemingProvider.theme('default') + .primaryPalette('green', { + 'default': '600', // top toolbar + 'hue-1': '200', + 'hue-2': '600', // sidebar toolbar + 'hue-3': 'A700' + }) + .accentPalette('green', { + 'default': '600', // fab buttons + 'hue-1': '50', // center list toolbar + 'hue-2': '400', + 'hue-3': 'A700' + }) + .backgroundPalette('grey', { + 'default': '50', // center list background + 'hue-1': '50', + 'hue-2': '100', + 'hue-3': '100' + }); + + $mdThemingProvider.setDefaultTheme('mailcow'); + $mdThemingProvider.generateThemesOnDemand(false); + } +})(); diff --git a/data/conf/sogo/sogo.conf b/data/conf/sogo/sogo.conf index 73cc2864..40e3928c 100644 --- a/data/conf/sogo/sogo.conf +++ b/data/conf/sogo/sogo.conf @@ -14,7 +14,7 @@ SOGoEnableEMailAlarms = NO; SOGoFoldersSendEMailNotifications = YES; SOGoForwardEnabled = YES; - SOGoUIAdditionalJSFiles = (js/theme.js); + SOGoUIAdditionalJSFiles = (js/theme-blue.js); // Multi-domain setup // Domains are isolated, you can define visibility options here.