Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsMigrate RAP theme from property to css
https://www.eclipse.org/forums/index.php/mv/msg/37529/121952/#msg_121952
Originally posted by: cheney_chen.i-len.com
Hi,
I used the the theming based on property files in my application before
1.2M4.Now I use the 1.2M4,So I need to migrate RAP theme from property
file to css file.My problem is that hover foreground for buttons in
property file is working well,the code as bellow;but I can't find any way
for buttons' hover foreground work in css file.is there any way in 1.2M4
achieve hover foreground for buttons?
# Hover color for buttons
# default: #fbfbfe
#button.hover.background: #56a0ea
button.hover.foreground: #fb8006
Thank for any help!
Cheney]]>2009-02-19T03:45:35-00:00Re: Migrate RAP theme from property to css
https://www.eclipse.org/forums/index.php/mv/msg/37529/122028/#msg_122028
> I used the the theming based on property files in my application before
> 1.2M4.Now I use the 1.2M4,So I need to migrate RAP theme from property
> file to css file.My problem is that hover foreground for buttons in
> property file is working well,the code as bellow;but I can't find any way
> for buttons' hover foreground work in css file.is there any way in 1.2M4
> achieve hover foreground for buttons?
Here's a simple CSS snippet for hover colors:
Button {
color: black;
}
Button:hover {
color: red;
}
But note, that when you refer to multiple attributes like style flags or
states somewhere above in your stylesheet, you have to mind CSS
precedence rules, e.g. if you have
Hope that helps,
Ralf]]>Ralf Sternberg2009-02-19T10:02:19-00:00Re: Migrate RAP theme from property to css
https://www.eclipse.org/forums/index.php/mv/msg/37529/122083/#msg_122083
Originally posted by: cheney_chen.i-len.com
Hi Ralf,
Thanks for information.It works now.
Best Regards,
Cheney
Ralf Sternberg wrote:
> Hi Cheney,
>
>> I used the the theming based on property files in my application before
>> 1.2M4.Now I use the 1.2M4,So I need to migrate RAP theme from property
>> file to css file.My problem is that hover foreground for buttons in
>> property file is working well,the code as bellow;but I can't find any way
>> for buttons' hover foreground work in css file.is there any way in 1.2M4
>> achieve hover foreground for buttons?
>
> Here's a simple CSS snippet for hover colors:
>
> Button {
> color: black;
> }
>
> Button:hover {
> color: red;
> }
>
> But note, that when you refer to multiple attributes like style flags or
> states somewhere above in your stylesheet, you have to mind CSS
> precedence rules, e.g. if you have
>
> Button[PUSH][BORDER], Button[TOGGLE][BORDER] {
> color: black;
> }
>
> then you need:
>
> Button[PUSH][BORDER]:hover, Button[TOGGLE][BORDER]:hover {
> color: red;
> }
>
> Hope that helps,
> Ralf]]>2009-02-20T10:38:20-00:00