How to change the color of annotation tools in the Orthanc Stone Web Viewer?

Hello,

I’m working with the Orthanc Stone Web Viewer and I’m trying to customize the color of the annotation tools, such as Measure Length, Angle, Circle, etc.
By default, the annotations (lines, text, shapes) are drawn in green or light blue. I would like to change these to a different color to better match our UI theme or preferences.

My questions are:

  • What is the recommended way to change the color of annotations drawn by the tools?
  • Is there an API or configuration to customize these colors dynamically?
  • Or is it necessary to edit the C++ code (like StoneWebViewer.cpp) and recompile the WebAssembly version using ninja install?

Any guidance or best practices would be greatly appreciated.

Thanks in advance!

Hello,

This has just been implemented by the following changeset.

The new configuration options AnnotationsColor and HighlightedAnnotationsColor are now available, and will be available in forthcoming release of the Stone Web viewer.

Regards,
Sébastien-