dolibarr  13.0.2
theme_vars.inc.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <https://www.gnu.org/licenses/>.
17  */
18 
29 global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet;
30 $theme_bordercolor = array(235, 235, 224);
31 $theme_datacolor = array(array(137, 86, 161), array(60, 147, 183), array(250, 190, 80), array(191, 75, 57), array(80, 166, 90), array(140, 140, 220), array(190, 120, 120), array(190, 190, 100), array(115, 125, 150), array(100, 170, 20), array(150, 135, 125), array(85, 135, 150), array(150, 135, 80), array(150, 80, 150));
32 if (!defined('ISLOADEDBYSTEELSHEET')) // File is run after an include of a php page, not by the style sheet, if the constant is not defined.
33 {
34  if (!empty($conf->global->MAIN_OPTIMIZEFORCOLORBLIND)) // user is loaded by dolgraph.class.php
35  {
36  if ($conf->global->MAIN_OPTIMIZEFORCOLORBLIND == 'flashy')
37  {
38  $theme_datacolor = array(array(157, 56, 191), array(0, 147, 183), array(250, 190, 30), array(221, 75, 57), array(0, 166, 90), array(140, 140, 220), array(190, 120, 120), array(190, 190, 100), array(115, 125, 150), array(100, 170, 20), array(150, 135, 125), array(85, 135, 150), array(150, 135, 80), array(150, 80, 150));
39  } else {
40  // for now we use the same configuration for all types of color blind
41  $theme_datacolor = array(array(248, 220, 1), array(9, 85, 187), array(42, 208, 255), array(0, 0, 0), array(169, 169, 169), array(253, 102, 136), array(120, 154, 190), array(146, 146, 55), array(0, 52, 251), array(196, 226, 161), array(222, 160, 41), array(85, 135, 150), array(150, 135, 80), array(150, 80, 150));
42  }
43  }
44 }
45 $theme_bgcolor = array(hexdec('F4'), hexdec('F4'), hexdec('F4'));
46 $theme_bgcoloronglet = array(hexdec('DE'), hexdec('E7'), hexdec('EC'));
47 
48 
49 // Colors
50 $colorbackhmenu1 = '90,50,120'; // topmenu
51 $colorbackvmenu1 = '255,255,255'; // vmenu
52 $colortopbordertitle1 = ''; // top border of tables-lists title. not defined = default to colorbackhmenu1
53 $colorbacktitle1 = '240,240,240'; // title of tables-lists
54 $colorbacktabcard1 = '255,255,255'; // card
55 $colorbacktabactive = '234,234,234';
56 $colorbacklineimpair1 = '255,255,255'; // line impair
57 $colorbacklineimpair2 = '255,255,255'; // line impair
58 $colorbacklinepair1 = '248,248,248'; // line pair
59 $colorbacklinepair2 = '246,246,246'; // line pair
60 $colorbacklinepairhover = '230,237,244'; // line hover
61 $colorbacklinepairchecked = '230,237,244'; // line checked
62 $colorbacklinebreak = '250,246,251';
63 $colorbackbody = '248,248,248';
64 $colortexttitlenotab = '80,71,5';
65 $colortexttitle = '20,20,20';
66 $colortexttitlelink = '0,0,120';
67 $colortext = '0,0,0';
68 $colortextlink = '0,0,120';
69 $fontsize = '14';
70 $fontsizesmaller = '11';
71 
72 // text color
73 $textSuccess = '#28a745';
74 $colorblind_deuteranopes_textSuccess = '#37de5d';
75 $textWarning = '#a37c0d'; // See $badgeWarning
76 $textDanger = '#8c4446'; // See $badgeDanger
77 $colorblind_deuteranopes_textWarning = $textWarning; // currently not tested with a color blind people so use default color
78 
79 // Badges colors
80 $badgePrimary = '#007bff';
81 $badgeSecondary = '#999999';
82 $badgeSuccess = '#28a745';
83 $badgeWarning = '#a37c0d'; // See $textWarning
84 $badgeDanger = '#8c4446'; // See $textDanger
85 $badgeInfo = '#17a2b8';
86 $badgeDark = '#343a40';
87 $badgeLight = '#f8f9fa';
88 
89 /* default color for status : After a quick check, somme status can have oposite function according to objects
90 * So this badges status uses default value according to theme eldy status img
91 * TODO: use color definition vars above for define badges color status X -> expemple $badgeStatusValidate, $badgeStatusClosed, $badgeStatusActive ....
92 */
93 $badgeStatus0 = '#cbd3d3';
94 $badgeStatus1 = '#bc9526';
95 $badgeStatus2 = '#e6f0f0';
96 $badgeStatus3 = '#bca52b';
97 $badgeStatus4 = '#277d1e';
98 $badgeStatus5 = '#cad2d2';
99 $badgeStatus6 = '#cad2d2';
100 $badgeStatus7 = '#277d1e';
101 $badgeStatus8 = '#993013';
102 $badgeStatus9 = '#e7f0f0';