From ecf5c1bd74140566ff58b5c6a88440483f2583b7 Mon Sep 17 00:00:00 2001 From: fidian Date: Fri, 28 Dec 2001 20:16:19 +0000 Subject: [PATCH] Added $color[15] for the "unselectable folders" color. Made left_main.php use $color[15] and fall back on $color[6] if not specified. Added a $color[15] for all themes. If you don't like the new color, just change it. :-) Fixed a bug in prefs.php. Updated themes.txt documentation. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1991 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- config/config_default.php | 4 ++-- doc/themes.txt | 5 +++-- functions/prefs.php | 2 +- src/left_main.php | 11 ++++++++- themes/black_bean_burrito_theme.php | 32 +++++++++++++------------- themes/blue_grey_theme.php | 27 +++++++++++----------- themes/bluesnews_theme.php | 27 +++++++++++----------- themes/bluesteel_theme.php | 26 ++++++++++----------- themes/christmas.php | 2 +- themes/dark_grey_theme.php | 25 +++++++++++---------- themes/darkness.php | 2 +- themes/deepocean2_theme.php | 28 +++++++++++------------ themes/deepocean_theme.php | 27 +++++++++++----------- themes/default_theme.php | 35 +++++++++++++++-------------- themes/dompie_theme.php | 27 +++++++++++----------- themes/forest_theme.php | 28 +++++++++++------------ themes/greenhouse_effect.php | 3 ++- themes/high_contrast_theme.php | 25 +++++++++++---------- themes/ice_theme.php | 25 +++++++++++---------- themes/in_the_pink.php | 2 +- themes/kind_of_blue.php | 8 +++---- themes/maize_theme.php | 25 +++++++++++---------- themes/methodical_theme.php | 28 +++++++++++------------ themes/midnight.php | 4 ++-- themes/monostochastic.php | 2 +- themes/plain_blue_theme.php | 27 +++++++++++----------- themes/sandstorm_theme.php | 25 +++++++++++---------- themes/seaspray_theme.php | 25 +++++++++++---------- themes/servery_theme.php | 26 ++++++++++----------- themes/shades_of_grey.php | 2 +- themes/slashdot_theme.php | 27 +++++++++++----------- themes/spice_of_life.php | 2 +- themes/spice_of_life_dark.php | 2 +- themes/spice_of_life_lite.php | 2 +- 34 files changed, 296 insertions(+), 272 deletions(-) diff --git a/config/config_default.php b/config/config_default.php index ff6dc45b..6cb02a44 100644 --- a/config/config_default.php +++ b/config/config_default.php @@ -327,8 +327,8 @@ $theme[15]['NAME'] = 'BluesNews'; $theme[16]['PATH'] = '../themes/deepocean2_theme.php'; $theme[16]['NAME'] = 'Deep Ocean 2'; -$theme[17]['PATH'] = '../themes/blue_gray_theme.php'; -$theme[17]['NAME'] = 'Blue Gray'; +$theme[17]['PATH'] = '../themes/blue_grey_theme.php'; +$theme[17]['NAME'] = 'Blue Grey'; $theme[18]['PATH'] = '../themes/dompie_theme.php'; $theme[18]['NAME'] = 'Dompie'; diff --git a/doc/themes.txt b/doc/themes.txt index 824c24f9..69b5598c 100644 --- a/doc/themes.txt +++ b/doc/themes.txt @@ -45,7 +45,7 @@ b 3: Left folder list background color b 4: Normal background color b 5: Header of the message index [From, Date, Subject] f 6: Normal text on the left folder list -f 7: Links in the right frame, Folders with subfolders in left frame +f 7: Links in the right frame f 8: Normal text [usually black] b 9: Darker version of #0 b 10: Darker version of #9 @@ -53,8 +53,9 @@ f 11: Special folders color [Inbox, Trash, Sent] b 12: Alternate color for message list [alters between 4 and this one] f 13: Color for single-quoted text ("> text") when reading (default: #800000) f 14: Color for text with more than one quote (default: #FF0000) +f 15: Non-selectable folders in the left frame (defaults to $color[6]) Next all you have to do is run conf.pl and add the theme to the list of themes available to you. If you would like your theme to be included in the distribution of SquirrelMail, just email it to - and I will review it. +. diff --git a/functions/prefs.php b/functions/prefs.php index a25ede50..65a32de0 100644 --- a/functions/prefs.php +++ b/functions/prefs.php @@ -15,7 +15,7 @@ global $prefs_are_cached, $prefs_cache; if ( !session_is_registered('prefs_are_cached') || !isset( $prefs_cache) || - !is_array( prefs_cache) ) { + !is_array( $prefs_cache) ) { $prefs_are_cached = false; $prefs_cache = array(); } diff --git a/src/left_main.php b/src/left_main.php index 890de549..bf0f1d5f 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -333,8 +333,17 @@ for ($i = 0;$i < count($boxes); $i++) { $line = "$prefix"; /* Add the folder name and link. */ + if (! isset($color[15])) { + if (isset($color[14])) { + $color[15] = $color[14]; + } elseif (isset($color[13])) { + $color[15] = $color[13]; + } else { + $color[15] = $color[6]; + } + } if (in_array('noselect', $boxes[$i]['flags'])) { - $line .= ""; + $line .= ""; if (ereg("^( *)([^ ]*)", $mailbox, $regs)) { $mailbox = str_replace(' ','',$mailbox); $line .= str_replace(' ', ' ', $mailbox); diff --git a/themes/black_bean_burrito_theme.php b/themes/black_bean_burrito_theme.php index b8c70042..784cbea7 100644 --- a/themes/black_bean_burrito_theme.php +++ b/themes/black_bean_burrito_theme.php @@ -13,20 +13,20 @@ */ global $color; -$color[0] = "#595959"; // (mid-dark gray) TitleBar -$color[1] = "#F88888"; // (light red) Quoted Replies in Emails -$color[2] = "#ff7171"; // (pinkish) Warning/Error Messages -$color[3] = "#000000"; // (black) Left Bar Background -$color[4] = "#000000"; // (black) Normal Background -$color[5] = "#373700"; // (dark yellow-green) Table Headers -$color[6] = "#D0D0D0"; // (off-white) Text on left bar -$color[7] = "#cfcfa0"; // (very dull yellow) Links -$color[8] = "#D0D0D0"; // (off-white) Normal text -$color[9] = "#414141"; // (dark gray) Darker version of #0 -$color[10] = "#292929"; // (darker gray) Darker version of #9 -$color[11] = "#AAAA44"; // (gold) Special Folders color -$color[12] = "#202020"; // (dark gray) Alternate color -$color[13] = "#FF7733"; // (orange-ish) Single-quoted text -$color[14] = "#FF3377"; // (pink-ish) 2 or more quotes - +$color[0] = '#595959'; // (mid-dark gray) TitleBar +$color[1] = '#F88888'; // (light red) Quoted Replies in Emails +$color[2] = '#ff7171'; // (pinkish) Warning/Error Messages +$color[3] = '#000000'; // (black) Left Bar Background +$color[4] = '#000000'; // (black) Normal Background +$color[5] = '#373700'; // (dark yellow-green) Table Headers +$color[6] = '#D0D0D0'; // (off-white) Text on left bar +$color[7] = '#cfcfa0'; // (very dull yellow) Links +$color[8] = '#D0D0D0'; // (off-white) Normal text +$color[9] = '#414141'; // (dark gray) Darker version of #0 +$color[10] = '#292929'; // (darker gray) Darker version of #9 +$color[11] = '#AAAA44'; // (gold) Special Folders color +$color[12] = '#202020'; // (dark gray) Alternate color +$color[13] = '#FF7733'; // (orange-ish) Single-quoted text +$color[14] = '#FF3377'; // (pink-ish) 2 or more quotes +$color[15] = '#414141'; // (darker gray) unselectable folders ?> diff --git a/themes/blue_grey_theme.php b/themes/blue_grey_theme.php index 6fbe70ba..782eaafa 100644 --- a/themes/blue_grey_theme.php +++ b/themes/blue_grey_theme.php @@ -13,18 +13,19 @@ */ global $color; -$color[0] = "#6188A9"; // (middle blue) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#294763"; // (dark blue) Left Bar Background -$color[4] = "#929292"; // (dark grey) Normal Background or C0C0C0 -$color[5] = "#597D9D"; // (middle blue) Table Headers -$color[6] = "#FFFFFF"; // (white) Text on left bar -$color[7] = "#FFFFFF"; // (white) Links -$color[8] = "#FFFFFF"; // (white) Normal text -$color[9] = "#587B99"; // (middle gray) Darker version of #0 -$color[10] = "#496E8B"; // (dark gray) Darker version of #9 -$color[11] = "#A7C5F3"; // (light blue) Special Folders color -$color[12] = "#7092B4"; +$color[0] = '#6188A9'; // (middle blue) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#294763'; // (dark blue) Left Bar Background +$color[4] = '#929292'; // (dark grey) Normal Background or C0C0C0 +$color[5] = '#597D9D'; // (middle blue) Table Headers +$color[6] = '#FFFFFF'; // (white) Text on left bar +$color[7] = '#FFFFFF'; // (white) Links +$color[8] = '#FFFFFF'; // (white) Normal text +$color[9] = '#587B99'; // (middle gray) Darker version of #0 +$color[10] = '#496E8B'; // (dark gray) Darker version of #9 +$color[11] = '#A7C5F3'; // (light blue) Special Folders color +$color[12] = '#7092B4'; +$color[15] = '#D0D0D0'; // (light gray) Unselectable folders ?> diff --git a/themes/bluesnews_theme.php b/themes/bluesnews_theme.php index b49e398c..30278458 100644 --- a/themes/bluesnews_theme.php +++ b/themes/bluesnews_theme.php @@ -16,18 +16,19 @@ */ global $color; -$color[0] = "#181818"; // (off-black) TitleBar -$color[1] = "#A0A0A0"; // (gray) Quoted Replies in Emails -$color[2] = "#800000"; // (red) Warning/Error Messages -$color[3] = "#000000"; // (black) Left Bar Background -$color[4] = "#000000"; // (black) Normal Background -$color[5] = "#000080"; // (bright blue) Table Headers -$color[6] = "#FFFF80"; // (bright yellow) Text on left bar -$color[7] = "#FFFF80"; // (bright yellow) Links -$color[8] = "#FFFFFF"; // (white) Normal text -$color[9] = "#000080"; // (bright blue) Darker version of #0 -$color[10] = "#000080"; // (bright blue) Darker version of #9 -$color[11] = "#3333FF"; // (dull blue) Special Folders color -$color[12] = "#808080"; // Alternate rows +$color[0] = '#181818'; // (off-black) TitleBar +$color[1] = '#A0A0A0'; // (gray) Quoted Replies in Emails +$color[2] = '#800000'; // (red) Warning/Error Messages +$color[3] = '#000000'; // (black) Left Bar Background +$color[4] = '#000000'; // (black) Normal Background +$color[5] = '#000080'; // (bright blue) Table Headers +$color[6] = '#FFFF80'; // (bright yellow) Text on left bar +$color[7] = '#FFFF80'; // (bright yellow) Links +$color[8] = '#FFFFFF'; // (white) Normal text +$color[9] = '#000080'; // (bright blue) Darker version of #0 +$color[10] = '#000080'; // (bright blue) Darker version of #9 +$color[11] = '#3333FF'; // (dull blue) Special Folders color +$color[12] = '#808080'; // Alternate rows +$color[15] = '#C0C060'; // (dull yellow) Unselectable folders ?> diff --git a/themes/bluesteel_theme.php b/themes/bluesteel_theme.php index e8734331..ee8e74b5 100644 --- a/themes/bluesteel_theme.php +++ b/themes/bluesteel_theme.php @@ -23,17 +23,17 @@ */ global $color; -$color[0] = "#A8A8A8"; // (darkish grey) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#475A94"; // (darkish blue) Left Bar Background -$color[4] = "#DEDFDF"; // (grey) Normal Background -$color[5] = "#FFFFCC"; // (light yellow) Table Headers -$color[6] = "#000000"; // (black) Text on left bar -$color[7] = "#0000CC"; // (blue) Links -$color[8] = "#000000"; // (black) Normal text -$color[9] = "#ABABAB"; // (mid-gray) Lighter version of #0 -$color[10] = "#666666"; // (dark gray) Darker version of #0 -$color[11] = "#770000"; // (dark red) Special Folders color - +$color[0] = '#A8A8A8'; // (darkish grey) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#475A94'; // (darkish blue) Left Bar Background +$color[4] = '#DEDFDF'; // (grey) Normal Background +$color[5] = '#FFFFCC'; // (light yellow) Table Headers +$color[6] = '#000000'; // (black) Text on left bar +$color[7] = '#0000CC'; // (blue) Links +$color[8] = '#000000'; // (black) Normal text +$color[9] = '#ABABAB'; // (mid-gray) Lighter version of #0 +$color[10] = '#666666'; // (dark gray) Darker version of #0 +$color[11] = '#770000'; // (dark red) Special Folders color +$color[15] = '#ABABAB'; // (mid-gray) Unselectable folders ?> diff --git a/themes/christmas.php b/themes/christmas.php index e3abfe44..b7111958 100644 --- a/themes/christmas.php +++ b/themes/christmas.php @@ -27,5 +27,5 @@ $color[9] = '#308F30'; // Darker version of #0 $color[10] = '#88AA88'; // Dimmed out folder color $color[11] = '#EE0000'; // Special folders / Unseen messages color $color[12] = '#DDFFDD'; // Alternate table row color - +$color[15] = '#AAFFAA'; // Unselectable folders ?> diff --git a/themes/dark_grey_theme.php b/themes/dark_grey_theme.php index 64a0c6ff..9d35c412 100644 --- a/themes/dark_grey_theme.php +++ b/themes/dark_grey_theme.php @@ -13,17 +13,18 @@ */ global $color; -$color[0] = "#B2B2B2"; // (gray) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#929292"; // (light gray) Left Bar Background -$color[4] = "#FFFFFF"; // (white) Normal Background -$color[5] = "#C0C0C0"; // (lighter grey) Table Headers -$color[6] = "#000000"; // (black) Text on left bar -$color[7] = "#303030"; // (dark gray) Links -$color[8] = "#000000"; // (black) Normal text -$color[9] = "#929292"; // (mid-gray) Darker version of #0 -$color[10] = "#505050"; // (dark gray) Darker version of #9 -$color[11] = "#770010"; // (dark red) Special Folders color +$color[0] = '#B2B2B2'; // (gray) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#929292'; // (light gray) Left Bar Background +$color[4] = '#FFFFFF'; // (white) Normal Background +$color[5] = '#C0C0C0'; // (lighter grey) Table Headers +$color[6] = '#000000'; // (black) Text on left bar +$color[7] = '#303030'; // (dark gray) Links +$color[8] = '#000000'; // (black) Normal text +$color[9] = '#929292'; // (mid-gray) Darker version of #0 +$color[10] = '#505050'; // (dark gray) Darker version of #9 +$color[11] = '#770010'; // (dark red) Special Folders color +$color[15] = '#440000'; // (darker red) Unselectable folders ?> diff --git a/themes/darkness.php b/themes/darkness.php index 3a48deff..d4a45fb4 100755 --- a/themes/darkness.php +++ b/themes/darkness.php @@ -100,7 +100,7 @@ $squirrelmail_plugin_hooks['generic_header']['theme_darkness'] = $used[] = array($r, $g, $b); } - $Left = array(1, 7, 11, 13, 14); + $Left = array(1, 7, 11, 13, 14, 15); $targetDistance = $TargetDistance; while (count($Left) > 0) { // Text colors -- Try to keep the colors distinct diff --git a/themes/deepocean2_theme.php b/themes/deepocean2_theme.php index 4a5ac14f..424ce1ac 100644 --- a/themes/deepocean2_theme.php +++ b/themes/deepocean2_theme.php @@ -14,18 +14,18 @@ */ global $color; -$color[0] = "#6188A9"; // (light gray) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#294763"; // (green-blue) Left Bar Background -$color[4] = "#FFFFFF"; // (white) Normal Background -$color[5] = "#597D9D"; // (light yellow) Table Headers -$color[6] = "#FFFFFF"; // (black) Text on left bar -$color[7] = "#000000"; // (blue) Links -$color[8] = "#000000"; // (black) Normal text -$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"; - +$color[0] = '#6188A9'; // (light gray) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#294763'; // (green-blue) Left Bar Background +$color[4] = '#FFFFFF'; // (white) Normal Background +$color[5] = '#597D9D'; // (light yellow) Table Headers +$color[6] = '#FFFFFF'; // (black) Text on left bar +$color[7] = '#000000'; // (blue) Links +$color[8] = '#000000'; // (black) Normal text +$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'; +$color[15] = '#83A1DA'; // (another blue) Unselectable folders color ?> diff --git a/themes/deepocean_theme.php b/themes/deepocean_theme.php index 9a627c53..573dbbc4 100644 --- a/themes/deepocean_theme.php +++ b/themes/deepocean_theme.php @@ -14,18 +14,19 @@ */ global $color; -$color[0] = "#6188A9"; // (light gray) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#294763"; // (green-blue) Left Bar Background -$color[4] = "#7A9CBF"; // (white) Normal Background -$color[5] = "#597D9D"; // (light yellow) Table Headers -$color[6] = "#FFFFFF"; // (black) Text on left bar -$color[7] = "#014070"; // (blue) Links -$color[8] = "#000000"; // (black) Normal text -$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"; +$color[0] = '#6188A9'; // (light gray) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#294763'; // (green-blue) Left Bar Background +$color[4] = '#7A9CBF'; // (white) Normal Background +$color[5] = '#597D9D'; // (light yellow) Table Headers +$color[6] = '#FFFFFF'; // (black) Text on left bar +$color[7] = '#014070'; // (blue) Links +$color[8] = '#000000'; // (black) Normal text +$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'; +$color[13] = '#83A1DA'; // (another blue) Unselectable folders color ?> diff --git a/themes/default_theme.php b/themes/default_theme.php index d25d765e..9b021038 100644 --- a/themes/default_theme.php +++ b/themes/default_theme.php @@ -1,7 +1,7 @@ diff --git a/themes/dompie_theme.php b/themes/dompie_theme.php index abcf01a0..e997be4f 100644 --- a/themes/dompie_theme.php +++ b/themes/dompie_theme.php @@ -14,18 +14,19 @@ */ global $color; -$color[0] = "#999999"; // (middle grey) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#294763"; // (dark blue) Left Bar Background -$color[4] = "#FFFFFF"; // (white) Normal Background -$color[5] = "#c0c0c0"; // (light grey) Table Headers -$color[6] = "#FFFFFF"; // (white) Text on left bar -$color[7] = "#000000"; // (black) Links -$color[8] = "#000000"; // (black) Normal text -$color[9] = "#c0c0c0"; // (light grey) Darker version of #0 -$color[10] = "#c0c0c0"; // (light grey) Darker version of #9 -$color[11] = "#A7C5F3"; // (light blue) Special Folders color -$color[12] = "#c0c0c0"; // +$color[0] = '#999999'; // (middle grey) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#294763'; // (dark blue) Left Bar Background +$color[4] = '#FFFFFF'; // (white) Normal Background +$color[5] = '#c0c0c0'; // (light grey) Table Headers +$color[6] = '#FFFFFF'; // (white) Text on left bar +$color[7] = '#000000'; // (black) Links +$color[8] = '#000000'; // (black) Normal text +$color[9] = '#c0c0c0'; // (light grey) Darker version of #0 +$color[10] = '#c0c0c0'; // (light grey) Darker version of #9 +$color[11] = '#A7C5F3'; // (light blue) Special Folders color +$color[12] = '#c0c0c0'; // +$color[15] = '#788DD0'; // (darkish blue) Unselectable folders ?> diff --git a/themes/forest_theme.php b/themes/forest_theme.php index 912cbfbb..e68ceb57 100644 --- a/themes/forest_theme.php +++ b/themes/forest_theme.php @@ -14,18 +14,18 @@ */ global $color; -$color[0] = "#9EBFA7"; // (light purp) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#244B30"; // (purple) Left Bar Background -$color[4] = "#DEFFE7"; // (light purple) Normal Background -$color[5] = "#B6D7BF"; // (darker gray) Table Headers -$color[6] = "#DDFFDD"; // (black) Text on left bar -$color[7] = "#1C5F30"; // (light purple) Links -$color[8] = "#000000"; // (black) Normal text -$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"; - +$color[0] = '#9EBFA7'; // (light purp) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#244B30'; // (purple) Left Bar Background +$color[4] = '#DEFFE7'; // (light purple) Normal Background +$color[5] = '#B6D7BF'; // (darker gray) Table Headers +$color[6] = '#DDFFDD'; // (black) Text on left bar +$color[7] = '#1C5F30'; // (light purple) Links +$color[8] = '#000000'; // (black) Normal text +$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'; +$color[15] = '#648b70'; // (another green) Unselectable folders ?> diff --git a/themes/greenhouse_effect.php b/themes/greenhouse_effect.php index 5505925d..89aeaaac 100755 --- a/themes/greenhouse_effect.php +++ b/themes/greenhouse_effect.php @@ -17,7 +17,7 @@ /** seed the random number generator **/ sq_mt_randomize(); -for ($i = 0; $i <= 14; $i++) { +for ($i = 0; $i <= 15; $i++) { /* background/foreground toggle **/ if (($i == 0) || ($i == 3) || ($i == 4) || ($i == 5) || ($i == 9) || ($i == 10) || ($i == 12)) { @@ -38,6 +38,7 @@ for ($i = 0; $i <= 14; $i++) { /** set array element as hex string with hashmark (for HTML output) **/ $color[$i] = sprintf("#%02X%02X%02X",$r,$g,$b); +} diff --git a/themes/high_contrast_theme.php b/themes/high_contrast_theme.php index 9c9a4c47..c7bd1604 100644 --- a/themes/high_contrast_theme.php +++ b/themes/high_contrast_theme.php @@ -14,17 +14,18 @@ */ global $color; -$color[0] = "#818181"; // (light gray) TitleBar -$color[1] = "#FF0000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#008080"; // (green-blue) Left Bar Background -$color[4] = "#FFFFFF"; // (white) Normal Background -$color[5] = "#FFFF00"; // (light yellow) Table Headers -$color[6] = "#000000"; // (black) Text on left bar -$color[7] = "#0000FF"; // (blue) Links -$color[8] = "#000000"; // (black) Normal text -$color[9] = "#C0C0C0"; // (mid-gray) Darker version of #0 -$color[10] = "#808080"; // (dark gray) Darker version of #9 -$color[11] = "#FFFFFF"; // (white) Special Folders color +$color[0] = '#818181'; // (light gray) TitleBar +$color[1] = '#FF0000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#008080'; // (green-blue) Left Bar Background +$color[4] = '#FFFFFF'; // (white) Normal Background +$color[5] = '#FFFF00'; // (light yellow) Table Headers +$color[6] = '#000000'; // (black) Text on left bar +$color[7] = '#0000FF'; // (blue) Links +$color[8] = '#000000'; // (black) Normal text +$color[9] = '#C0C0C0'; // (mid-gray) Darker version of #0 +$color[10] = '#808080'; // (dark gray) Darker version of #9 +$color[11] = '#FFFFFF'; // (white) Special Folders color +$color[15] = '#D0D070'; // (gold) Unselectable folders ?> diff --git a/themes/ice_theme.php b/themes/ice_theme.php index ecbdff90..66f48ff5 100644 --- a/themes/ice_theme.php +++ b/themes/ice_theme.php @@ -14,17 +14,18 @@ */ global $color; -$color[0] = "#C0DAFF"; // TitleBar -$color[1] = "#800000"; // Error Message -$color[2] = "#CC0000"; // Warning/Error Messages -$color[3] = "#B0CAFF"; // Left Bar Background -$color[4] = "#FFFFFF"; // Normal Background -$color[5] = "#D0EAFF"; // Table Headers -$color[6] = "#000000"; // Text on left bar -$color[7] = "#8888FF"; // Links -$color[8] = "#000000"; // Normal text -$color[9] = "#D0EAFF"; // Darker version of #0 -$color[10] = "#F0FAFF"; // Darker version of #9 -$color[11] = "#770000"; // Special Folders color +$color[0] = '#C0DAFF'; // TitleBar +$color[1] = '#800000'; // Error Message +$color[2] = '#CC0000'; // Warning/Error Messages +$color[3] = '#B0CAFF'; // Left Bar Background +$color[4] = '#FFFFFF'; // Normal Background +$color[5] = '#D0EAFF'; // Table Headers +$color[6] = '#000000'; // Text on left bar +$color[7] = '#8888FF'; // Links +$color[8] = '#000000'; // Normal text +$color[9] = '#D0EAFF'; // Darker version of #0 +$color[10] = '#F0FAFF'; // Darker version of #9 +$color[11] = '#770000'; // Special Folders color +$color[15] = '#006600'; // Unselectable folders ?> diff --git a/themes/in_the_pink.php b/themes/in_the_pink.php index 12d8c38f..ec1f380b 100755 --- a/themes/in_the_pink.php +++ b/themes/in_the_pink.php @@ -17,7 +17,7 @@ /* seed the random number generator */ sq_mt_randomize(); -for ($i = 0; $i <= 14; $i++) { +for ($i = 0; $i <= 15; $i++) { /* background/foreground toggle */ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) { /* background */ diff --git a/themes/kind_of_blue.php b/themes/kind_of_blue.php index 0ae9c7cd..ba6d6cdc 100755 --- a/themes/kind_of_blue.php +++ b/themes/kind_of_blue.php @@ -17,13 +17,13 @@ /* seed the random number generator */ sq_mt_randomize(); -for ($i = 0; $i <= 14; $i++) { +for ($i = 0; $i <= 15; $i++) { /* background/foreground toggle */ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) { /* background */ - $r = mt_rand(248,255); - $b = mt_rand(180,255); - $g = mt_rand(178,$g); + $b = mt_rand(248,255); + $r = mt_rand(180,255); + $g = mt_rand(178,$r); } else { /* text */ $cmin = 0; diff --git a/themes/maize_theme.php b/themes/maize_theme.php index 2f37723c..156c102f 100644 --- a/themes/maize_theme.php +++ b/themes/maize_theme.php @@ -20,17 +20,18 @@ */ global $color; -$color[0] = "#B0B0B0"; // (gray) TitleBar -$color[1] = "#A04040"; // (dull red) Quoted Replies in Emails -$color[2] = "#F04040"; // (bright red) Warning/Error Messages -$color[3] = "#DFCFBF"; // (antique white) Left Bar Background -$color[4] = "#DFCFBF"; // (antique white) Normal Background -$color[5] = "#755A45"; // (light brown) Table Headers -$color[6] = "#101010"; // (off-black) Text on left bar -$color[7] = "#800000"; // (red) Links -$color[8] = "#000000"; // (black) Normal text -$color[9] = "#909090"; // (darker gray) Darker version of #0 -$color[10] = "#606060"; // (darkest gray) Darker version of #9 -$color[11] = "#600000"; // (lighter red) Special Folders color +$color[0] = '#B0B0B0'; // (gray) TitleBar +$color[1] = '#A04040'; // (dull red) Quoted Replies in Emails +$color[2] = '#F04040'; // (bright red) Warning/Error Messages +$color[3] = '#DFCFBF'; // (antique white) Left Bar Background +$color[4] = '#DFCFBF'; // (antique white) Normal Background +$color[5] = '#755A45'; // (light brown) Table Headers +$color[6] = '#101010'; // (off-black) Text on left bar +$color[7] = '#800000'; // (red) Links +$color[8] = '#000000'; // (black) Normal text +$color[9] = '#909090'; // (darker gray) Darker version of #0 +$color[10] = '#606060'; // (darkest gray) Darker version of #9 +$color[11] = '#600000'; // (lighter red) Special Folders color +$color[15] = '#602020'; // (some brown) Unselectable folders ?> diff --git a/themes/methodical_theme.php b/themes/methodical_theme.php index d780d375..29991db2 100644 --- a/themes/methodical_theme.php +++ b/themes/methodical_theme.php @@ -16,18 +16,18 @@ */ global $color; -$color[0] = "#808080"; // (middle grey) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#294763"; // (dark blue) Left Bar Background -$color[4] = "#294763"; // (white) Normal Background -$color[5] = "#999999"; // (light grey) Table Headers -$color[6] = "#FFFFFF"; // (white) Text on left bar -$color[7] = "#FFFFFF"; // (black) Links -$color[8] = "#FFFFFF"; // (black) Normal text -$color[9] = "#999999"; // (light grey) Darker version of #0 -$color[10] = "#999999"; // (light grey) Darker version of #9 -$color[11] = "#A7C5F3"; // (light blue) Special Folders color -$color[12] = "#9F9F9F"; // - +$color[0] = '#808080'; // (middle grey) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#294763'; // (dark blue) Left Bar Background +$color[4] = '#294763'; // (white) Normal Background +$color[5] = '#999999'; // (light grey) Table Headers +$color[6] = '#FFFFFF'; // (white) Text on left bar +$color[7] = '#FFFFFF'; // (black) Links +$color[8] = '#FFFFFF'; // (black) Normal text +$color[9] = '#999999'; // (light grey) Darker version of #0 +$color[10] = '#999999'; // (light grey) Darker version of #9 +$color[11] = '#A7C5F3'; // (light blue) Special Folders color +$color[12] = '#9F9F9F'; // +$color[13] = '#DFDFDF'; // (lighter grey) Unselectable folders ?> diff --git a/themes/midnight.php b/themes/midnight.php index 6da08ccd..ca05bfff 100644 --- a/themes/midnight.php +++ b/themes/midnight.php @@ -25,8 +25,8 @@ $color[7] = '#00FFCC'; // Links $color[8] = '#FFFFFF'; // Normal text $color[9] = '#000099'; // Darker version of #0 $color[10] = '#33FF66'; // Dimmed out folder color -$color[11] = '#000060'; // Special folders / Unseen messages color +$color[11] = '#7070FF'; // Special folders / Unseen messages color $color[12] = '#3300CC'; // Alternate table row color $color[13] = '#3333CC'; - +$color[15] = '#33FF66'; // Unselectable folders ?> diff --git a/themes/monostochastic.php b/themes/monostochastic.php index c8881fbb..e8582759 100755 --- a/themes/monostochastic.php +++ b/themes/monostochastic.php @@ -42,7 +42,7 @@ $gt = mt_rand($cmin_t,$cmax_t); $bt = mt_rand($cmin_t,$cmax_t); /** set array element as hex string with hashmark (for HTML output) **/ -for ($i = 0; $i <= 14; $i++) { +for ($i = 0; $i <= 15; $i++) { if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) { $color[$i] = sprintf("#%02X%02X%02X",$rb,$gb,$bb); } else { diff --git a/themes/plain_blue_theme.php b/themes/plain_blue_theme.php index 1a825c61..35ef5d4a 100644 --- a/themes/plain_blue_theme.php +++ b/themes/plain_blue_theme.php @@ -14,18 +14,19 @@ */ global $color; -$color[0] = "#A2BED4"; // TitleBar -$color[1] = "#800000"; // -$color[2] = "#CC0000"; // Warning/Error Messages -$color[3] = "#6795B9"; // Left Bar Background -$color[4] = "#FFFFFF"; // Normal Background -$color[5] = "#94ABC0"; // Table Headers -$color[6] = "#000000"; // Text on left bar -$color[7] = "#0000CC"; // Links -$color[8] = "#000000"; // Normal text -$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 +$color[0] = '#A2BED4'; // TitleBar +$color[1] = '#800000'; // +$color[2] = '#CC0000'; // Warning/Error Messages +$color[3] = '#6795B9'; // Left Bar Background +$color[4] = '#FFFFFF'; // Normal Background +$color[5] = '#94ABC0'; // Table Headers +$color[6] = '#000000'; // Text on left bar +$color[7] = '#0000CC'; // Links +$color[8] = '#000000'; // Normal text +$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 +$color[15] = '#001166'; // Unselectable folders ?> diff --git a/themes/sandstorm_theme.php b/themes/sandstorm_theme.php index cfbbecce..9a1488eb 100644 --- a/themes/sandstorm_theme.php +++ b/themes/sandstorm_theme.php @@ -14,17 +14,18 @@ */ global $color; -$color[0] = "#CFB789"; // (darker tan) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#AF9769"; // (tan) Left Bar Background -$color[4] = "#FFE9BF"; // (light tan) Normal Background -$color[5] = "#FFFFCC"; // (light yellow) Table Headers -$color[6] = "#000000"; // (black) Text on left bar -$color[7] = "#8B6029"; // (blue) Links -$color[8] = "#000000"; // (black) Normal text -$color[9] = "#BFA779"; // (mid tan) Darker version of #0 -$color[10] = "#7F6729"; // (dark tan) Darker version of #9 -$color[11] = "#770000"; // (dark red) Special Folders color +$color[0] = '#CFB789'; // (darker tan) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#AF9769'; // (tan) Left Bar Background +$color[4] = '#FFE9BF'; // (light tan) Normal Background +$color[5] = '#FFFFCC'; // (light yellow) Table Headers +$color[6] = '#000000'; // (black) Text on left bar +$color[7] = '#8B6029'; // (blue) Links +$color[8] = '#000000'; // (black) Normal text +$color[9] = '#BFA779'; // (mid tan) Darker version of #0 +$color[10] = '#7F6729'; // (dark tan) Darker version of #9 +$color[11] = '#770000'; // (dark red) Special Folders color +$color[15] = '#7F6729'; // (dark tan) Unselectable folders ?> diff --git a/themes/seaspray_theme.php b/themes/seaspray_theme.php index 90e9682e..3aa3c8ff 100644 --- a/themes/seaspray_theme.php +++ b/themes/seaspray_theme.php @@ -14,17 +14,18 @@ */ global $color; -$color[0] = "#7CA4A4"; -$color[1] = "#800000"; -$color[2] = "#CC0000"; -$color[3] = "#588080"; -$color[4] = "#DCFFFF"; -$color[5] = "#98C0C0"; -$color[6] = "#000000"; -$color[7] = "#184040"; -$color[8] = "#000000"; -$color[9] = "#78A0A0"; -$color[10] = "#386060"; -$color[11] = "#FFFFB0"; +$color[0] = '#7CA4A4'; +$color[1] = '#800000'; +$color[2] = '#CC0000'; +$color[3] = '#588080'; +$color[4] = '#DCFFFF'; +$color[5] = '#98C0C0'; +$color[6] = '#000000'; +$color[7] = '#184040'; +$color[8] = '#000000'; +$color[9] = '#78A0A0'; +$color[10] = '#386060'; +$color[11] = '#FFFFB0'; +$color[15] = '#B0FFFF'; ?> diff --git a/themes/servery_theme.php b/themes/servery_theme.php index ae91cac4..40fb580a 100644 --- a/themes/servery_theme.php +++ b/themes/servery_theme.php @@ -14,17 +14,17 @@ */ global $color; -$color[0] = "#F1EEE3"; // (light gray) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#7D6F3F"; // (green-blue) Left Bar Background -$color[4] = "#FFFFFF"; // (white) Normal Background -$color[5] = "#C7B98B"; // (light yellow) Table Headers -$color[6] = "#000000"; // (black) Text on left bar -$color[7] = "#434031"; // (blue) Links -$color[8] = "#000000"; // (black) Normal text -$color[9] = "#C7B98B"; // (mid-gray) Darker version of #0 -$color[10] = "#F1EEE3"; // (dark gray) Darker version of #9 -$color[11] = "#770000"; // (dark red) Special Folders color - +$color[0] = '#F1EEE3'; // (light gray) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#7D6F3F'; // (green-blue) Left Bar Background +$color[4] = '#FFFFFF'; // (white) Normal Background +$color[5] = '#C7B98B'; // (light yellow) Table Headers +$color[6] = '#000000'; // (black) Text on left bar +$color[7] = '#434031'; // (blue) Links +$color[8] = '#000000'; // (black) Normal text +$color[9] = '#C7B98B'; // (mid-gray) Darker version of #0 +$color[10] = '#F1EEE3'; // (dark gray) Darker version of #9 +$color[11] = '#770000'; // (dark red) Special Folders color +$color[15] = '#C7B98B'; // (mid-gray) Unselectable folders ?> diff --git a/themes/shades_of_grey.php b/themes/shades_of_grey.php index 3d14a83a..6d4473e1 100755 --- a/themes/shades_of_grey.php +++ b/themes/shades_of_grey.php @@ -17,7 +17,7 @@ /* seed the random number generator */ sq_mt_randomize(); -for ($i = 0; $i <= 14; $i++) { +for ($i = 0; $i <= 15; $i++) { /* background/foreground toggle */ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) { /* background */ diff --git a/themes/slashdot_theme.php b/themes/slashdot_theme.php index e1efdcc5..ca62f79c 100644 --- a/themes/slashdot_theme.php +++ b/themes/slashdot_theme.php @@ -15,18 +15,19 @@ */ global $color; -$color[0] = "#DCDCDC"; // (light gray) TitleBar -$color[1] = "#800000"; // (red) -$color[2] = "#CC0000"; // (light red) Warning/Error Messages -$color[3] = "#006668"; // (/. color) Left Bar Background -$color[4] = "#FFFFFF"; // (white) Normal Background -$color[5] = "#BABABA"; // (darker gray) Table Headers -$color[6] = "#000000"; // (black) Text on left bar -$color[7] = "#004949"; // (light /. color) Links -$color[8] = "#000000"; // (black) Normal text -$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"; +$color[0] = '#DCDCDC'; // (light gray) TitleBar +$color[1] = '#800000'; // (red) +$color[2] = '#CC0000'; // (light red) Warning/Error Messages +$color[3] = '#006668'; // (/. color) Left Bar Background +$color[4] = '#FFFFFF'; // (white) Normal Background +$color[5] = '#BABABA'; // (darker gray) Table Headers +$color[6] = '#000000'; // (black) Text on left bar +$color[7] = '#004949'; // (light /. color) Links +$color[8] = '#000000'; // (black) Normal text +$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'; +$color[15] = '#ABABAB'; // (mid-gray) Unselectable folders ?> diff --git a/themes/spice_of_life.php b/themes/spice_of_life.php index 88e6bea1..95373d7b 100755 --- a/themes/spice_of_life.php +++ b/themes/spice_of_life.php @@ -23,7 +23,7 @@ $bg = mt_rand(0,1); /** range delimiter **/ $bgrd = $bg * 128; -for ($i = 0; $i <= 14; $i++) { +for ($i = 0; $i <= 15; $i++) { /** background/foreground toggle **/ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) { /** background **/ diff --git a/themes/spice_of_life_dark.php b/themes/spice_of_life_dark.php index 31ce2888..eff08e46 100755 --- a/themes/spice_of_life_dark.php +++ b/themes/spice_of_life_dark.php @@ -23,7 +23,7 @@ $bg = mt_rand(0,1); /** range delimiter **/ $bgrd = $bg * 128; -for ($i = 0; $i <= 14; $i++) { +for ($i = 0; $i <= 15; $i++) { /** background/foreground toggle **/ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) { /** background **/ diff --git a/themes/spice_of_life_lite.php b/themes/spice_of_life_lite.php index 7dce0cd4..4744f00d 100755 --- a/themes/spice_of_life_lite.php +++ b/themes/spice_of_life_lite.php @@ -23,7 +23,7 @@ $bg = mt_rand(0,1); /** range delimiter **/ $bgrd = $bg * 128; -for ($i = 0; $i <= 14; $i++) { +for ($i = 0; $i <= 15; $i++) { /** background/foreground toggle **/ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) { /** background **/ -- 2.25.1