Question & Answer
Question
RCP: How to change the Header Logo image of the application?
Answer
For applications using the RCP framework, it is possible to set a custom header logo image by editing the theme file used by the RCP application. In the theme file, the image path property would need to be set. Here's how it can be achieved:
<Theme id="jade">
<ThemeEntry Name="HeaderLogo">
<Image Path="/icons/yantra_header.jpg"/>
</ThemeEntry>
</Theme>
The custom logo/icon should be placed under the com.yantra.pca.ycd.rcp_1.0.0/icons folder. The theme files are present in the com.yantra.yfc.rcp_1.0.0 folder. If the RCP application is extended, a theme file should be registered in the plugin java file of the plug-in project using the registerTheme() method as shown below.
YRCPlatformUI.registerTheme("<file_name>_<themename>", ID);
Historical Number
HTG2820
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21562417