X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=themes%2Fdarkness.php;h=a6e11c6a3233091aca5bb6a26b7ee22816bd107d;hp=61fbb4884074036a5cb012e2c41cdde04ed1c0f3;hb=e8927b2fb18a40a03d1cc8872a39adec91089789;hpb=c4309fbd89c120fad6921e58955fec5e0a592a0e
diff --git a/themes/darkness.php b/themes/darkness.php
index 61fbb488..a6e11c6a 100755
--- a/themes/darkness.php
+++ b/themes/darkness.php
@@ -37,18 +37,18 @@ function IsUnique($Distance, $r, $g, $b, $usedArray)
// Always tremble background
// This might make people go insane. Yes! *Victory dance!*
function Darkness_HeaderPlugin() {
- global $PHP_SELF, $Darkness_Transition;
-
+ global $PHP_SELF;
+
if (substr($PHP_SELF, -18) == '/src/left_main.php') {
echo '' . "\n";
+ 'blendTrans(Duration=2.0)" />' . "\n";
}
-
-?>
- 0) {
// Text colors -- Try to keep the colors distinct
$cmin = 196;
$cmax = 255;
-
+
/** generate random color **/
$r = mt_rand($cmin,$cmax);
$g = mt_rand($cmin,$cmax);
@@ -129,8 +129,8 @@ $squirrelmail_plugin_hooks['generic_header']['theme_darkness'] =
if (IsUnique($targetDistance, $r, $g, $b, $used)) {
$i = array_shift($Left);
$color[$i] = sprintf('#%02X%02X%02X',$r,$g,$b);
- $used[] = array($r, $g, $b);
- $targetDistance = $TextTargetDistance;
+ $used[] = array($r, $g, $b);
+ $targetDistance = $TextTargetDistance;
} else {
$targetDistance *= $TextAdjust;
}
@@ -157,4 +157,4 @@ f 14: Color for text with more than one quote (default: #FF0000)
**/
-?>
+?>
\ No newline at end of file