Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad rendering on MacOS/Catalyst with a Uno Platform project #1512

Open
ArchieCoder opened this issue May 16, 2024 · 0 comments
Open

Bad rendering on MacOS/Catalyst with a Uno Platform project #1512

ArchieCoder opened this issue May 16, 2024 · 0 comments

Comments

@ArchieCoder
Copy link

ArchieCoder commented May 16, 2024

Describe the bug
The first different is the black background. I would have expected white like Windows or Linux. The bug is the rendering is not working as expected when Catalyst output is used. It works with MacOS/Skia. See screenshot below:

To Reproduce
1- Create a new Uno Project using the latest version (Single Project).

2- Add the control

<winUi:CartesianChart
Grid.Row="2"
Series="{Binding Series}"
XAxes="{Binding XAxes}"
YAxes="{Binding YAxes}" />

3- Create the data

public ISeries[] Series { get; set; } =
{
new LineSeries
{
Values = new ObservableCollection
{
new DateTimePoint(new DateTime(2021, 1, 1), 300),
new DateTimePoint(new DateTime(2021, 2, 1), 600),
new DateTimePoint(new DateTime(2021, 3, 1), 500),
new DateTimePoint(new DateTime(2021, 4, 1), 300),
new DateTimePoint(new DateTime(2021, 5, 1), 500),
new DateTimePoint(new DateTime(2021, 6, 1), 600),
new DateTimePoint(new DateTime(2021, 7, 1), 800),
new DateTimePoint(new DateTime(2021, 8, 1), 700),
new DateTimePoint(new DateTime(2021, 9, 1), 900),
new DateTimePoint(new DateTime(2021, 10, 1), 600),
new DateTimePoint(new DateTime(2021, 11, 1), 800),
new DateTimePoint(new DateTime(2021, 12, 1), 750)
}
}
};

public Axis[] XAxes { get; set; } =
{
new DateTimeAxis(TimeSpan.FromDays(1), date => date.ToString("MMM dd"))
};

public Axis[] YAxes { get; set; } =
{
new Axis
{
Name = "kW",
TextSize = 20,
}
};

Expected behavior
This should be like Windows or Linux output:
image

Screenshot

image

Desktop (please complete the following information):

  • Latest MacOS official version
@ArchieCoder ArchieCoder changed the title Bad rendering on MacOS with a Uno Platform project Bad rendering on MacOS/Catalyst with a Uno Platform project May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant