Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Migrate RAP theme from property to css
Migrate RAP theme from property to css [message #121952] Thu, 19 February 2009 03:45 Go to next message
Eclipse UserFriend
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
Re: Migrate RAP theme from property to css [message #122028 is a reply to message #121952] Thu, 19 February 2009 10:02 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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
Re: Migrate RAP theme from property to css [message #122083 is a reply to message #122028] Fri, 20 February 2009 10:38 Go to previous message
Eclipse UserFriend
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
Previous Topic:GridLayout difference with RCP
Next Topic:parent.qx.ui is null error in IE
Goto Forum:
  


Current Time: Thu Apr 25 13:45:17 GMT 2024

Powered by FUDForum. Page generated in 0.03210 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top