Modifying icons to appear against a light background
You can change the color of icons in the sample extensions to ensure that they contrast
sufficiently against the background color of your theme.
About this task
Many of the Cognos Analytics sample extensions contain icons that are designed to work with the default theme, IBM Carbon X, which has a dark background. However, if you apply a theme without a dark background, these icons become indiscernible.
- Example
-
The extension SampleExtensionOpenDashboard_11_2.zip includes the icon dashboard.svg. It has a light color, hexadecimal color code
#f4f4f4
, as shown next to the Line dashboard option in the following diagram:If you apply a theme in which the background is a light color, you can no longer see the icon:
To fix this issue, follow these steps:
Procedure
Results
The black icon is visible against the light background.
For more information, see these topics: