Color tweak
authorAndy Bavier <acb@acb-imac.cs.princeton.edu>
Thu, 17 Feb 2011 16:33:00 +0000 (11:33 -0500)
committerAndy Bavier <acb@acb-imac.cs.princeton.edu>
Thu, 17 Feb 2011 16:33:00 +0000 (11:33 -0500)
Make existing nodes cyan.  Nodes to be added are green, and nodes to be removed are red.

sface/screens/mainscreen.py

index 5811617..968d683 100644 (file)
@@ -84,7 +84,7 @@ class NodeNameDelegate(QStyledItemDelegate):
         painter.drawRoundedRect(rect, 4, 4)
 
         if status_data == node_status['in']: # already in the slice
         painter.drawRoundedRect(rect, 4, 4)
 
         if status_data == node_status['in']: # already in the slice
-            painter.fillPath(path, QColor.fromRgb(0, 250, 0))
+            painter.fillPath(path, QColor("cyan"))
             painter.setPen(QColor.fromRgb(0, 0, 0))
             painter.drawText(option.rect, 0, QString(data))
 
             painter.setPen(QColor.fromRgb(0, 0, 0))
             painter.drawText(option.rect, 0, QString(data))