git://git.onelab.eu
/
sface.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
65c93a5
)
Color tweak
author
Andy Bavier
<acb@acb-imac.cs.princeton.edu>
Thu, 17 Feb 2011 16:33:00 +0000
(11:33 -0500)
committer
Andy 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
patch
|
blob
|
history
diff --git
a/sface/screens/mainscreen.py
b/sface/screens/mainscreen.py
index
5811617
..
968d683
100644
(file)
--- a/
sface/screens/mainscreen.py
+++ b/
sface/screens/mainscreen.py
@@
-84,7
+84,7
@@
class NodeNameDelegate(QStyledItemDelegate):
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))