我想使用 CSS 为 CTabFolder 设置样式,我想为其删除不必要的轮廓。我的案例类似于 Lars Vogel 在 CSS 样式教程中使用的示例:
Example Eclipse 4 application with CTabItem outline
在这个例子中,我想删除 To-Dos 或 Details 的轮廓。是否有通过 CSS 控制的属性可以删除此轮廓?
最佳答案
这取决于用于 CTabFolder
的选项卡渲染器。对于标准,我认为您无法更改它。
使用 Eclipse 使用的选项卡渲染器,您可以设置许多值:
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
设置要使用的标签渲染器。
我认为 swt-tab-outline
设置选项卡轮廓,但您可能必须与其他人一起玩才能获得一致的东西。
关于css - 在 Eclipse 4 中使用 CSS 删除 CTabFolder 大纲,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25500513/