diff --git a/themes/default/template.php b/themes/default/template.php
index 9f8df7f76a..882d15176f 100644
--- a/themes/default/template.php
+++ b/themes/default/template.php
@@ -414,8 +414,20 @@ echo "
\n";
echo " \n";
echo " \n";
- $bgcolor1 = "#eaedf2";
- $bgcolor2 = "#fff";
+ //alternating background colors of inactive domains
+ if ($_SESSION['theme']['domain_inactive_background_color'][0]['text'] != '') {
+ $bgcolor1 = $_SESSION['theme']['domain_inactive_background_color'][0];
+ }
+ else {
+ $bgcolor1 = "#eaedf2";
+ }
+ if ($_SESSION['theme']['domain_inactive_background_color'][1]['text'] != '') {
+ $bgcolor2 = $_SESSION['theme']['domain_inactive_background_color'][1];
+ }
+ else {
+ $bgcolor2 = "#fff";
+ }
+
foreach($_SESSION['domains'] as $domain) {
//active domain color
$bgcolor = ($bgcolor == $bgcolor1) ? $bgcolor2 : $bgcolor1;