Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » CSS Styling for disabled widgets
CSS Styling for disabled widgets [message #988577] Fri, 30 November 2012 10:08 Go to next message
Ulrich Obst is currently offline Ulrich Obst
Messages: 12
Registered: August 2012
Junior Member
Hi,

I read at several places that I can define a CSS styling for disabled widgets using pseudo classes such as

Text:disabled {
    background-color: #FFFFFF;
}

But this has no effects. (CSS styles for normal widgets works as expected).
Does anybody know the exact syntax for setting properties for disabled widgets?

Thanks
Ulli
Re: CSS Styling for disabled widgets [message #988847 is a reply to message #988577] Mon, 03 December 2012 07:59 Go to previous messageGo to next message
Nagesh Bansal is currently offline Nagesh Bansal
Messages: 21
Registered: September 2012
Junior Member
CTabItem{
color: #00ff00;
}

CTabItem:selected{
color: #00ffff;
}

This worked for me....
Re: CSS Styling for disabled widgets [message #988853 is a reply to message #988577] Mon, 03 December 2012 08:14 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5277
Registered: July 2009
Senior Member
Could it be that a disabled text-field does not allow you change its
background. You can prove that by testing this in plain SWT, does the
background color change when you call setBackground on a disabled
Text-Control?

Tom

Am 30.11.12 16:08, schrieb Ulrich Obst:
> Hi,
>
> I read at several places that I can define a CSS styling for disabled
> widgets using pseudo classes such as
>
>
> Text:disabled {
> background-color: #FFFFFF;
> }
>
> But this has no effects. (CSS styles for normal widgets works as expected).
> Does anybody know the exact syntax for setting properties for disabled
> widgets?
> Thanks
> Ulli
Re: CSS Styling for disabled widgets [message #989009 is a reply to message #988853] Tue, 04 December 2012 05:05 Go to previous message
Ulrich Obst is currently offline Ulrich Obst
Messages: 12
Registered: August 2012
Junior Member
Yes you're right. Setting the background of a disabled Text Widget has no effect either. Ok, that's a SWT issue not a CSS Bug.

Thank you for your help
Ulli
Previous Topic:Editor area
Next Topic:Disable MMenu in the Main Menu
Goto Forum:
  


Current Time: Wed Aug 20 03:09:14 EDT 2014

Powered by FUDForum. Page generated in 0.01576 seconds