@@ -25,15 +25,14 @@ public static IssueCellView Create()
25
25
{
26
26
cell . Caption . TextColor = Theme . CurrentTheme . MainTitleColor ;
27
27
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 ) } ) ;
29
29
cell . Image1 . Image = Octicon . Gear . ToImage ( 12 ) ;
30
30
cell . Image2 . Image = Octicon . CommentDiscussion . ToImage ( 12 ) ;
31
31
cell . Image3 . Image = Octicon . Person . ToImage ( 12 ) ;
32
32
cell . Image4 . Image = Octicon . Pencil . ToImage ( 12 ) ;
33
33
cell . SeparatorInset = new UIEdgeInsets ( 0 , 0 , 0 , 0 ) ;
34
34
}
35
35
36
- //Create the icons
37
36
return cell ;
38
37
}
39
38
@@ -63,47 +62,7 @@ public void Bind(string title, string status, string priority, string assigned,
63
62
Label4 . Text = lastUpdated . UtcDateTime . Humanize ( ) ;
64
63
Number . Text = "#" + id ;
65
64
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
- */
76
65
}
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
- // }
107
66
108
67
private class SeperatorIssues : UIView
109
68
{
@@ -121,8 +80,6 @@ public override void Draw(CGRect rect)
121
80
base . Draw ( rect ) ;
122
81
123
82
var context = UIGraphics . GetCurrentContext ( ) ;
124
- //context.BeginPath();
125
- //context.ClipToRect(new RectangleF(63f, 0f, 3f, rect.Height));
126
83
using ( var cs = CGColorSpace . CreateDeviceRGB ( ) )
127
84
{
128
85
using ( var gradient = new CGGradient ( cs , new nfloat [ ] { 1f , 1f , 1f , 1.0f ,
0 commit comments