From b3b103cbbfc8cf14f79421b269ade59e6264ee10 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Tue, 20 Feb 2001 15:46:20 +0000 Subject: [PATCH] phase 1 of interface improvements -- alternating row colors (needs some work) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1143 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 1 + functions/mailbox_display.php | 16 +++++++++++++--- themes/deepocean_theme.php | 1 + themes/default_theme.php | 1 + themes/forest_theme.php | 1 + themes/plain_blue_theme.php | 1 + themes/purple_theme.php | 1 + themes/slashdot_theme.php | 1 + 8 files changed, 20 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0d727f78..984bfa8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ Version 1.1.0 -- DEVELOPMENT ---------------------------- - Added collapseable folder listing (an option that can be turned on) +- Added alternating row colors to improve interface Version 1.0.3 -- DEVELOPMENT ---------------------------- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index afb0549d..ed3bf981 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -18,6 +18,17 @@ global $message_highlight_list; global $index_order; + if (!isset($GLOBALS["row_count"])) { + $GLOBALS["row_count"] = 0; + } + $GLOBALS["row_count"]++; + if ($GLOBALS["row_count"] % 2) { + if (!isset($color[12])) $color[12] = "#EAEAEA"; + $color_string = $color[12]; + } else { + $color_string = $color[4]; + } + $msg = $msgs[$key]; $senderName = sqimap_find_displayable_name($msg['FROM']); @@ -82,7 +93,7 @@ } if (!isset($hlt_color)) - $hlt_color = $color[4]; + $hlt_color = $color_string; if ($where && $what) { $search_stuff = '&where='.urlencode($where).'&what='.urlencode($what); @@ -479,7 +490,6 @@ global $color, $index_order, $auto_expunge, $move_to_trash; global $checkall, $sent_folder; $urlMailbox = urlencode($mailbox); - /** This is the beginning of the message list table. It wraps around all messages */ echo ''; @@ -532,7 +542,7 @@ echo ''; echo "
"; - echo ""; + echo "
"; echo ""; $urlMailbox=urlencode($mailbox); diff --git a/themes/deepocean_theme.php b/themes/deepocean_theme.php index 09a86d28..34cba159 100644 --- a/themes/deepocean_theme.php +++ b/themes/deepocean_theme.php @@ -18,4 +18,5 @@ $color[9] = "#587B99"; // (mid-gray) Darker version of #0 $color[10] = "#496E8B"; // (dark gray) Darker version of #9 $color[11] = "#A7C5F3"; // (dark red) Special Folders color + $color[12] = "#7092B4"; ?> diff --git a/themes/default_theme.php b/themes/default_theme.php index cdaa67ca..183b75ed 100644 --- a/themes/default_theme.php +++ b/themes/default_theme.php @@ -28,4 +28,5 @@ $color[9] = "#ABABAB"; // (mid-gray) Darker version of #0 $color[10] = "#666666"; // (dark gray) Darker version of #9 $color[11] = "#770000"; // (dark red) Special Folders color + $color[12] = "#EDEDED"; ?> diff --git a/themes/forest_theme.php b/themes/forest_theme.php index 53f91ed7..302d710a 100644 --- a/themes/forest_theme.php +++ b/themes/forest_theme.php @@ -18,4 +18,5 @@ $color[9] = "#88a990"; // (mid purp) Darker version of #0 $color[10] = "#5E7F67"; // (dark purp) Darker version of #9 $color[11] = "#4A9B62"; // (dark red) Special Folders color + $color[12] = "#D2F3DA"; ?> diff --git a/themes/plain_blue_theme.php b/themes/plain_blue_theme.php index c40ec64f..4ae57373 100644 --- a/themes/plain_blue_theme.php +++ b/themes/plain_blue_theme.php @@ -16,4 +16,5 @@ $color[9] = "#83A0BA"; // Darker version of #0 $color[10] = "#376589"; // Darker version of #9 $color[11] = "#770000"; // Special Folders color + $color[12] = "#EDEDED"; // Alternating rows color ?> diff --git a/themes/purple_theme.php b/themes/purple_theme.php index c5365e0a..f757c195 100644 --- a/themes/purple_theme.php +++ b/themes/purple_theme.php @@ -18,4 +18,5 @@ $color[9] = "#877C9F"; // (mid purp) Darker version of #0 $color[10] = "#726987"; // (dark purp) Darker version of #9 $color[11] = "#770000"; // (dark red) Special Folders color + $color[12] = "#E0D9F2"; ?> diff --git a/themes/slashdot_theme.php b/themes/slashdot_theme.php index 485ca98a..eb818c32 100644 --- a/themes/slashdot_theme.php +++ b/themes/slashdot_theme.php @@ -19,4 +19,5 @@ $color[9] = "#ABABAB"; // (mid-gray) Darker version of #0 $color[10] = "#666666"; // (dark gray) Darker version of #9 $color[11] = "#770000"; // (dark red) Special Folders color + $color[12] = "#EAEAEA"; ?> -- 2.25.1