mirror of
https://github.com/bckelley/blueberry-pma-theme.git
synced 2026-08-24 03:04:11 -05:00
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
@@ -13,7 +13,7 @@ $GLOBALS['cfg']['FontFamilyFixed'] = 'Consolas, Monospace, "Lucida Gran
|
|||||||
$scheme = "win";
|
$scheme = "win";
|
||||||
$GLOBALS['cfg']['Scheme'] = $scheme;
|
$GLOBALS['cfg']['Scheme'] = $scheme;
|
||||||
|
|
||||||
switch($scheme)
|
switch ($scheme)
|
||||||
{
|
{
|
||||||
case "win":
|
case "win":
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -42,7 +42,7 @@ canvas.pmd *{behavior:url(#default#VML)}
|
|||||||
cursor:default;
|
cursor:default;
|
||||||
}
|
}
|
||||||
.tab_field_2{
|
.tab_field_2{
|
||||||
background-color:<?php echo $GLOBALS['cfg']['cLte'];?>;
|
background-color:<?php echo $GLOBALS['cfg']['cLte']; ?>;
|
||||||
color:#000;
|
color:#000;
|
||||||
cursor:default;
|
cursor:default;
|
||||||
}
|
}
|
||||||
@@ -118,7 +118,7 @@ canvas.pmd *{behavior:url(#default#VML)}
|
|||||||
.small_tab2{
|
.small_tab2{
|
||||||
vertical-align:top;
|
vertical-align:top;
|
||||||
color:#fff;
|
color:#fff;
|
||||||
background-color:<?php echo $GLOBALS['cfg']['cLte'];?>;
|
background-color:<?php echo $GLOBALS['cfg']['cLte']; ?>;
|
||||||
cursor:default;
|
cursor:default;
|
||||||
padding-left:2px;
|
padding-left:2px;
|
||||||
padding-right:2px;
|
padding-right:2px;
|
||||||
@@ -162,7 +162,7 @@ canvas.pmd *{behavior:url(#default#VML)}
|
|||||||
cursor:default;
|
cursor:default;
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
vertical-align:middle;
|
vertical-align:middle;
|
||||||
background:<?php echo $GLOBALS['cfg']['cLte'];?>;
|
background:<?php echo $GLOBALS['cfg']['cLte']; ?>;
|
||||||
}
|
}
|
||||||
/* ---------------------------------------------------------------------------*/
|
/* ---------------------------------------------------------------------------*/
|
||||||
.bor{width:10px;height:10px}
|
.bor{width:10px;height:10px}
|
||||||
@@ -204,13 +204,13 @@ a.M_butt_Selected_down_IE,
|
|||||||
a.M_butt_Selected_down{
|
a.M_butt_Selected_down{
|
||||||
border:none;
|
border:none;
|
||||||
color:#fff;
|
color:#fff;
|
||||||
background-color:<?php echo $GLOBALS['cfg']['cSec'];?>;
|
background-color:<?php echo $GLOBALS['cfg']['cSec']; ?>;
|
||||||
}
|
}
|
||||||
a.M_butt_Selected_down_IE:hover,
|
a.M_butt_Selected_down_IE:hover,
|
||||||
a.M_butt_Selected_down:hover,
|
a.M_butt_Selected_down:hover,
|
||||||
a.M_butt:hover{
|
a.M_butt:hover{
|
||||||
color:#fff;
|
color:#fff;
|
||||||
background-color:<?php echo $GLOBALS['cfg']['cPri'];?>;
|
background-color:<?php echo $GLOBALS['cfg']['cPri']; ?>;
|
||||||
}
|
}
|
||||||
#layer_menu{
|
#layer_menu{
|
||||||
z-index:98;
|
z-index:98;
|
||||||
|
|||||||
+13
-13
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
$colorScheme = 'purple'; // brown | orange | blue | teal | red | indigo | grey | purple
|
$colorScheme = 'purple'; // brown | orange | blue | teal | red | indigo | grey | purple
|
||||||
|
|
||||||
$GLOBALS['cfg']['scheme'] = $colorScheme;
|
$GLOBALS['cfg']['scheme'] = $colorScheme;
|
||||||
switch($colorScheme){
|
switch ($colorScheme) {
|
||||||
case 'orange':
|
case 'orange':
|
||||||
$GLOBALS['cfg']['cPri'] = '#FB8C00'; //600
|
$GLOBALS['cfg']['cPri'] = '#FB8C00'; //600
|
||||||
$GLOBALS['cfg']['cSec'] = '#8BC34A'; //500
|
$GLOBALS['cfg']['cSec'] = '#8BC34A'; //500
|
||||||
@@ -73,31 +73,31 @@ $GLOBALS['cfg']['ThColor'] = '#000';
|
|||||||
$GLOBALS['cfg']['BgOne'] = '#E5E5E5';
|
$GLOBALS['cfg']['BgOne'] = '#E5E5E5';
|
||||||
$GLOBALS['cfg']['BgTwo'] = '#D5D5D5';
|
$GLOBALS['cfg']['BgTwo'] = '#D5D5D5';
|
||||||
|
|
||||||
function shadeColor($hex,$percent){
|
function shadeColor($hex, $percent) {
|
||||||
$hash = '';
|
$hash = '';
|
||||||
if (stristr($hex,'#')) {
|
if (stristr($hex, '#')) {
|
||||||
$hex = str_replace('#','',$hex);
|
$hex = str_replace('#', '', $hex);
|
||||||
$hash = '#';
|
$hash = '#';
|
||||||
}
|
}
|
||||||
$rgb = array(hexdec(substr($hex,0,2)), hexdec(substr($hex,2,2)), hexdec(substr($hex,4,2)));
|
$rgb = array(hexdec(substr($hex, 0, 2)), hexdec(substr($hex, 2, 2)), hexdec(substr($hex, 4, 2)));
|
||||||
for ($i=0; $i<3; $i++) {
|
for ($i = 0; $i < 3; $i++) {
|
||||||
if ($percent > 0) {
|
if ($percent > 0) {
|
||||||
$rgb[$i] = round($rgb[$i] * $percent) + round(255 * (1-$percent));
|
$rgb[$i] = round($rgb[$i] * $percent) + round(255 * (1 - $percent));
|
||||||
} else {
|
} else {
|
||||||
$positivePercent = $percent - ($percent*2);
|
$positivePercent = $percent - ($percent * 2);
|
||||||
$rgb[$i] = round($rgb[$i] * $positivePercent) + round(0 * (1-$positivePercent));
|
$rgb[$i] = round($rgb[$i] * $positivePercent) + round(0 * (1 - $positivePercent));
|
||||||
}
|
}
|
||||||
if ($rgb[$i] > 255) {
|
if ($rgb[$i] > 255) {
|
||||||
$rgb[$i] = 255;
|
$rgb[$i] = 255;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$hex = '';
|
$hex = '';
|
||||||
for($i=0; $i < 3; $i++) {
|
for ($i = 0; $i < 3; $i++) {
|
||||||
$hexDigit = dechex($rgb[$i]);
|
$hexDigit = dechex($rgb[$i]);
|
||||||
if(strlen($hexDigit) == 1) {
|
if (strlen($hexDigit) == 1) {
|
||||||
$hexDigit = "0" . $hexDigit;
|
$hexDigit = "0" . $hexDigit;
|
||||||
}
|
}
|
||||||
$hex .= $hexDigit;
|
$hex .= $hexDigit;
|
||||||
}
|
}
|
||||||
return $hash.$hex;
|
return $hash . $hex;
|
||||||
}
|
}
|
||||||
@@ -106,7 +106,7 @@ div#left_tableList li {
|
|||||||
line-height:1.5;
|
line-height:1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
<?php if ( $GLOBALS['cfg']['LeftPointerEnable'] ) { ?>
|
<?php if ($GLOBALS['cfg']['LeftPointerEnable']) { ?>
|
||||||
div#left_tableList li:hover, div#left_tableList li:hover a {
|
div#left_tableList li:hover, div#left_tableList li:hover a {
|
||||||
background-color: <?php echo $GLOBALS['cfg']['LeftPointerColor']; ?>;
|
background-color: <?php echo $GLOBALS['cfg']['LeftPointerColor']; ?>;
|
||||||
color:#FFF;
|
color:#FFF;
|
||||||
|
|||||||
Reference in New Issue
Block a user