1
SMEDrieben
Default admin theme doesn't switch to silver
  • 2011/10/3 20:10

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


Great work 2.5.2. ! I discovered one strange thing.

It isn't a very important bug (if it is one), but my default 2.5.2. admin theme doesn't switch to silver. In 2.5.1a it worked perfectly !

When I click om "Silver", the fonts get black, but the header and the background remain dark. When I click, thereafter, on "Dark", the fonts return to light gray: the background (header) doesn't switch.

I did these tests both with Chrome and IE9. The same results. Erasing xoops-caches and Chrome caches doesn't change anything.

Any idea ?

SME Drieben

2
trabis
Re: Default admin theme doesn't switch to silver
  • 2011/10/3 20:29

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I confirm. Will investigate it. Thank you!

3
trabis
Re: Default admin theme doesn't switch to silver
  • 2011/10/3 20:51

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Okey, seems like the order of css inclusion does make difference. My fault.

Edit modules/system/themes/default/default.php and change

$xoTheme->addStylesheet(XOOPS_ADMINTHEME_URL '/default/css/dark.css', array('title' => 'dark''media' => 'screen'));
$xoTheme->addStylesheet(XOOPS_ADMINTHEME_URL '/default/css/silver.css', array('title' => 'silver''media' => 'screen'));
$xoTheme->addStylesheet(XOOPS_ADMINTHEME_URL '/default/css/orange.css', array('title' => 'orange''media' => 'screen'));
$xoTheme->addStylesheet(XOOPS_ADMINTHEME_URL '/default/css/style.css' );

Into
$xoTheme->addStylesheet(XOOPS_ADMINTHEME_URL '/default/css/style.css' );
 
$xoTheme->addStylesheet(XOOPS_ADMINTHEME_URL '/default/css/dark.css', array('title' => 'dark''media' => 'screen'));
$xoTheme->addStylesheet(XOOPS_ADMINTHEME_URL '/default/css/silver.css', array('title' => 'silver''media' => 'screen'));
$xoTheme->addStylesheet(XOOPS_ADMINTHEME_URL '/default/css/orange.css', array('title' => 'orange''media' => 'screen'));

Login

Who's Online

69 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 69


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits