Changeset 2137 in subversion
- Timestamp:
- Dec 9, 2008 8:48:42 AM (4 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
bin/quotaimg.php (modified) (7 diffs)
-
skins/default/mail.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/bin/quotaimg.php
r2019 r2137 71 71 $padding = 0; 72 72 73 $limit['high'] = 70;74 $limit['mid'] = 45;73 $limit['high'] = 80; 74 $limit['mid'] = 55; 75 75 $limit['low'] = 0; 76 76 77 77 // Fill Colors 78 $color['fill']['high'] = '2 15, 13, 13'; // Near quota fill color79 $color['fill']['mid'] = ' 126, 192, 238'; // Mid-area of quota fill color80 $color['fill']['low'] = '14 7, 225, 100'; // Far from quota fill color78 $color['fill']['high'] = '243, 49, 49'; // Near quota fill color 79 $color['fill']['mid'] = '245, 173, 60'; // Mid-area of quota fill color 80 $color['fill']['low'] = '145, 225, 100'; // Far from quota fill color 81 81 82 82 // Background colors … … 87 87 // Misc. Colors 88 88 $color['border'] = '0, 0, 0'; 89 $color['text'] = '102, 102, 102'; 89 $color['text']['high'] = '255, 255, 255'; // white text for red background 90 $color['text']['mid'] = '102, 102, 102'; 91 $color['text']['low'] = '102, 102, 102'; 92 $color['text']['normal'] = '102, 102, 102'; 90 93 91 94 … … 94 97 ***********************************/ 95 98 96 // @todo: Set to "??" instead?99 // @todo: Set to "??" instead? 97 100 if (ereg("^[^0-9?]*$", $used) || ereg("^[^0-9?]*$", $total)) { 98 101 return false; … … 116 119 } 117 120 118 list($r, $g, $b) = explode(',', $color['text']);119 $text = imagecolorallocate($im, $r, $g, $b);120 121 121 if ($unknown) { 122 list($r, $g, $b) = explode(',', $color['text']['normal']); 123 $text = imagecolorallocate($im, $r, $g, $b); 122 124 list($r, $g, $b) = explode(',', $color['bg']['Unknown']); 123 125 $background = imagecolorallocate($im, $r, $g, $b); 126 124 127 imagefilledrectangle($im, 0, 0, $width, $height, $background); 125 128 … … 128 131 imagestring($im, $font, $mid, $padding, $string, $text); 129 132 } else if ($used > $total) { 133 list($r, $g, $b) = explode(',', $color['text']['normal']); 134 $text = imagecolorallocate($im, $r, $g, $b); 130 135 list($r, $g, $b) = explode(',', $color['bg']['OL']); 131 132 136 $background = imagecolorallocate($im, $r, $g, $b); 133 137 … … 139 143 } else { 140 144 list($r, $g, $b) = explode(',', $color['bg']['quota']); 141 142 145 $background = imagecolorallocate($im, $r, $b, $g); 143 146 … … 147 150 148 151 if ($quota >= $limit['high']) { 152 list($r, $g, $b) = explode(',', $color['text']['high']); 153 $text = imagecolorallocate($im, $r, $g, $b); 149 154 list($r, $g, $b) = explode(',', $color['fill']['high']); 150 155 $fill = imagecolorallocate($im, $r, $g, $b); 151 156 } elseif($quota >= $limit['mid']) { 157 list($r, $g, $b) = explode(',', $color['text']['mid']); 158 $text = imagecolorallocate($im, $r, $g, $b); 152 159 list($r, $g, $b) = explode(',', $color['fill']['mid']); 153 160 $fill = imagecolorallocate($im, $r, $g, $b); 154 161 } else { 155 162 // if($quota >= $limit['low']) 163 list($r, $g, $b) = explode(',', $color['text']['low']); 164 $text = imagecolorallocate($im, $r, $g, $b); 156 165 list($r, $g, $b) = explode(',', $color['fill']['low']); 157 166 $fill = imagecolorallocate($im, $r, $g, $b); -
trunk/roundcubemail/skins/default/mail.css
r2131 r2137 651 651 vertical-align: middle; 652 652 margin-left: 4px; 653 border: 1px solid # 666666;653 border: 1px solid #999; 654 654 } 655 655
Note: See TracChangeset
for help on using the changeset viewer.
