dolibarr  16.0.5
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  * Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
30 global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet;
31 $theme_bordercolor = array(235, 235, 224);
32 $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));
33 if (!defined('ISLOADEDBYSTEELSHEET')) { // File is run after an include of a php page, not by the style sheet, if the constant is not defined.
34  if (!empty($conf->global->MAIN_OPTIMIZEFORCOLORBLIND)) { // user is loaded by dolgraph.class.php
35  if ($conf->global->MAIN_OPTIMIZEFORCOLORBLIND == 'flashy') {
36  $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));
37  } else {
38  // for now we use the same configuration for all types of color blind
39  $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));
40  }
41  }
42 }
43 $theme_bgcolor = array(hexdec('F4'), hexdec('F4'), hexdec('F4'));
44 $theme_bgcoloronglet = array(hexdec('DE'), hexdec('E7'), hexdec('EC'));
45 
46 
47 // Colors
48 $colorbackhmenu1 = '90,50,120'; // topmenu
49 $colorbackvmenu1 = '255,255,255'; // vmenu
50 $colortopbordertitle1 = ''; // top border of tables-lists title. not defined = default to colorbackhmenu1
51 $colorbacktitle1 = '240,240,240'; // title of tables-lists
52 $colorbacktabcard1 = '255,255,255'; // card
53 $colorbacktabactive = '234,234,234';
54 $colorbacklineimpair1 = '255,255,255'; // line impair
55 $colorbacklineimpair2 = '255,255,255'; // line impair
56 $colorbacklinepair1 = '251,251,251'; // line pair
57 $colorbacklinepair2 = '248,248,248'; // line pair
58 $colorbacklinepairhover = '230,237,244'; // line hover
59 $colorbacklinepairchecked = '230,237,244'; // line checked
60 $colorbacklinebreak = '250,246,251';
61 $colorbackbody = '248,248,248';
62 $colortexttitlenotab = '80,71,5';
63 $colortexttitle = '20,20,20';
64 $colortexttitlelink = '0,0,120';
65 $colortext = '0,0,0';
66 $colortextlink = '0,0,120';
67 $fontsize = '14';
68 $fontsizesmaller = '11';
69 $topMenuFontSize = '1.1em';
70 $toolTipBgColor = 'rgba(255, 255, 255, 0.96)';
71 $toolTipFontColor = '#333';
72 $butactionbg = '150, 110, 162, 0.95';
73 $textbutaction = '255, 255, 255, 255';
74 
75 // text color
76 $textSuccess = '#28a745';
77 $colorblind_deuteranopes_textSuccess = '#37de5d';
78 $textWarning = '#a37c0d'; // See $badgeWarning
79 $textDanger = '#8c4446'; // See $badgeDanger
80 $colorblind_deuteranopes_textWarning = $textWarning; // currently not tested with a color blind people so use default color
81 
82 // Badges colors
83 $badgePrimary = '#007bff';
84 $badgeSecondary = '#999999';
85 $badgeInfo = '#17a2b8';
86 $badgeSuccess = '#28a745';
87 $badgeWarning = '#a37c0d'; // See $textWarning
88 $badgeDanger = '#8c4446'; // See $textDanger
89 $badgeDark = '#343a40';
90 $badgeLight = '#f8f9fa';
91 
92 // badge color ajustement for color blind
93 $colorblind_deuteranopes_badgeSuccess = '#37de5d';
95 $colorblind_deuteranopes_badgeWarning = '#e4e411';
96 $colorblind_deuteranopes_badgeDanger = $badgeDanger; // currently not tested with a color blind people so use default color
97 
98 /* default color for status : After a quick check, somme status can have oposite function according to objects
99 * So this badges status uses default value according to theme eldy status img
100 * TODO: use color definition vars above for define badges color status X -> exemple $badgeStatusValidate, $badgeStatusClosed, $badgeStatusActive ....
101 */
102 $badgeStatus0 = '#cbd3d3'; // draft
103 $badgeStatus1 = '#bc9526'; // validated
104 $badgeStatus1b = '#bc9526'; // validated
105 $badgeStatus2 = '#e6f0f0'; // approved
106 $badgeStatus3 = '#bca52b';
107 $badgeStatus4 = '#25a580'; // Color ok
108 $badgeStatus4b = '#25a580'; // Color ok
109 $badgeStatus5 = '#cad2d2';
110 $badgeStatus6 = '#cad2d2';
111 $badgeStatus7 = '#277d1e';
112 $badgeStatus8 = '#993013';
113 $badgeStatus9 = '#e7f0f0';
114 $badgeStatus10 = '#993013';
115 $badgeStatus11 = '#15a540';
116 
117 // status color ajustement for color blind
118 $colorblind_deuteranopes_badgeStatus4 = $colorblind_deuteranopes_badgeStatus7 = $colorblind_deuteranopes_badgeSuccess;
119 $colorblind_deuteranopes_badgeStatus_textColor4 = $colorblind_deuteranopes_badgeStatus_textColor7 = '#000';
120 $colorblind_deuteranopes_badgeStatus1 = $colorblind_deuteranopes_badgeWarning;
121 $colorblind_deuteranopes_badgeStatus_textColor1 = '#000';
$colorblind_deuteranopes_badgeSuccess_textColor7
$colorblind_deuteranopes_badgeSuccess_textColor7
text color black
Definition: theme_vars.inc.php:100
$colorblind_deuteranopes_badgeStatus_textColor4
$colorblind_deuteranopes_badgeStatus_textColor4
text color black
Definition: theme_vars.inc.php:125