diff --git a/nukebuild/Build.cs b/nukebuild/Build.cs index 7e2bbc13bc..097815cc69 100644 --- a/nukebuild/Build.cs +++ b/nukebuild/Build.cs @@ -138,9 +138,19 @@ partial class Build : NukeBuild .SetWorkingDirectory(webappDir) .SetCommand("dist")); }); - - Target Compile => _ => _ + + Target CompileNative => _ => _ .DependsOn(Clean) + .OnlyWhenStatic(() => EnvironmentInfo.IsOsx) + .Executes(() => + { + var project = $"{RootDirectory}/native/Avalonia.Native/src/OSX/Avalonia.Native.OSX.xcodeproj/"; + var args = $"-project {project} -configuration {Parameters.Configuration} CONFIGURATION_BUILD_DIR={RootDirectory}/Build/Products/Release"; + ProcessTasks.StartProcess("xcodebuild", args).AssertZeroExitCode(); + }); + + Target Compile => _ => _ + .DependsOn(Clean, CompileNative) .DependsOn(CompileHtmlPreviewer) .Executes(async () => { diff --git a/samples/ControlCatalog/App.xaml.cs b/samples/ControlCatalog/App.xaml.cs index cb50cba540..22f4e9be1f 100644 --- a/samples/ControlCatalog/App.xaml.cs +++ b/samples/ControlCatalog/App.xaml.cs @@ -81,7 +81,7 @@ namespace ControlCatalog public override void Initialize() { - Styles.Insert(0, FluentDark); + Styles.Insert(0, FluentLight); AvaloniaXamlLoader.Load(this); } diff --git a/samples/ControlCatalog/MainView.xaml b/samples/ControlCatalog/MainView.xaml index 790813fda0..bd5beafe29 100644 --- a/samples/ControlCatalog/MainView.xaml +++ b/samples/ControlCatalog/MainView.xaml @@ -77,8 +77,8 @@ Full Decorations - Fluent - Dark Fluent - Light + Fluent - Dark Simple - Light Simple - Dark diff --git a/samples/ControlCatalog/MainView.xaml.cs b/samples/ControlCatalog/MainView.xaml.cs index b0c205246e..c84f2f06b6 100644 --- a/samples/ControlCatalog/MainView.xaml.cs +++ b/samples/ControlCatalog/MainView.xaml.cs @@ -38,10 +38,10 @@ namespace ControlCatalog switch (themes.SelectedIndex) { case 0: - Application.Current.Styles[0] = App.FluentDark; + Application.Current.Styles[0] = App.FluentLight; break; case 1: - Application.Current.Styles[0] = App.FluentLight; + Application.Current.Styles[0] = App.FluentDark; break; case 2: Application.Current.Styles[0] = App.DefaultLight; diff --git a/samples/ControlCatalog/Pages/DataGridPage.xaml b/samples/ControlCatalog/Pages/DataGridPage.xaml index d045626c2c..cacc2204bd 100644 --- a/samples/ControlCatalog/Pages/DataGridPage.xaml +++ b/samples/ControlCatalog/Pages/DataGridPage.xaml @@ -11,12 +11,17 @@ - + DataGrid A control for displaying and interacting with a data source. - + + + + + + @@ -39,13 +44,13 @@ - + - - - + + +