CSS in Eclipse 4: removing CTabFolder outlines
I would like to style the CTabFolder using CSS, for which I would like to remove the unnecessary outline. My case is similar to the example used by Lars Vogel for a CSS styling tutorial:
Sample Eclipse 4 application with CTabItem outline
In this example, I would like to remove the To-Dos or Details outlines. Is there a CSS controlled property that can remove this schema?
source to share
It depends on which tab display tool you are using for CTabFolder
. For the standard, I don't think you can change this.
Using the tab renderer used by Eclipse, you can set several values:
CTabFolder
{
swt-tab-renderer: url('bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering');
swt-unselected-tabs-color: white white white 100% 100%;
swt-selected-tab-fill: white;
swt-outer-keyline-color: white;
swt-tab-outline: white;
swt-shadow-visible: false;
swt-simple: true;
swt-tab-height: 22px;
swt-selected-tabs-background: white white 100%;
swt-shadow-color: white;
}
swt-tab-renderer
specifies the tab renderer to use. I think this swt-tab-outline
sets up a tabbed layout, but you might have to play with others to get something consistent.
source to share