[gitg] [PATCH 3/3] Use the same color for every long-runing lane



---
 libgitg/gitg-lanes.vala | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/libgitg/gitg-lanes.vala b/libgitg/gitg-lanes.vala
index 5e255cd..f335e33 100644
--- a/libgitg/gitg-lanes.vala
+++ b/libgitg/gitg-lanes.vala
@@ -169,7 +169,7 @@ public class Lanes : Object
                                        mylane.from = myoid;
                                        mylane.inactive = 0;
                                        mylane.lane.from.append(lnpos);
-                                       mylane.lane.color = Color.next();
+                                       mylane.lane.color = mylane.lane.color.copy();
                                        d_lanes.remove(container);
                                } else {
                                        container.from = myoid;
@@ -185,14 +185,7 @@ public class Lanes : Object
                                // commit lane, so set it now
                                mylane.to = poid;
 
-                               if (parents.size() > 1)
-                               {
-                                       mylane.lane.color = Color.next();
-                               }
-                               else
-                               {
-                                       mylane.lane.color = mylane.lane.color.copy();
-                               }
+                               mylane.lane.color = mylane.lane.color.copy();
                        }
                        else
                        {
-- 
1.8.2.3



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]