Community
Participate
Working Groups
This affects a TabbedPropertySheetPage's tabs on the left side. One can specify the colors used for these in the e4 CSS styling files in the "TabbedPropertyList" section To see this problem more clearly set the value of swt-tabNormalShadow-color in the "e4_default_win.css" file to red "#ff0000;": TabbedPropertyList { swt-tabAreaBackground-color : #ffffff; swt-tabBackground-color : '#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_BG_START'; swt-tabNormalShadow-color : #ff0000; /* RED */ swt-tabDarkShadow-color : '#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_SELECTED_TEXT_COLOR'; color : #505050; } In Eclipse or an RCP app that uses tabbed properties: 1. Ensure the Properties View is closed. 2. Select a View Part or Edit Part and show the Properties View. The Tabs are coloured as expected. 3. Select another View Part or Edit Part so that it updates the Properties View. The Tabs are NOT coloured as expected 4. Put the focus on the Properties View by clicking on it. The Tabs are coloured as expected.
Created attachment 277813 [details] Screenshot shows first edit part selected - correct
Created attachment 277814 [details] Screenshot shows second edit part selected - incorrect
My theory is that TabbedPropertyList is rendering the tabs before TabbedPropertyList#setWidgetNormalShadowColor() has been called. But setting the focus on the Tabbed Property View corrects this.
A workaround is to call reskin() on TabbedPropertyComposite#getList() (TabbedPropertyList) after creating the controls in an AbstractPropertySection
New Gerrit change created: https://git.eclipse.org/r/160709
Created attachment 282396 [details] Initial-color-is-gray
Gerrit change https://git.eclipse.org/r/160709 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=348af87b4875b9835552ff22e91e8cead44abfe9