b_close icon for 3.4 compatible themes
[phpmyadmin-themes.git] / grid / layout.inc.php
blob65577be92730aa76f8b4186ff45f63b7ad30a481
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * for nicer (human readable) css formating add "$cfg['NiceCss'] = true;" in your config.inc.php
5 * 2007-05-11: layout choosable in config.inc.php :
6 * you can switch to an alternate Color/Font set simply by putting the line
7 * $GLOBALS['cfg']['customGrid'] = 'tan'; or 'dark' ... (see bottom)
8 * into your pma/config.inc.php or if you like the settings of the original theme:
9 * $GLOBALS['cfg']['customGrid'] = 'originalColors';
10 * you can add any number of different settings in the themes/grid/layout.inc.php,
11 * take the 'originalColors' section as an example.
12 * to use "Grid" on startup use this in your config.inc.php:
13 * if (is_dir($GLOBALS['cfg']['ThemePath'] . '/grid-x.yy')) {
14 * $GLOBALS['cfg']['ThemeDefault'] = 'grid';
15 * }
16 * some bugfixes like textarea height (thx Mario Rohkrämer) ...
18 * 2007-02-11: grid2.9.d error.ico cursor for non Opera browsers only,
19 * vertical line IE only, for pma 2.8 td{color:#000} (or whatever) is necessary!
21 * 2007-02-08 bug 1653769 fixed: BrowsePointerEnable, BrowseMarkerEnable
23 * for detailed layout configuration please refer to the css files
25 * comments, suggestions, bugreports are welcome:
26 * http://sourceforge.net/support/tracker.php?aid=1656956
28 * CSS doesn't like empty values, except for Font.. ..Link.. ..Marke...
29 *(a forced frame reload may be needed after changes, esp. for some Opera versions)
31 * @version $Id$
32 * @package phpMyAdmin-theme
33 * @subpackage Grid
36 if(!defined('PMA_VERSION')) {
37 die('unplanned execution path');
40 // ~~~~~~~~~~~~~ NAVIGATION frame (called "Left frame" in older versions) ~~~~~~~~~~
42 // navi/left frame width for index.php :
43 $GLOBALS['cfg']['NaviWidth'] =
44 empty($_COOKIE['pma_navi_width']) ? 200 : $_COOKIE['pma_navi_width'];
45 // 200 px: default value if cookie not found
47 // foreground (text) color for the navi frame
48 $GLOBALS['cfg']['NaviColor'] = '#000';
50 // Navi BackGround-Color
51 $GLOBALS['cfg']['NaviBGC'] = '#d6d6d6';
52 $GLOBALS['cfg']['Navi2ndBGC'] = '#e6e6e6';
53 // pmalogo background
54 $GLOBALS['cfg']['NaviLogoBGC'] = $GLOBALS['cfg']['NaviBGC'];
56 // link color
57 $GLOBALS['cfg']['NaviLinkColor'] = '#00a';
59 // foreground (text) color of the navi pointer
60 $GLOBALS['cfg']['NaviPointerColor'] = '#000';
61 // background of the navi pointer
62 $GLOBALS['cfg']['NaviPointerBGC'] = '#fff';
64 // marked item(s) IMPORTANT ! (orig: "Marked" was "Marker")
66 // if "LeftFrameLight" as in config.default.php :
67 $GLOBALS['cfg']['NaviLightMarkedBGC'] = '#ffa';
68 // color of the marked (visually marks selected) item
69 $GLOBALS['cfg']['NaviLightMarkedColor'] = '#000';
71 // if ! "LeftFrameLight" :
72 $GLOBALS['cfg']['NaviMarkedBGC'] = '#999';
73 $GLOBALS['cfg']['NaviMarkedColor'] = '#ff6';
75 // BGcolor after clicking on a link:
76 $GLOBALS['cfg']['NaviActiveBGC'] = '#cfc'; // '#9df';
78 // "zoom" factor for list items
79 $GLOBALS['cfg']['NaviFontPercentage'] = '90%';
81 // work in progress "trunk"
82 $GLOBALS['cfg']['NaviDblBGC'] = '#ddd';
83 // BGcolor ul ul:
84 $GLOBALS['cfg']['NaviTblBGC'] = '#eee'; //#dfdfdc'; // '#9df';
86 // text color of the selected database name (when showing the table list)
87 // $GLOBALS['cfg']['NaviDbNameColor'] = '#000';//c60
88 $GLOBALS['cfg']['NaviDbNameBGC'] = $GLOBALS['cfg']['NaviLightMarkedBGC'];
90 //$GLOBALS['cfg']['NaviFocusBGC'] = '#fd9';
91 //$GLOBALS['cfg']['NaviDatabaseNameColor'] = '' ; // not used
93 // ~~~~~~~~~~~~~~~~~ MAIN frame ~~~~~~~~~~~~~~~~~~~~~~~~
94 $GLOBALS['cfg']['MainGroup'] = '#f6f6f6'; // new for pma 3
95 $GLOBALS['cfg']['MainGroupHeader'] = '#e6e6e6';
97 // foreground (text) color for the main frame
98 $GLOBALS['cfg']['MainColor'] = '#000';
100 // BackgroundColor for the main frame, different solution than in ´original´!
101 $GLOBALS['cfg']['MainBGC'] = '#dadada'; //e7e7e7 same as scrollbar color;
103 //at least 1 bit difference from $GLOBALS['cfg']['MainBGC'] to show the grid!(?)
104 $GLOBALS['cfg']['MainGridColor'] = '#dadadb';
106 // link color
107 $GLOBALS['cfg']['MainLinkColor'] = '#00d';
108 $GLOBALS['cfg']['MainLinkHoverColor'] = '#000';
110 // link BGcolor
111 // $GLOBALS['cfg']['MainLinkBGC'] = $GLOBALS['cfg']['MainBGC'];
112 $GLOBALS['cfg']['MainLinkHoverBGC'] = '#fff';
113 $GLOBALS['cfg']['MainActiveBGC'] = '#cfc';
115 // foreground (text) color of the pointer in browse mode
116 $GLOBALS['cfg']['BrowsePointerColor'] = '#000';
118 // background of the pointer in browse mode
119 $GLOBALS['cfg']['BrowsePointerBGC'] = '#dfd';#f3f3f3'; // '#cfc';
121 // foreground (text) color of the marker (visually marks row by clicking on it) in browse mode
122 $GLOBALS['cfg']['BrowseMarkerColor'] = '#000';
124 // background of the marker (visually marks row by clicking on it) in browse mode
125 $GLOBALS['cfg']['BrowseMarkerBGC'] = '#ffb'; // '#fc9';
127 // tab decorations
128 $GLOBALS['cfg']['TabBGC'] = '#f0f0ff';//??
130 $GLOBALS['cfg']['TabHoverColor'] = '#55f';
131 $GLOBALS['cfg']['TabHoverBGC'] = '#fff'; //dfd
133 $GLOBALS['cfg']['TabActiveColor'] = '#000';
134 $GLOBALS['cfg']['TabActiveBGC'] = '#ffb'; //afa
136 $GLOBALS['cfg']['TabBorderColor'] = '#bbb';
137 $GLOBALS['cfg']['TabUnderlineColor'] = '#888';
139 $GLOBALS['cfg']['SuccessBorderColor'] = '#0d0';
141 // top (former legend)
142 // both IE 6&7 expand the BGC too high
143 if ('IE' == PMA_USR_BROWSER_AGENT) {
144 $GLOBALS['cfg']['BorderColor'] = '#000';
145 $GLOBALS['cfg']['FieldsetBGC'] = $GLOBALS['cfg']['MainBGC'];
146 $GLOBALS['cfg']['LegendBorder'] = false;
147 $GLOBALS['cfg']['LegendColor'] = '#000';
148 $GLOBALS['cfg']['LegendBGC'] = '#f3f3f3';
149 } else {
150 $GLOBALS['cfg']['BorderColor'] = '#bbb';
151 $GLOBALS['cfg']['FieldsetBGC'] = '#f3f3f3';
152 $GLOBALS['cfg']['LegendBorder'] = true;
153 $GLOBALS['cfg']['LegendColor'] = '#000';
154 $GLOBALS['cfg']['LegendBGC'] = '#f6f6f6';
156 $GLOBALS['cfg']['FieldsetFooterBGC'] = '#e7e7e7';
158 $GLOBALS['cfg']['BacktickBGC'] = '#eea';
160 // better readability in popup -> SQL history
161 $GLOBALS['cfg']['queryWindowContainerBGC'] = '#e7e7e7';
163 // NOTE: notice and warning colors are defined in theme_right.css.php
166 * fonts
170 * the font family as a valid css font family value,
171 * if not set the browser default will be used
172 * (depending on browser, DTD and system settings)
174 $GLOBALS['cfg']['FontFamily'] = 'sans-serif';
177 * fixed width font family, used in textarea
179 $GLOBALS['cfg']['FontFamilyFixed'] = 'monospace';
182 * font size as a valid css font size value,
183 * if not set the browser default will be used
184 * (depending on browser, DTD and system settings)
185 * pma >2.8 uses font size stored in cookie
188 // backward compatibility :
189 if (version_compare(PMA_VERSION, '2.9', 'lt')) {
190 $GLOBALS['cfg']['LeftWidth'] = $GLOBALS['cfg']['NaviWidth'];
191 $GLOBALS['cfg']['FontSize'] = '82% /*2.8*/';
195 * tables
198 // border strenght ( e.g. .05em(min!)|1px|3pt| 0 but NOT 1)
199 $GLOBALS['cfg']['Border'] = '1px';
201 // table header,footer and "OK box" color
202 $GLOBALS['cfg']['ThBGC'] = '#c8c8c8';
204 // table header and footer background
205 $GLOBALS['cfg']['ThColor'] = '#000';
207 // table data row background
208 $GLOBALS['cfg']['BgOne'] = '#f7f7f7';// >=f8 = white on some displays
210 // table data row background, alternate
211 $GLOBALS['cfg']['BgTwo'] = '#fff';
213 // table outer border color
214 $GLOBALS['cfg']['TblBorderColor'] = 'blue'; // no effect?
217 * query window
219 // Width of Query window
220 $GLOBALS['cfg']['QueryWindowWidth'] = 600;
222 // Height of Query window
223 $GLOBALS['cfg']['QueryWindowHeight'] = 300;
226 * SQL Parser Settings
227 * Syntax colouring data
229 $GLOBALS['cfg']['SQP']['fmtColor'] = array(
230 'comment' => '#808000',
231 'comment_mysql' => '',
232 'comment_ansi' => '',
233 'comment_c' => '',
234 'digit' => '',
235 'digit_hex' => 'teal',
236 'digit_integer' => 'teal',
237 'digit_float' => 'aqua',
238 'punct' => 'fuchsia',
239 'alpha' => '',
240 'alpha_columnType' => '#F90',
241 'alpha_columnAttrib'=> '#00f',
242 'alpha_reservedWord'=> '#909',
243 'alpha_functionName'=> '#f00',
244 'alpha_identifier' => '#000',
245 'alpha_charset' => '#6495ed',
246 'alpha_variable' => '#800000',
247 'quote' => '#008000',
248 'quote_double' => '',
249 'quote_single' => '',
250 'quote_backtick' => '#0a0'
253 // ~~~~~~~ alternate COLOR/FONT SETS choosable in config.inc.php ~~~~~~~~~~~
254 // (default settings from above are simply overridden)
255 if (!empty($GLOBALS['cfg']['customGrid']))
257 if ('old' == $GLOBALS['cfg']['customGrid'])
259 $GLOBALS['cfg']['NaviBGC'] = '#efefef';
260 $GLOBALS['cfg']['MainBGC'] = '#ddd';
261 $GLOBALS['cfg']['BrowseMarkerBGC']= '#ee9';
262 $GLOBALS['cfg']['TblBorderColor'] = '#ddddde';
263 $GLOBALS['cfg']['LegendColor'] = '#090';
264 $GLOBALS['cfg']['LegendBGC'] = '#fff';
266 elseif ('originalColors' == $GLOBALS['cfg']['customGrid'])
267 //not fully tested yet !
269 $GLOBALS['cfg']['NaviBGC'] = '#D0DCE0';
270 $GLOBALS['cfg']['NaviLogoBGC'] = $GLOBALS['cfg']['NaviBGC'];
271 $GLOBALS['cfg']['NaviPointerColor'] = '#000';
272 $GLOBALS['cfg']['NaviPointerBGC'] = '#99C';
273 $GLOBALS['cfg']['NaviLightMarkedColor'] = '#000';
274 $GLOBALS['cfg']['NaviLightMarkedBGC']= '#fc9';
275 $GLOBALS['cfg']['MainColor'] = '#000';
276 $GLOBALS['cfg']['MainBGC'] = '#F5F5F5';//'MainBGC'
277 $GLOBALS['cfg']['BrowsePointerColor'] = '#000';
278 $GLOBALS['cfg']['BrowsePointerBGC'] = '#CFC';
279 $GLOBALS['cfg']['BrowseMarkerColor'] = '#000';
280 $GLOBALS['cfg']['BrowseMarkerBGC'] = '#FC9';
281 $GLOBALS['cfg']['FontFamily'] = 'sans-serif';
282 $GLOBALS['cfg']['FontFamilyFixed'] = 'monospace';
283 $GLOBALS['cfg']['MainGridColor'] = '#F5F5F6';
284 $GLOBALS['cfg']['ThBGC'] = '#D3DCE3';
285 $GLOBALS['cfg']['ThColor'] = '#000';
286 $GLOBALS['cfg']['BgOne'] = '#E5E5E5';
287 $GLOBALS['cfg']['BgTwo'] = '#D5D5D5';
288 $GLOBALS['cfg']['QueryWindowWidth'] = 600;
289 $GLOBALS['cfg']['QueryWindowHeight'] = 400;
290 $GLOBALS['cfg']['LegendBorder'] = 0;
291 $GLOBALS['cfg']['LegendColor'] = '#000';
292 // $GLOBALS['cfg']['LegendBGC'] = '#fff';//??
294 elseif ('tan' == $GLOBALS['cfg']['customGrid'])
296 $GLOBALS['cfg']['FontFamily'] = 'verdana,sans-serif';
297 $GLOBALS['cfg']['NaviBGC'] = '#edb';//dfc7a0
298 $GLOBALS['cfg']['Navi2ndBGC'] = '#fff';
299 $GLOBALS['cfg']['NaviDblBGC'] = '#fff6ee';
300 //white looks ugly, '#e7e7e7'like IE6 scrollbar Am.:gray Br.:grey
301 $GLOBALS['cfg']['NaviLogoBGC'] = $GLOBALS['cfg']['NaviBGC'];
302 $GLOBALS['cfg']['NaviLinkColor'] = '#00a';
303 $GLOBALS['cfg']['NaviPointerColor'] = '#00f';
304 $GLOBALS['cfg']['NaviPointerBGC'] = '#fff';
305 $GLOBALS['cfg']['NaviLightMarkedBGC'] = '#ff9';
306 $GLOBALS['cfg']['NaviMarkedColor'] = '#000';
307 $GLOBALS['cfg']['NaviMarkedBGC'] = '#cb9';
308 $GLOBALS['cfg']['NaviFontPercentage'] = '100%';
310 $GLOBALS['cfg']['NaviDbNameColor'] = '#faa';
311 $GLOBALS['cfg']['NaviDbLinkBGC'] = '#eee'; // ?
312 $GLOBALS['cfg']['NaviActiveBGC'] = '#9df'; // 0
313 $GLOBALS['cfg']['NaviTblBGC'] = '#fed';
315 $GLOBALS['cfg']['MainBGC'] = '#edb'; //~tan
316 $GLOBALS['cfg']['MainGridColor'] = '#eeddbc';
317 $GLOBALS['cfg']['MainLinkHoverColor'] = '#00c';
318 $GLOBALS['cfg']['MainLinkHoverBGC'] = '#fff';
319 // $GLOBALS['cfg']['LegendColor'] = '#fff';
320 // $GLOBALS['cfg']['LegendBGC'] = '#985';
322 $GLOBALS['cfg']['BrowsePointerColor'] = '#000';
323 $GLOBALS['cfg']['BrowsePointerBGC'] = '#f4f2f0'; //'#cfc';
324 $GLOBALS['cfg']['BrowseMarkerColor'] = '#000';
325 $GLOBALS['cfg']['BrowseMarkerBGC'] = '#ffb';
327 $GLOBALS['cfg']['ThBGC'] = '#dca'; // ff9 too yellowish
328 $GLOBALS['cfg']['ThColor'] = '#000';
329 $GLOBALS['cfg']['BgOne'] = '#fcfaf8'; // #fffaf5 a bit too reddish
330 $GLOBALS['cfg']['BgTwo'] = '#fff';
332 elseif ('dark' == $GLOBALS['cfg']['customGrid'])
333 { //like darkblue...
334 $GLOBALS['cfg']['LegendBorder'] = true;
335 $GLOBALS['cfg']['LegendColor'] = '#b50';
336 $GLOBALS['cfg']['LegendBGC'] = '#fff';
337 $GLOBALS['cfg']['NaviColor'] = '#eee';
338 $GLOBALS['cfg']['NaviBGC'] = '#669';
340 $GLOBALS['cfg']['Navi2ndBGC'] = '#88c';
341 $GLOBALS['cfg']['NaviDblBGC'] = '#77a';
343 $GLOBALS['cfg']['NaviLinkColor'] = '#eef';
344 $GLOBALS['cfg']['NaviLightMarkedBGC'] = '#99f';
345 $GLOBALS['cfg']['NaviLightMarkedColor'] = '#ee0';
346 $GLOBALS['cfg']['NaviMarkedColor'] = '#ff0';
347 $GLOBALS['cfg']['NaviMarkedBGC'] = '#558';
348 $GLOBALS['cfg']['NaviPointerColor'] = '#000';
349 $GLOBALS['cfg']['NaviPointerBGC'] = '#fff';
350 $GLOBALS['cfg']['NaviDbLinkBGC'] = '#77a';
351 $GLOBALS['cfg']['NaviActiveBGC'] = '#ff5'; // 0
352 $GLOBALS['cfg']['NaviTblBGC'] = '#77a';
353 $GLOBALS['cfg']['NaviDbNameColor'] = '#000'; #66f';
354 $GLOBALS['cfg']['NaviDbNameBGC'] = 0 ; // '#fff'; // effect?
356 elseif ('work' == $GLOBALS['cfg']['customGrid']) //funny colors ;)
358 $GLOBALS['cfg']['NaviBGC'] = '#d6d6d6';//Server & Database
359 $GLOBALS['cfg']['NaviLogoBGC'] = $GLOBALS['cfg']['NaviBGC'];
360 $GLOBALS['cfg']['Navi2ndBGC'] = '#e6e6e6';
361 $GLOBALS['cfg']['NaviTblBGC'] = '#eee'; //#dfe';
362 $GLOBALS['cfg']['NaviDblBGC'] = '#ddd';
364 $GLOBALS['cfg']['NaviLightMarkedBGC'] = '#ffa';
365 $GLOBALS['cfg']['NaviLightMarkedColor'] = '#000';
366 $GLOBALS['cfg']['NaviMarkedBGC'] = '#999';
367 $GLOBALS['cfg']['NaviMarkedColor'] = '#ff6';
369 $GLOBALS['cfg']['NaviDbNameColor'] = '#bbf';
370 $GLOBALS['cfg']['NaviDbNameBGC'] = $GLOBALS['cfg']['NaviLightMarkedBGC']; //'#ddd';
371 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
372 $GLOBALS['cfg']['FieldsetBGC'] = '#f6f6f6';
373 $GLOBALS['cfg']['FieldsetFooterBGC'] = '#d6d6d6';
375 $GLOBALS['cfg']['BorderColor'] = '#bbb';
376 $GLOBALS['cfg']['LegendBorder'] = 1;
377 $GLOBALS['cfg']['LegendColor'] = '#000';
378 $GLOBALS['cfg']['LegendBGC'] = '#f3f3f3';
379 $GLOBALS['cfg']['MainLinkColor'] = '#00d';
380 $GLOBALS['cfg']['MainLinkHoverColor'] = '#000';
382 elseif ('test' == $GLOBALS['cfg']['customGrid'])
384 //070812 navi pager test
385 $GLOBALS['cfg']['LegendBorder'] = true;
386 $GLOBALS['cfg']['LegendColor'] = '#b50';
387 $GLOBALS['cfg']['LegendBGC'] = '#fff';
389 $GLOBALS['cfg']['NaviColor'] = '#eee';
390 $GLOBALS['cfg']['NaviBGC'] = '#669';
392 $GLOBALS['cfg']['Navi2ndBGC'] = '#88c';
393 $GLOBALS['cfg']['NaviDblBGC'] = '#77a';
395 $GLOBALS['cfg']['NaviLinkColor'] = '#eef';
396 $GLOBALS['cfg']['NaviLightMarkedBGC'] = '#99f';
397 $GLOBALS['cfg']['NaviLightMarkedColor'] = '#ee0';
398 $GLOBALS['cfg']['NaviMarkedColor'] = '#ff0';
399 $GLOBALS['cfg']['NaviMarkedBGC'] = '#558';
400 $GLOBALS['cfg']['NaviPointerColor'] = '#000';
401 $GLOBALS['cfg']['NaviPointerBGC'] = '#fff';
402 $GLOBALS['cfg']['NaviDbLinkBGC'] = '#77a';
403 $GLOBALS['cfg']['NaviActiveBGC'] = '#99f';
404 $GLOBALS['cfg']['NaviTblBGC'] = '#77a';
405 $GLOBALS['cfg']['NaviDbNameColor'] = 0; #bbf';
406 $GLOBALS['cfg']['NaviDbNameBGC'] = 0;
407 $GLOBALS['cfg']['TabBorderColor'] = '#bbb';
408 $GLOBALS['cfg']['TabUnderlineColor'] = '#777';