This commit is contained in:
Laurent Destailleur 2019-09-03 11:42:47 +02:00
parent ca7ce63648
commit 5446ef3170
3 changed files with 15 additions and 12 deletions

View File

@ -113,43 +113,44 @@ a.info-box-text{ text-decoration: none;}
/* ICONS */ /* ICONS INFO BOX */
.info-box-icon { .info-box-icon {
color: #fff !important; color: #fff !important;
} }
<?php <?php
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
if (! isset($conf->global->THEME_AGRESSIVITY_RATIO)) $conf->global->THEME_AGRESSIVITY_RATIO=-75; //print '/* conf->global->THEME_AGRESSIVITY_RATIO='.$conf->global->THEME_AGRESSIVITY_RATIO.' */'."\n";
if (! isset($conf->global->THEME_AGRESSIVITY_RATIO)) $conf->global->THEME_AGRESSIVITY_RATIO=-40;
if (GETPOSTISSET('THEME_AGRESSIVITY_RATIO')) $conf->global->THEME_AGRESSIVITY_RATIO=GETPOST('THEME_AGRESSIVITY_RATIO', 'int'); if (GETPOSTISSET('THEME_AGRESSIVITY_RATIO')) $conf->global->THEME_AGRESSIVITY_RATIO=GETPOST('THEME_AGRESSIVITY_RATIO', 'int');
?> ?>
.bg-infoxbox-project{ .bg-infoxbox-project{
background-color: <?php print colorAgressivity('#605ca8', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important; background-color: <?php print colorAgressivity('#6c6a98', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important;
} }
.bg-infoxbox-action{ .bg-infoxbox-action{
background-color: <?php print colorAgressivity('#d84b80', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important; background-color: <?php print colorAgressivity('#b46080', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important;
} }
.bg-infoxbox-propal, .bg-infoxbox-propal,
.bg-infoxbox-facture, .bg-infoxbox-facture,
.bg-infoxbox-commande{ .bg-infoxbox-commande{
background-color: <?php print colorAgressivity('#abb87b', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important; background-color: <?php print colorAgressivity('#99a17d', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important;
} }
.bg-infoxbox-supplier_proposal, .bg-infoxbox-supplier_proposal,
.bg-infoxbox-invoice_supplier, .bg-infoxbox-invoice_supplier,
.bg-infoxbox-order_supplier{ .bg-infoxbox-order_supplier{
background-color: <?php print colorAgressivity('#40b0cf', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important; background-color: <?php print colorAgressivity('#599caf', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important;
} }
.bg-infoxbox-contrat{ .bg-infoxbox-contrat{
background-color: <?php print colorAgressivity('#20a68a', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important; background-color: <?php print colorAgressivity('#469686', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important;
} }
.bg-infoxbox-bank_account{ .bg-infoxbox-bank_account{
background-color: <?php print colorAgressivity('#e39c42', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important; background-color: <?php print colorAgressivity('#c5903e', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important;
} }
.bg-infoxbox-adherent{ .bg-infoxbox-adherent{
background-color: <?php print colorAgressivity('#f39c12', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important; background-color: <?php print colorAgressivity('#79633f', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important;
} }
.bg-infoxbox-expensereport{ .bg-infoxbox-expensereport{
background-color: <?php print colorAgressivity('#755114', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important; background-color: <?php print colorAgressivity('#79633f', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important;
} }
.bg-infoxbox-holiday{ .bg-infoxbox-holiday{
background-color: <?php print colorAgressivity('#755114', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important; background-color: <?php print colorAgressivity('#755114', $conf->global->THEME_AGRESSIVITY_RATIO); ?> !important;

View File

@ -228,13 +228,15 @@ print 'dol_screenwidth='.$_SESSION['dol_screenwidth']."\n";
print 'dol_screenheight='.$_SESSION['dol_screenheight']."\n"; print 'dol_screenheight='.$_SESSION['dol_screenheight']."\n";
print 'fontsize='.$fontsize."\n"; print 'fontsize='.$fontsize."\n";
print 'nbtopmenuentries='.$nbtopmenuentries."\n"; print 'nbtopmenuentries='.$nbtopmenuentries."\n";
print 'fontsizesmaller='.$fontsizesmaller; print 'fontsizesmaller='.$fontsizesmaller."\n";
print 'topMenuFontSize='.$topMenuFontSize."\n"; print 'topMenuFontSize='.$topMenuFontSize."\n";
print 'toolTipBgColor='.$toolTipBgColor."\n"; print 'toolTipBgColor='.$toolTipBgColor."\n";
print 'toolTipFontColor='.$toolTipFontColor."\n"; print 'toolTipFontColor='.$toolTipFontColor."\n";
print 'conf->global->THEME_AGRESSIVITY_RATIO='.$conf->global->THEME_AGRESSIVITY_RATIO." (must be between -100 and +100)\n";
print '*/'."\n"; print '*/'."\n";
// Include the global.inc.php that include the badges, btn, info-box, dropdown, progress...
require __DIR__ . '/global.inc.php'; require __DIR__ . '/global.inc.php';

View File

@ -74,7 +74,7 @@ $colortextlink='10, 10, 100';
$fontsize='0.86em'; $fontsize='0.86em';
$fontsizesmaller='0.75em'; $fontsizesmaller='0.75em';
$topMenuFontSize='1.2em'; $topMenuFontSize='1.2em';
$toolTipBgColor='rgba(255, 255, 255, 0.96);'; $toolTipBgColor='rgba(255, 255, 255, 0.96)';
$toolTipFontColor='#333'; $toolTipFontColor='#333';
// text color // text color