Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » style focused text widget
style focused text widget [message #1203695] Fri, 22 November 2013 19:59 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 152
Registered: July 2009
Senior Member
Hi all,
I want to set another background color for a focused text widget. With
my common CSS knowledge it wasn't successful I tried the following
selectors:

Composite Text:active
Composite Text:focus
Composite Text.active
Composite Text.focus

None of them works. If I omit the pseudo classes the text field is
styled correctly (but always, not only with focus). How can I achieve this?

TIA,
Ralf.
Re: style focused text widget [message #1206433 is a reply to message #1203695] Sun, 24 November 2013 03:54 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 293
Registered: January 2012
Senior Member

Unfortunately the naive approach that's in the code base isn't performant: it works ok for small projects, but falls over on larger projects.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=362532


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: style focused text widget [message #1207802 is a reply to message #1206433] Sun, 24 November 2013 19:45 Go to previous message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 152
Registered: July 2009
Senior Member
Am 24.11.2013 04:54, schrieb Brian de Alwis:
> Unfortunately the naive approach that's in the code base isn't
> performant: it works ok for small projects, but falls over on larger
> projects.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=362532

Hi Brian,
thanks for your reply. I'll make a FocusListener on my TextFields and
set the relevant attributes there.

Ralf.
Previous Topic:Unable to resolve plug-in: "platform:/plugin/DependencyPlugin/resource/images/tooltip_24.png&qu
Next Topic:Hot to get access to an OSGi service in a bundle Activator (e4)?
Goto Forum:
  


Current Time: Tue Jun 30 17:02:44 GMT 2015

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

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