This repository was archived by the owner on May 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
samples/XCT.Sample/Pages/Base Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ Forms.Page PreparePage(SectionModel model)
33
33
var page = ( BasePage ) Activator . CreateInstance ( model . Type ) ;
34
34
page . Title = model . Title ;
35
35
page . DetailColor = model . Color ;
36
- page . SetAppThemeColor ( BackgroundColorProperty , Color . White , Color . Black ) ;
37
36
return page ;
38
37
}
39
38
}
Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ public static Stream GetImageStream(IList<Point>? points,
89
89
90
90
context . AddLines ( points . Select ( p => new CGPoint ( p . X - minPointX , p . Y - minPointY ) ) . ToArray ( ) ) ;
91
91
context . StrokePath ( ) ;
92
- using var cgImage = context . ToImage ( ) ?? throw new InvalidOperationException ( ) ;
92
+
93
+ using var cgImage = context . ToImage ( ) ?? throw new InvalidOperationException ( "Image Cannot be null" ) ;
93
94
NSImage image = new ( cgImage , imageSize ) ;
94
95
95
96
return image ;
@@ -130,7 +131,7 @@ public static Stream GetImageStream(IList<Point>? points,
130
131
131
132
context . StrokePath ( ) ;
132
133
133
- using var cgImage = context . ToImage ( ) ?? throw new InvalidOperationException ( ) ;
134
+ using var cgImage = context . ToImage ( ) ?? throw new InvalidOperationException ( "Image Cannot Be Null" ) ;
134
135
NSImage image = new ( cgImage , imageSize ) ;
135
136
136
137
return image ;
You can’t perform that action at this time.
0 commit comments