button with the rollover effect [message #110852] |
Thu, 30 October 2008 05:57  |
Eclipse User |
|
|
|
Originally posted by: wen.ai.gillardon.de
Hi,
how can I get the rollover effect for a button? I have tried the way of
the css definition as following, but failed.
/* Button */
Button.mybutton {
background-image: url( "/theme/icons/test_gray.png" );
}
Button.mybutton:hover {
background-image: url( "/theme/icons/test.png" );
}
Can someone help? Thanks.
Wen
|
|
|
|
Re: button with the rollover effect [message #110943 is a reply to message #110890] |
Fri, 31 October 2008 05:54   |
Eclipse User |
|
|
|
Originally posted by: wen.ai.gillardon.de
Hi Ralf,
thanks for your answer. I have opened an enhancement bug 252938.
By the way, how could I know, which property is themeable, which not?
Are there any other solutions for the rollover effect?
Thanks a lot.
Wen
Ralf Sternberg schrieb:
> Hi Wen,
>
> your CSS would work if the Button's background image property were
> already themeable. Unfortunately, it's not. Enhancing the set of
> themeable widget properties is on our agenda. Anyway, feel free to open
> an enhancement bug to track progress.
>
> Best regards, Ralf
>
> Wen Ai wrote:
>> Hi,
>>
>> how can I get the rollover effect for a button? I have tried the way of
>> the css definition as following, but failed.
>>
>> /* Button */
>>
>> Button.mybutton {
>> background-image: url( "/theme/icons/test_gray.png" );
>> }
>>
>> Button.mybutton:hover {
>> background-image: url( "/theme/icons/test.png" );
>> }
>>
>> Can someone help? Thanks.
>>
>> Wen
|
|
|
Re: button with the rollover effect [message #110980 is a reply to message #110943] |
Fri, 31 October 2008 09:58  |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Wen Ai wrote:
> Hi Ralf,
>
> thanks for your answer. I have opened an enhancement bug 252938.
>
> By the way, how could I know, which property is themeable, which not?
We'll create documentation for themeable properties soon. See bug
245837: [Theming] Create CSS documentation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=245837
> Are there any other solutions for the rollover effect?
You could implement this effect in a custom widget. But I guess we can
make background colors themeable very soon, so the effort for a custom
widget might not pay off.
Best regards, Ralf
>
> Thanks a lot.
>
> Wen
>
>
>
> Ralf Sternberg schrieb:
>> Hi Wen,
>>
>> your CSS would work if the Button's background image property were
>> already themeable. Unfortunately, it's not. Enhancing the set of
>> themeable widget properties is on our agenda. Anyway, feel free to open
>> an enhancement bug to track progress.
>>
>> Best regards, Ralf
>>
>> Wen Ai wrote:
>>> Hi,
>>>
>>> how can I get the rollover effect for a button? I have tried the way of
>>> the css definition as following, but failed.
>>>
>>> /* Button */
>>>
>>> Button.mybutton {
>>> background-image: url( "/theme/icons/test_gray.png" );
>>> }
>>>
>>> Button.mybutton:hover {
>>> background-image: url( "/theme/icons/test.png" );
>>> }
>>>
>>> Can someone help? Thanks.
>>>
>>> Wen
|
|
|
Powered by
FUDForum. Page generated in 0.04630 seconds