How to change topic icon on webhelp TOC

Here should go questions about transforming XML with XSLT and FOP.
tommyr
Posts: 1
Joined: Mon Aug 20, 2012 6:10 pm

How to change topic icon on webhelp TOC

Post by tommyr »

Hello,

I would like to change the icon from the question mark to a book. How would I accomplish this?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: How to change topic icon on webhelp TOC

Post by sorin_ristache »

Hi Tom,

The icons in the Contents tab of the WebHelp output are loaded from the file [Oxygen14.0-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\img\icons.png which is copied automatically by the DITA WebHelp transformation to the output directory of the transformation. The icons are extracted from this PNG image by the CSS stylesheet [Oxygen14.0-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\css\ui.dynatree.css. For example the icon with the question mark is displayed by the following code from ui.dynatree.css:

Code: Select all

span.dt-icon /* Default icon */
{
background-position: -17px 0px;
}
So you will have to edit the icons.png file and replace only the question mark fragment which starts at 17 pixels to the right from the top left corner.

I know this is not very convenient for changing the icons of the Contents tree and we plan to split this image into multiple icon files in a future version of Oxygen.


Regards,
Sorin
Post Reply