Merge remote-tracking branch 'origin/3.7' into develop
Conflicts: htdocs/theme/eldy/style.css.php
This commit is contained in:
commit
1c280a9219
@ -600,7 +600,7 @@ class FormOther
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Output a HTML code to select a color
|
* Output a HTML code to select a color. Field will return an hexa color like '334455'.
|
||||||
*
|
*
|
||||||
* @param string $set_color Pre-selected color
|
* @param string $set_color Pre-selected color
|
||||||
* @param string $prefix Name of HTML field
|
* @param string $prefix Name of HTML field
|
||||||
|
|||||||
@ -1918,22 +1918,24 @@ function fetchObjectByElement($element_id,$element_type) {
|
|||||||
* Convert an array with RGB value into hex RGB value
|
* Convert an array with RGB value into hex RGB value
|
||||||
*
|
*
|
||||||
* @param array $arraycolor Array
|
* @param array $arraycolor Array
|
||||||
* @param string $colorifnotfound Color code to return if entry not defined
|
* @param string $colorifnotfound Color code to return if entry not defined or not a RGB format
|
||||||
* @return string RGB hex value (without # before). For example: FF00FF
|
* @return string RGB hex value (without # before). For example: FF00FF
|
||||||
* @see Make the opposite of colorStringToArray
|
* @see Make the opposite of colorStringToArray
|
||||||
*/
|
*/
|
||||||
function colorArrayToHex($arraycolor,$colorifnotfound='888888')
|
function colorArrayToHex($arraycolor,$colorifnotfound='888888')
|
||||||
{
|
{
|
||||||
if (! is_array($arraycolor)) return $colorifnotfound;
|
if (! is_array($arraycolor)) return $colorifnotfound;
|
||||||
|
if (empty($arraycolor)) return $colorifnotfound;
|
||||||
return dechex($arraycolor[0]).dechex($arraycolor[1]).dechex($arraycolor[2]);
|
return dechex($arraycolor[0]).dechex($arraycolor[1]).dechex($arraycolor[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a string RGB value ('FFFFFF', '255,255,255') into an array RGB array(255,255,255)
|
* Convert a string RGB value ('FFFFFF', '255,255,255') into an array RGB array(255,255,255).
|
||||||
|
* If entry is already an array, return it.
|
||||||
*
|
*
|
||||||
* @param string $stringcolor String with hex (FFFFFF) or comma RGB ('255,255,255')
|
* @param string $stringcolor String with hex (FFFFFF) or comma RGB ('255,255,255')
|
||||||
* @param string $colorifnotfound Color code to return if entry not defined
|
* @param array $colorifnotfound Color code array to return if entry not defined
|
||||||
* @return string RGB hex value (without # before). For example: FF00FF
|
* @return string RGB hex value (without # before). For example: FF00FF
|
||||||
* @see Make the opposite of colorArrayToHex
|
* @see Make the opposite of colorArrayToHex
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -105,7 +105,7 @@ $colorbacklineimpairhover=(230+round(($isred+$isgreen+$isblue)/9)).','.(230+roun
|
|||||||
$colorbacklinepair1=(244+round($isred/3)).','.(244+round($isgreen/3)).','.(244+round($isblue/3)); // line pair
|
$colorbacklinepair1=(244+round($isred/3)).','.(244+round($isgreen/3)).','.(244+round($isblue/3)); // line pair
|
||||||
$colorbacklinepair2=(250+round($isred/3)).','.(250+round($isgreen/3)).','.(250+round($isblue/3)); // line pair
|
$colorbacklinepair2=(250+round($isred/3)).','.(250+round($isgreen/3)).','.(250+round($isblue/3)); // line pair
|
||||||
$colorbacklinepairhover=(230+round(($isred+$isgreen+$isblue)/9)).','.(230+round(($isred+$isgreen+$isblue)/9)).','.(230+round(($isred+$isgreen+$isblue)/9)); // line pair
|
$colorbacklinepairhover=(230+round(($isred+$isgreen+$isblue)/9)).','.(230+round(($isred+$isgreen+$isblue)/9)).','.(230+round(($isred+$isgreen+$isblue)/9)); // line pair
|
||||||
$colorbackbody='#f3f3f3';
|
$colorbackbody='243,243,243';
|
||||||
$colortext='40,40,40';
|
$colortext='40,40,40';
|
||||||
$fontsize='12';
|
$fontsize='12';
|
||||||
$fontsizesmaller='11';
|
$fontsizesmaller='11';
|
||||||
@ -124,7 +124,7 @@ if (empty($conf->global->THEME_ELDY_ENABLE_PERSONALIZED))
|
|||||||
$conf->global->THEME_ELDY_BACKTABCARD1='255,255,255';
|
$conf->global->THEME_ELDY_BACKTABCARD1='255,255,255';
|
||||||
$conf->global->THEME_ELDY_BACKTABCARD2='210,210,210'; // card
|
$conf->global->THEME_ELDY_BACKTABCARD2='210,210,210'; // card
|
||||||
$conf->global->THEME_ELDY_BACKTABACTIVE='234,234,234';
|
$conf->global->THEME_ELDY_BACKTABACTIVE='234,234,234';
|
||||||
$conf->global->THEME_ELDY_BACKBODY='#f3f3f3;';
|
$conf->global->THEME_ELDY_BACKBODY='243,243,243;';
|
||||||
$conf->global->THEME_ELDY_LINEIMPAIR1='255,255,255';
|
$conf->global->THEME_ELDY_LINEIMPAIR1='255,255,255';
|
||||||
$conf->global->THEME_ELDY_LINEIMPAIR2='255,255,255';
|
$conf->global->THEME_ELDY_LINEIMPAIR2='255,255,255';
|
||||||
$conf->global->THEME_ELDY_LINEIMPAIRHOVER='238,246,252';
|
$conf->global->THEME_ELDY_LINEIMPAIRHOVER='238,246,252';
|
||||||
@ -164,6 +164,11 @@ if ((! empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) && (isset($user->conf-
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Format color value to match expected format (may be 'FFFFFF' or '255,255,255')
|
// Format color value to match expected format (may be 'FFFFFF' or '255,255,255')
|
||||||
|
$colorbackbody=join(',',colorStringToArray($colorbackbody));
|
||||||
|
$colorbackhmenu1=join(',',colorStringToArray($colorbackhmenu1));
|
||||||
|
$colorbackhmenu2=join(',',colorStringToArray($colorbackhmenu2));
|
||||||
|
$colorbackvmenu1=join(',',colorStringToArray($colorbackvmenu1));
|
||||||
|
$colorbackvmenu2=join(',',colorStringToArray($colorbackvmenu2));
|
||||||
$colorbacktabcard1=join(',',colorStringToArray($colorbacktabcard1));
|
$colorbacktabcard1=join(',',colorStringToArray($colorbacktabcard1));
|
||||||
$colorbacktabcard2=join(',',colorStringToArray($colorbacktabcard2));
|
$colorbacktabcard2=join(',',colorStringToArray($colorbacktabcard2));
|
||||||
|
|
||||||
@ -188,6 +193,10 @@ else { $colortextbacktab='111'; }
|
|||||||
print '/*'."\n";
|
print '/*'."\n";
|
||||||
print 'colred='.$colred.' colgreen='.$colgreen.' colblue='.$colblue."\n";
|
print 'colred='.$colred.' colgreen='.$colgreen.' colblue='.$colblue."\n";
|
||||||
print 'isred='.$isred.' isgreen='.$isgreen.' isblue='.$isblue."\n";
|
print 'isred='.$isred.' isgreen='.$isgreen.' isblue='.$isblue."\n";
|
||||||
|
print 'colorbackbody='.$colorbackbody."\n";
|
||||||
|
print 'colorbackvmenu1='.$colorbackvmenu1."\n";
|
||||||
|
print 'colorbackhmenu1='.$colorbackhmenu1."\n";
|
||||||
|
print 'colorbacktitle1='.$colorbacktitle1."\n";
|
||||||
print 'colorbacklineimpair1='.$colorbacklineimpair1."\n";
|
print 'colorbacklineimpair1='.$colorbacklineimpair1."\n";
|
||||||
print 'colorbacklineimpair2='.$colorbacklineimpair2."\n";
|
print 'colorbacklineimpair2='.$colorbacklineimpair2."\n";
|
||||||
print 'colorbacklineimpairhover='.$colorbacklineimpairhover."\n";
|
print 'colorbacklineimpairhover='.$colorbacklineimpairhover."\n";
|
||||||
@ -215,7 +224,7 @@ body {
|
|||||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
background: <?php print $colorbackbody; ?>;
|
background: rgb(<?php print $colorbackbody; ?>);
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
color: #101010;
|
color: #101010;
|
||||||
font-size: <?php print $fontsize ?>px;
|
font-size: <?php print $fontsize ?>px;
|
||||||
@ -2132,14 +2141,15 @@ div.pagination li.paginationafterarrows {
|
|||||||
/* Set the color for hover lines */
|
/* Set the color for hover lines */
|
||||||
.odd:hover, .impair:hover, .even:hover, .pair:hover, .even:hover, .pair:hover, table.dataTable tr.even:hover, table.dataTable tr.odd:hover
|
.odd:hover, .impair:hover, .even:hover, .pair:hover, .even:hover, .pair:hover, table.dataTable tr.even:hover, table.dataTable tr.odd:hover
|
||||||
{
|
{
|
||||||
<?php if ($colorbacklinepairhover) { if ($colorbacklinepairhover > 0) { ?>
|
<?php if ($colorbacklinepairhover) { ?>
|
||||||
background: rgb(<?php echo $colorbacklinepairhover; ?>) !important;
|
background: rgb(<?php echo $colorbacklinepairhover; ?>) !important;
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
background: rgba(0, 0, 0, 0.05) !important;
|
background: rgba(0, 0, 0, 0.05) !important;
|
||||||
<?php } } ?>
|
<?php } ?>
|
||||||
}
|
}
|
||||||
|
|
||||||
.odd, .impair, .nohover .odd:hover, .nohover .impair:hover, tr.odd td.nohover, tr.impair td.nohover {
|
.odd, .impair, .nohover .odd:hover, .nohover .impair:hover, tr.odd td.nohover, tr.impair td.nohover
|
||||||
|
{
|
||||||
font-family: <?php print $fontlist ?>;
|
font-family: <?php print $fontlist ?>;
|
||||||
margin-bottom: 1px;
|
margin-bottom: 1px;
|
||||||
color: #202020;
|
color: #202020;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user