Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ToolItem Markup support
ToolItem Markup support [message #857792] Thu, 26 April 2012 21:45 Go to next message
Ronald So is currently offline Ronald SoFriend
Messages: 198
Registered: April 2011
Senior Member
Hi,

Are there plans to support RWT.MARKUP_ENABLED for ToolItem? I have followed an example created by Elias Volanakis and use a dynamic contribution item in the toolbar to build the perspective switcher for my RAP UI.

http://eclipsesource.com/blogs/2009/03/31/replacing-the-perspective-switcher-in-rcp-apps/

Everything works fine. However, I want to make the ToolItem text bold when a perspective is selected. I read the RAP documentation but ToolItem does not support Markup yet, right?

The second question comes to the border that highlights the selected perspective. I created the ToolItem in SWT.RADIO style. Which CSS property should I change if I want to have a thicker border, instead of the default 1-pixel border?

Thanks a lot for your help.

Ronald
Re: ToolItem Markup support [message #857809 is a reply to message #857792] Thu, 26 April 2012 22:02 Go to previous messageGo to next message
Ronald So is currently offline Ronald SoFriend
Messages: 198
Registered: April 2011
Senior Member
As soon as I submit the last message, I got the second question answered. My original CSS script was not done correctly but now I can do whatever I need.

ToolItem:selected {
background-color: yellow;
}

I am still interested if we can make the text bold when a toolItem is in selected state. I know I can change the text color but not the style of the text.

Thanks!
Re: ToolItem Markup support [message #859178 is a reply to message #857809] Fri, 27 April 2012 13:46 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

the 'font' property is not supported on the theming for ToolItem. Please
open an enhancement request.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: ToolItem Markup support [message #859251 is a reply to message #859178] Fri, 27 April 2012 14:37 Go to previous messageGo to next message
Ronald So is currently offline Ronald SoFriend
Messages: 198
Registered: April 2011
Senior Member
Thanks Ralf. Bug (Enhancement) 377920 is filed.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=377920
Re: ToolItem Markup support [message #859895 is a reply to message #859251] Fri, 27 April 2012 21:29 Go to previous messageGo to next message
Ronald So is currently offline Ronald SoFriend
Messages: 198
Registered: April 2011
Senior Member
Just a follow up question. In the RAP documentation, it mentioned that the color-gradient will only support "linear, left top, left bottom" or exactly "linear, left top, right top". Are you planned to support "left top, right bottom"?

Thanks,
Ronald

<color-gradient>

Format: gradient(, followed by a list of comma-separated arguments, followed by ).

The first three arguments define the type and direction of the gradient. RAP currently only supports linear vertical gradients from the top to the bottom and linear vertical gradients from left to right. Therefore these arguments have to be either exactly "linear, left top, left bottom" or exactly "linear, left top, right top". Any other arguments will produce an error.

[Updated on: Fri, 27 April 2012 21:29]

Report message to a moderator

Re: ToolItem Markup support [message #863253 is a reply to message #859895] Sun, 29 April 2012 10:52 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Ronald,

no, we currently don't plan to support diagonal gradients.

Regards, Ralf


--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:RAP 1.4.2 TextCellEditor trouble on Firefox 12
Next Topic:[GEF] thread safety issue
Goto Forum:
  


Current Time: Fri Oct 22 14:18:34 GMT 2021

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

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

Back to the top