[longomatch] Highlight event button when header is clicked



commit 36f72cf7d2269b6cbfcb6da14d71bb9f3ca3f987
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Sep 19 20:53:17 2014 +0200

    Highlight event button when header is clicked

 LongoMatch.Drawing/CanvasObjects/CategoryObject.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Drawing/CanvasObjects/CategoryObject.cs 
b/LongoMatch.Drawing/CanvasObjects/CategoryObject.cs
index f603e51..1fcacc2 100644
--- a/LongoMatch.Drawing/CanvasObjects/CategoryObject.cs
+++ b/LongoMatch.Drawing/CanvasObjects/CategoryObject.cs
@@ -152,7 +152,11 @@ namespace LongoMatch.Drawing.CanvasObjects
                        /* Draw header */
                        tk.FillColor = LongoMatch.Core.Common.Color.Grey2;
                        tk.LineWidth = 2;
-                       tk.StrokeColor = Button.TextColor;
+                       if (catSelected) {
+                               tk.StrokeColor = Button.DarkColor;
+                       } else {
+                               tk.StrokeColor = Button.TextColor;
+                       }
                        tk.DrawText (position, catWidth, heightPerRow, Button.EventType.Name);
                        rects.Add (new Rectangle (position, catWidth, heightPerRow), Button);
                        yptr += heightPerRow;


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