Skip to content

Commit

Permalink
Merge pull request #1870 from cwensley/curtis/mac-big-sur
Browse files Browse the repository at this point in the history
Mac Big Sur updates
  • Loading branch information
cwensley authored Jan 8, 2021
2 parents 842f5af + 3eedb27 commit aebf9e3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
14 changes: 10 additions & 4 deletions src/Eto.Mac/Forms/Controls/CheckBoxHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,22 @@ public override NSControlSize ControlSize
public override CGRect DrawingRectForBounds(CGRect theRect)
{
var rect = base.DrawingRectForBounds(theRect);
rect.Y += ButtonOffset;
rect.Y += Offset;
if (!MacVersion.IsAtLeast(10, 16)) // big sur
{
rect.Y += ButtonOffset;
rect.Y += Offset;
}
return rect;
}

public override CGRect TitleRectForBounds(CGRect theRect)
{
var rect = base.TitleRectForBounds(theRect);
rect.Y -= ButtonOffset;
rect.Y -= Offset;
if (!MacVersion.IsAtLeast(10, 16)) // big sur
{
rect.Y -= ButtonOffset;
rect.Y -= Offset;
}
return rect;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/Eto.Mac/build/BundleDotNetCore.targets
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<MacAutoPublishBundle Condition="$(MacAutoPublishBundle) == ''">True</MacAutoPublishBundle>

<!-- Set to True to bundle .NET Core runtime, false to use a shared runtime (useful to speed up debug builds) -->
<MacBundleDotNet Condition="$(MacBundleDotNet) == '' AND $(SelfContained) == 'True'">True</MacBundleDotNet>
<MacBundleDotNet Condition="$(MacBundleDotNet) == '' AND $(Configuration) == 'Release'">True</MacBundleDotNet>
<MacBundleDotNet Condition="$(MacBundleDotNet) == ''">False</MacBundleDotNet>
</PropertyGroup>
Expand Down Expand Up @@ -41,7 +42,7 @@
<MacBuildProperties>$(MacBuildProperties);MacSelfContained=$(MacBundleDotNet)</MacBuildProperties>
<MacBuildProperties>$(MacBuildProperties);MacTempBuildPath=$(MacTempBuildPath)</MacBuildProperties>
<MacBuildProperties>$(MacBuildProperties);MacOutputPath=$(OutputPath)</MacBuildProperties>
<MacBuildProperties Condition="@(MacBundleRuntimeIdentifiers->Count()) > 1">$(MacBuildProperties);MacAppendRuntimeIdentifierToOutputPath=True</MacBuildProperties>
<MacBuildProperties Condition="@(MacBundleRuntimeIdentifiers->Count()) > 1 AND $(RuntimeIdentifier) == ''">$(MacBuildProperties);MacAppendRuntimeIdentifierToOutputPath=True</MacBuildProperties>

<_MacPublishTarget Condition="$(MacBundleDotNet) == 'True'">Publish</_MacPublishTarget>
<_MacPublishTarget Condition="$(_MacPublishTarget) == ''">Build</_MacPublishTarget>
Expand Down
2 changes: 1 addition & 1 deletion src/Eto.Mac/build/BundleMono.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<MkBundleTargetServer Condition="$(MkBundleTargetServer) == '' AND $(MacBundleTarget) == ''">http://pages.picoe.ca/runtimes/</MkBundleTargetServer>

<!-- Target when bundling mono, or 'default' to use system mono. See mkbundle -list-targets -->
<MacBundleTarget Condition="$(MacBundleTarget) == ''">mono-6.8.0-osx-10.9-x64-eto.zip</MacBundleTarget>
<MacBundleTarget Condition="$(MacBundleTarget) == ''">mono-6.12.0-osx-10.9-x64-eto.zip</MacBundleTarget>

<!-- minimum installed version of mono required to run -->
<MacMonoMinimumVersion Condition="$(MacMonoMinimumVersion) == ''">6.0</MacMonoMinimumVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/Eto.Mac/build/Mac.targets
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

<PropertyGroup>
<!-- internal properties -->
<MacUseDotNetCore Condition="$(MacUseDotNetCore) == '' AND ( $(TargetFramework.StartsWith('netcoreapp')) OR $(TargetFramework.StartsWith('net5')) )">True</MacUseDotNetCore>
<MacUseDotNetCore Condition="$(MacUseDotNetCore) == '' AND !$(TargetFramework.StartsWith('net4'))">True</MacUseDotNetCore>
<MacUseDotNetCore Condition="$(MacUseDotNetCore) == ''">False</MacUseDotNetCore>
<OutputContents>$(OutputAppPath)Contents\</OutputContents>
<OutputResourcesPath>$(OutputContents)Resources\</OutputResourcesPath>
Expand Down
8 changes: 0 additions & 8 deletions src/Eto/Info.plist

This file was deleted.

0 comments on commit aebf9e3

Please sign in to comment.