@@ -25,15 +25,14 @@ public static IssueCellView Create()
2525 {
2626 cell . Caption . TextColor = Theme . CurrentTheme . MainTitleColor ;
2727 cell . Number . TextColor = Theme . CurrentTheme . MainTitleColor ;
28- cell . AddSubview ( new SeperatorIssues { Frame = new CGRect ( 65f , 5f , 1f , cell . Frame . Height - 10f ) } ) ;
28+ cell . ContentView . AddSubview ( new SeperatorIssues { Frame = new CGRect ( 65f , 5f , 1f , cell . Frame . Height - 10f ) } ) ;
2929 cell . Image1 . Image = Octicon . Gear . ToImage ( 12 ) ;
3030 cell . Image2 . Image = Octicon . CommentDiscussion . ToImage ( 12 ) ;
3131 cell . Image3 . Image = Octicon . Person . ToImage ( 12 ) ;
3232 cell . Image4 . Image = Octicon . Pencil . ToImage ( 12 ) ;
3333 cell . SeparatorInset = new UIEdgeInsets ( 0 , 0 , 0 , 0 ) ;
3434 }
3535
36- //Create the icons
3736 return cell ;
3837 }
3938
@@ -63,47 +62,7 @@ public void Bind(string title, string status, string priority, string assigned,
6362 Label4 . Text = lastUpdated . UtcDateTime . Humanize ( ) ;
6463 Number . Text = "#" + id ;
6564 IssueType . Text = kind ;
66-
67- /*
68- if (model.CommentCount > 0)
69- {
70- var ms = model.CommentCount.ToString ();
71- var ssize = ms.MonoStringLength(CountFont);
72- var boxWidth = Math.Min (22 + ssize, 18);
73- AddSubview(new CounterView(model.CommentCount) { Frame = new RectangleF(Bounds.Width-30-boxWidth, Bounds.Height / 2 - 8, boxWidth, 16) });
74- }
75- */
7665 }
77- //
78- // static readonly UIFont CountFont = UIFont.BoldSystemFontOfSize (13);
79- //
80- // private class CounterView : UIView
81- // {
82- // private readonly int _counter;
83- // public CounterView(int counter)
84- // : base ()
85- // {
86- // _counter = counter;
87- // BackgroundColor = UIColor.Clear;
88- // }
89- //
90- // public override void Draw(RectangleF rect)
91- // {
92- // if (_counter > 0){
93- // var ctx = UIGraphics.GetCurrentContext ();
94- // var ms = _counter.ToString ();
95- //
96- // var crect = Bounds;
97- //
98- // UIColor.Gray.SetFill ();
99- // GraphicsUtil.FillRoundedRect (ctx, crect, 3);
100- // UIColor.White.SetColor ();
101- // crect.X += 5;
102- // DrawString (ms, crect, CountFont);
103- // }
104- // base.Draw(rect);
105- // }
106- // }
10766
10867 private class SeperatorIssues : UIView
10968 {
@@ -121,8 +80,6 @@ public override void Draw(CGRect rect)
12180 base . Draw ( rect ) ;
12281
12382 var context = UIGraphics . GetCurrentContext ( ) ;
124- //context.BeginPath();
125- //context.ClipToRect(new RectangleF(63f, 0f, 3f, rect.Height));
12683 using ( var cs = CGColorSpace . CreateDeviceRGB ( ) )
12784 {
12885 using ( var gradient = new CGGradient ( cs , new nfloat [ ] { 1f , 1f , 1f , 1.0f ,
0 commit comments