Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] [XCT.Sample] Fixed ContentPages BackgroundColor #1595

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion samples/XCT.Sample/Pages/Base/BasePage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Forms.Page PreparePage(SectionModel model)
var page = (BasePage)Activator.CreateInstance(model.Type);
page.Title = model.Title;
page.DetailColor = model.Color;
page.SetAppThemeColor(BackgroundColorProperty, Color.White, Color.Black);
return page;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ public static Stream GetImageStream(IList<Point>? points,

context.AddLines(points.Select(p => new CGPoint(p.X - minPointX, p.Y - minPointY)).ToArray());
context.StrokePath();
using var cgImage = context.ToImage() ?? throw new InvalidOperationException();

using var cgImage = context.ToImage() ?? throw new InvalidOperationException("Image Cannot be null");
NSImage image = new(cgImage, imageSize);

return image;
Expand Down Expand Up @@ -130,7 +131,7 @@ public static Stream GetImageStream(IList<Point>? points,

context.StrokePath();

using var cgImage = context.ToImage() ?? throw new InvalidOperationException();
using var cgImage = context.ToImage() ?? throw new InvalidOperationException("Image Cannot Be Null");
NSImage image = new(cgImage, imageSize);

return image;
Expand Down