Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to change padding around views/editors title text
How to change padding around views/editors title text [message #1696940] Fri, 29 May 2015 15:29 Go to next message
Damien Boucquey is currently offline Damien BoucqueyFriend
Messages: 3
Registered: May 2015
Junior Member
Hello,

I am trying to lower the height of Views and editor title bars.
It appears that the padding around the title text and images is what I need to change:

In the attached screenshot:


  • Title text height is 15px
  • Images (close and editor icon) are 16px
  • The title bar for all editors and views has a height of 34px.


It tried to use the CSS around CTabItem as suggested in https://www.eclipse.org/forums/index.php/t/368998/??SQ=a2efcf7a780ab77f4ff3d50b39ed4abf&S=9ed30b478ebef4d3f8ffc03e74220049 but the padding does not alter the total height.

Is there a specific CSS item I can alter to achieve this ?

Thanks for your reply.

Damien
  • Attachment: Untitled.png
    (Size: 5.25KB, Downloaded 114 times)
Re: How to change padding around views/editors title text [message #1696942 is a reply to message #1696940] Fri, 29 May 2015 15:59 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
the CTabFolder has a dedicated method setTabHeight(int). The height set
by this method overrides the top/bottom padding set by the themeing.
Probably this method is used in workbench view parts. Of course, you
could set it again to any value you want.
HTH,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: How to change padding around views/editors title text [message #1697348 is a reply to message #1696942] Wed, 03 June 2015 10:30 Go to previous message
Damien Boucquey is currently offline Damien BoucqueyFriend
Messages: 3
Registered: May 2015
Junior Member
Hey Ivan,

Thanks a lot !
The reason why CSS does not affect the tab height is that it allows for a toolbar to fit in the height (for e.g. view toolbars in a view stack). This happens in DefaultTabFolder.computeTabHeight()
The same applies for editors, even if editor toolbars are usually in the top level coolbar.

By altering the CSS attributes of TooItem, I was able to eventually reduce the tab height.

Damien
Previous Topic:Scrolling visual issue with Table Header
Next Topic:Font Heights as Double/Float rather than Integer
Goto Forum:
  


Current Time: Sun Sep 22 19:08:37 GMT 2024

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

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

Back to the top