Currently, the html view of content in the plugin help viewer has fixed colors, that are adapted to the default bright style under windows.
However, if the darkStyle or darkOrangeStyle is applied, the colors look weired:
Change the colors depending on the stylesheet, by adding further user-defined entries in the qss-stylesheet files in itom/styles/stylesheets.
The current color palette is:
- For each color, that has to be changed, add a Q_PROPERTY to class HelpTreeDockWidget, including getter and setter method.
Store the color as QColor in separate members of this class. Use the current colors for the bright theme as defaults for these members.
- Modify the html templates for the different help pages in itom/Qitom/styles/help and replace the fixed color tags there by placeholder strings, e.g. %TITLE_BGCOLOR% for the background color of the title. The overall background color and the general text color is already given by the stylesheet. It has not to be changed.
- Add specific colors to the different qss files, by writing:
The, when this qss file is loaded, the setter of the property of HelpTreeDockWidget is called once with the value, given in the qss file.
- In class HelpTreeDockWidget change the render method, that reads the template html file, and replace all color placeholders by the QColor.name() of the desired color member.