Closed jacobagilbert closed 2 years ago
This is a potential abuse of the core:comment
field... if this is the type of behavior that you like @miek we could discuss expanding this to provide control over line width, fill, text, etc via a dedicated inspectrum.sigmf-ext.md
extension. This is more complicated as libsigmf would need to be updated for that extension, but I can probably make that happen.
New plan is to add a presentation.sigmf-ext.md
extension to more cleanly handle this, and to support it within libsigmf directly. This should not be merged, so I am going to close it.
For now its still on the main
branch of my fork of inspectrum if anyone would like to try it.
Adds the ability to color SigMF using the information in the
core:comment
annotation
SigMF field. If the string in this field is a valid QColor QString (see: https://doc.qt.io/qt-5/qcolor.html#setNamedColor), either a SVG named color or a supported hexadecimal color specification (including alpha) it can be used to set the color of the annotation. This has many uses, and does not require any libsigmf changes. There is also a checkbox to disable custom colors (reverts to white).Closes #189 (as this MR includes it... ill leave that open in case you just want it and not this one).