pkt1583 / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

Theme Switcher in Firefox 3 #383

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm seeing the same thing on http://www.gwt-ext.com/demo-ux/ in Firefox 3.

The green theme shows up fine, but as soon as you try to switch, it goes to
the Aero Theme and no matter what you select after that it stays on the
Aero theme, although the text does change colors, just not the backgrounds.

In Firefox 2, The theme switcher works except that Gray and Aero are
identical and both look like Aero. That problem I think is because the
empty css file xtheme-gray.css in the root of public that the extension
points to isn't included in the showcase2 demo package.

Looking at the Firebug output, I can see the xtheme being loaded, but it is
getting overrode by the style from ext-all.css. Comparing the two html
files, it appears that the Demo application loads ext-all.css and the
default theme color in the HEAD tag, while the UX demo loads them in the
BODY tag. Looking at the source for the Showcase2 demo application that I
downloaded, the HTML file included has the css in the BODY tag as well.

Moving the two links
Code:
<!--include the Ext CSS, and use the gray theme-->
<link rel="stylesheet" type="text/css"
href="js/ext/resources/css/ext-all.css"/>
<link id="theme" rel="stylesheet" type="text/css"
href="js/themes/indigo//css/xtheme-indigo.css"/>

to the HEAD tag should fix the problem.

Original issue reported on code.google.com by calth...@yahoo.com on 5 Aug 2008 at 2:08

GoogleCodeExporter commented 8 years ago
would anybody change this on the source code repository, it took me two hours, 
after
checking out the code, to find the solution. It's been a year since it was 
reported
and provided a solution. Thanks calth... !
We're still supporting gwt-ext apps, though we are developing new projects with
smartgwt ;)

Original comment by cirovlad...@gmail.com on 17 Jul 2009 at 8:19