eclipse rcp e4: how to highlight the selected tab in part stack?

落花浮王杯 提交于 2019-12-23 03:04:15

问题


What I have now (notice there is no highlight):

What I want (highlight the currently active part):

Thanks a lot!


回答1:


These colors are controlled by your CSS.

Assuming you are using the usual e4 tab renderer the selected tab color can be set with:

.MPartStack.active {
     swt-selected-tabs-background: #E5EDFC #99BAF3 100%;
}

By the 'usual tab renderer' I mean:

.MPartStack {
    swt-tab-renderer: url('bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering');
}

Update:

Inactive tab colors are controlled by the swt-unselected-tabs-color value.



来源:https://stackoverflow.com/questions/23905725/eclipse-rcp-e4-how-to-highlight-the-selected-tab-in-part-stack

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!