PDA

View Full Version : Gray theme button highlight



Michael Vogt
15 Jan 2010, 7:06 AM
Hello everybody.

I just found out, that the button display is not correct, when the gray theme is used.

What I did is, I just added the gxt-gray.css to the html file. My impression is, that all the other widgets I use show correctly this way.

To solve this for now, I just copied the file from resources/images/gray/button/btn.gif to /resources/images/default/button/btn.gif. So it seems, the wrong btn.gif is used for the gray theme.


Greetings,
Michael Vogt

Arno.Nyhm
18 Jan 2010, 4:26 AM
yes you are right.

this code snippet should be included in the gxt-gray.css:


.x-btn-tl, .x-btn-tr, .x-btn-tc, .x-btn-ml, .x-btn-mr,
.x-btn-mc, .x-btn-bl, .x-btn-br, .x-btn-bc{
background-image:url(../images/gray/button/btn.gif);
}


as workaround you can save this snippet as gxt-gray-patch.css and load it as the last css file - then you are more save if you update all your resources.

note:
if you place your gxt-gray-patch.css file in an other folder as the original gxt-gray.css then dont forget to change the path to the gif file.

in my case it looks then:


.x-btn-tl, .x-btn-tr, .x-btn-tc, .x-btn-ml, .x-btn-mr,
.x-btn-mc, .x-btn-bl, .x-btn-br, .x-btn-bc{
/* background-image:url(../images/gray/button/btn.gif); */
background-image:url(lib/gxt-2.1/resources/images/gray/button/btn.gif);
}

Michael Vogt
18 Jan 2010, 9:43 AM
Excelent. Thanks.

Looks like this has to be done with other graphics files, too. For example the selection of a grid ro is also blue.


Greetings,
Michael Vogt