[plot3d] Issue with color picker in parameter tree on MacOS
On MacOS El Captain with python 3.4, PyQt4.8.7, there is a issue with the color picker: changing one color in the param tree changes other colors… Cancel and OK buttons are added to the dialog each time  the dialog is opened.
diff --git a/silx/gui/plot3d/SFViewParamTree.py b/silx/gui/plot3d/SFViewParamTree.py
index ef4b850d3..84ea2a428 100644
--- a/silx/gui/plot3d/SFViewParamTree.py
+++ b/silx/gui/plot3d/SFViewParamTree.py
@@ -33,6 +33,7 @@ __license__ = "MIT"
 __date__ = "10/01/2017"
 
 import logging
+import sys
 
 import numpy
 
@@ -635,6 +636,10 @@ class QColorEditor(qt.QWidget):
 
     def __showColorDialog(self):
         dialog = qt.QColorDialog(parent=self)
+        if sys.platform == 'darwin':
+            # Use of native color dialog on macos might cause problems
+            dialog.setOption(qt.QColorDialog.DontUseNativeDialog, True)
+
         self.__previousColor = self.__color
         dialog.setAttribute(qt.Qt.WA_DeleteOnClose)
         dialog.setModal(True)
@@ -1216,6 +1221,8 @@ class TreeView(qt.QTreeView):
         super(TreeView, self).__init__(parent)
         self.__openedIndex = None
 
+        self.setIconSize(qt.QSize(16, 16))
+
         header = self.header()
         if hasattr(header, 'setSectionResizeMode'):  # Qt5
             header.setSectionResizeMode(qt.QHeaderView.ResizeToContents)
['silx/gui/plot3d/SFViewParamTree.py']