hyperspyUI
hyperspyUI copied to clipboard
Cursor color for Line measure tool
When using the Line Measure tool, the cursor changes to a different shape and becomes semi transparent black.
The color is supposed to change based on the color of the image, however this does not work in MacOS or Ubuntu.
The color inversion is only available on Windows, see Qt docs at http://doc.qt.io/qt-4.8/qcursor.html#QCursor-3. The relevant code in HUI is here: https://github.com/hyperspy/hyperspyUI/blob/21f16ae18268dafa4b2fc9d07991b91401fdac7c/hyperspyui/util.py#L143-L164. On windows it uses a custom cross-hair that relies on the Qt feature linked above; on other platforms it uses a cross-hair SVG.
Maybe your problem could be solved by an improvement to the SVG file?