#513 colorsets

out-of-date
nobody
None
5
2013-06-11
2004-05-05
No

in config.inc.php, there should be a selection of
colorsets for phpmyadmin to chose from.
i reprogrammed the disign-section here in the attached
file.

an extra option 'circling' would be nice, where every
table/database gets its own colorset.
this way the eye will get used to certain colors for
certain tables and the whole interface is a bit more
intuitive.

sure, the colorsets should all be unobtrusive ;)

Discussion

  • Ruben Barkow

    Ruben Barkow - 2004-05-05

    Logged In: YES
    user_id=334647

    i checked out 3 new colorsets:
    // blackwhite colorset:
    $cfg['ColorSets']['blackwhite']['RightBgColor'] =
    '#ffffff';
    $cfg['ColorSets']['blackwhite']['LeftBgColor'] =
    '#eeeeee';
    $cfg['ColorSets']['blackwhite']['LeftPointerColor']
    = '#ffffff';
    $cfg['ColorSets']['blackwhite']['ThBgcolor'] =
    '#ffffff';
    $cfg['ColorSets']['blackwhite']['BgcolorOne'] =
    '#dddddd';
    $cfg['ColorSets']['blackwhite']['BgcolorTwo'] =
    '#eeeeee';
    $cfg['ColorSets']['blackwhite']['BrowsePointerColor']
    = '#CCFFCC';
    $cfg['ColorSets']['blackwhite']['BrowseMarkerColor']
    = '#FFCC99';

    // yellow colorset:
    $cfg['ColorSets']['yellow']['RightBgColor'] = '#fff7e6';
    $cfg['ColorSets']['yellow']['LeftBgColor'] = '#fde8bb';
    $cfg['ColorSets']['yellow']['LeftPointerColor'] =
    '#ffffcc';
    $cfg['ColorSets']['yellow']['ThBgcolor'] = '#fde8bb';
    $cfg['ColorSets']['yellow']['BgcolorOne'] = '#ffffcc';
    $cfg['ColorSets']['yellow']['BgcolorTwo'] = '#f5eefb';
    $cfg['ColorSets']['yellow']['BrowsePointerColor'] =
    '#CCFFCC';
    $cfg['ColorSets']['yellow']['BrowseMarkerColor'] =
    '#ff9999';

    // blue colorset (if you like something exciting :)
    $cfg['ColorSets']['blue']['RightBgColor'] = '#3986BB';
    $cfg['ColorSets']['blue']['LeftBgColor'] = '#F1B610';
    $cfg['ColorSets']['blue']['LeftPointerColor'] =
    '#EA8A1B';
    $cfg['ColorSets']['blue']['ThBgcolor'] = '#EA8A1B';
    $cfg['ColorSets']['blue']['BgcolorOne'] = '#F1B610';
    $cfg['ColorSets']['blue']['BgcolorTwo'] = '#EA8A1B';
    $cfg['ColorSets']['blue']['BrowsePointerColor'] =
    '#E36117';
    $cfg['ColorSets']['blue']['BrowseMarkerColor'] =
    '#DC332F';

     
  • Ruben Barkow

    Ruben Barkow - 2004-05-05

    Logged In: YES
    user_id=334647

    it would be nice to have the font-color configureable too,
    then you could make designs with invers colors (white on black)

    i have two more, these are very good i think, i made them
    with photoshop and just took the colors from a
    color-variation of the default design screenshot:
    // pink:
    $cfg['ColorSets']['pink']['RightBgColor'] = '#F5F2F5';
    $cfg['ColorSets']['pink']['LeftBgColor'] ="#D4D3E2";
    $cfg['ColorSets']['pink']['LeftPointerColor'] =
    '#CCFFCC';
    $cfg['ColorSets']['pink']['ThBgcolor'] ="#D7D3E5";
    $cfg['ColorSets']['pink']['BgcolorOne'] ="#E0D5E0";
    $cfg['ColorSets']['pink']['BgcolorTwo'] ="#D0C0D0";
    $cfg['ColorSets']['pink']['BrowsePointerColor'] =
    '#CCFFCC';
    $cfg['ColorSets']['pink']['BrowseMarkerColor'] =
    '#FFCC99';

    // brown:
    $cfg['ColorSets']['brown']['RightBgColor'] ="#F6EFE0";
    $cfg['ColorSets']['brown']['LeftBgColor'] ="#D8C9AA";
    $cfg['ColorSets']['brown']['LeftPointerColor'] =
    '#CCFFCC';
    $cfg['ColorSets']['brown']['ThBgcolor'] ="#DBC9B1";
    $cfg['ColorSets']['brown']['BgcolorOne'] ="#E3CBA2";
    $cfg['ColorSets']['brown']['BgcolorTwo'] ="#D5B27E";
    $cfg['ColorSets']['brown']['BrowsePointerColor']
    ="#D5FE7E";
    $cfg['ColorSets']['brown']['BrowseMarkerColor']
    ="#FEB233";

    i attached the new colorset.inc.php
    just put it into your myadmin folder and write at the bottom
    of your config.inc.php
    include_once("colorsets.inc.php");

    then you have the option to select from the colors in
    colorsets.inc.php

     
  • Ruben Barkow

    Ruben Barkow - 2004-05-05

    Logged In: YES
    user_id=334647

    oh, its .php3, no

     
  • Garvin Hicking

    Garvin Hicking - 2004-05-06

    Logged In: YES
    user_id=473563

    I prefer to not pollute the config-file with those colorsets.

    What I suggest is that we approach this feature when working
    on the individual config (via DB-storage or cookie). So a
    user can have one or more different profiles (where we can
    also provide some default profiles) to choose from.

     
  • Ruben Barkow

    Ruben Barkow - 2004-05-06

    Logged In: YES
    user_id=334647

    anyway, everybody can download my include and include it at
    the bottom in the config file.
    this is a kind of "Patch" or "Plugin" to phpmyadmin

     
  • Mike

    Mike - 2004-05-07

    Logged In: YES
    user_id=1034731

    Perhaps it can have its' own seperate file with the color
    settings ?

     
  • Ruben Barkow

    Ruben Barkow - 2004-05-21
     
  • Ruben Barkow

    Ruben Barkow - 2004-05-21

    Logged In: YES
    user_id=334647

    i think colors can be very helpfull navigating through the
    interface.
    i have a simpler idea to get some more useability in the
    interface: the table name should have a unique color in the
    header.

    supplement in header.inc.php in line 144 (2.6.alpha2) this:

    if (!empty($GLOBALS['table'])) {
    echo ' - ' . $GLOBALS['strTable'] . ' <i><a
    class="h1" href="' . $GLOBALS['cfg']['DefaultTabTable'] .
    $header_url_qry . '&amp;db=' . urlencode($GLOBALS
    ['db']) . '&amp;table=' . urlencode($GLOBALS['table']) . '">' .
    htmlspecialchars($GLOBALS['table']) . '</a></i>' . "\n";
    }

    with this:

    if (!empty($GLOBALS['table'])) {
    echo ' - ' . $GLOBALS['strTable'] . ' <i><a class="h1"
    href="' . $GLOBALS['cfg']['DefaultTabTable'] .
    $header_url_qry . '&amp;db=' . urlencode($GLOBALS
    ['db']) . '&amp;table=' . urlencode($GLOBALS['table']) . '" ';
    echo ' style="color:#';
    // get a color depending on the dame of the table (mod 14
    because very bright colors are not so readable)

    $abc="qwertzuioplkjhgfdsayxcvbnmQWERTZUIOPLKJHGFDSAYX
    CVBNM2";
    for($i=0; $i<strlen($abc); $i++){
    if($GLOBALS['table'][0]==$abc[$i]) $n= $i%14;
    }
    echo dechex($n)."f";
    for($i=0; $i<strlen($abc); $i++){
    if($GLOBALS['table'][floor((strlen($GLOBALS['table']))/2)]
    ==$abc[$i]) $n= $i%14;
    }
    echo dechex($n)."f";
    for($i=0; $i<strlen($abc); $i++){
    if($GLOBALS['table'][strlen($GLOBALS['table'])-1]==$abc
    [$i]) $n= $i%14;
    }
    echo dechex($n)."f";
    echo '">';
    echo htmlspecialchars($GLOBALS['table']);
    echo '</a></i>' . "\n";
    }

    you can see my example here:
    http://hirnbrand/test/phpMyAdmin-2.6.0-alpha2/

     
  • Michal Čihař

    Michal Čihař - 2004-10-21

    Logged In: YES
    user_id=192186

    We now have themes, so I gues this is out of date.

     
  • Michal Čihař

    Michal Čihař - 2004-10-21
    • status: open --> closed-out-of-date
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-out-of-date --> out-of-date
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks