hyperspyUI icon indicating copy to clipboard operation
hyperspyUI copied to clipboard

Cursor color for Line measure tool

Open magnunor opened this issue 8 years ago • 1 comments
trafficstars

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.

magnunor avatar Jan 31 '17 18:01 magnunor

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?

vidartf avatar Feb 01 '17 10:02 vidartf