Skip to content

Commit

Permalink
Moves to TargetFramework net6.0-macos
Browse files Browse the repository at this point in the history
  • Loading branch information
netonjm committed Jul 5, 2022
1 parent e698371 commit 2434aaa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions VisualStudio.ViewInspector.Extension/HostResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public NSColor GetNamedColor(string name)
NSColor.FromRgb(0, 0, 0) :
NSColor.FromRgb(217, 217, 217);
case NamedResources.DescriptionLabelColor:
return NSColor.SecondaryLabelColor;
return NSColor.SecondaryLabel;
case NamedResources.ForegroundColor:
return NSColor.ControlBackground;
case NamedResources.PadBackgroundColor:
Expand All @@ -62,7 +62,7 @@ public NSColor GetNamedColor(string name)
return NSColor.FromName(name);
}

public NSFont GetNamedFont(string name, ObjCRuntime.nfloat fontSize)
public NSFont GetNamedFont(string name, nfloat fontSize)
{
return NSFont.SystemFontOfSize(NSFont.SystemFontSize);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\MonoDevelop.Inspector.props" />
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net6.0-macos</TargetFramework>
<SupportedOSPlatformVersion>10.14</SupportedOSPlatformVersion>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\MonoDevelop.Inspector.props" />
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net6.0-macos</TargetFramework>
<SupportedOSPlatformVersion>10.14</SupportedOSPlatformVersion>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DropSelectionView : NSView
{
const float Offset = 1;
CALayer circleLayer, lineLayer;
public NSColor Color { get; set; } = NSColor.ControlAccentColor;
public NSColor Color { get; set; } = NSColor.ControlAccent;

public override bool WantsDefaultClipping => false;

Expand Down Expand Up @@ -306,7 +306,7 @@ private bool AllowsDropOperation(TreeNode node)

class InspectorOutlineViewDelegate : OutlineViewDelegate
{
public override ObjCRuntime.nfloat GetRowHeight(NSOutlineView outlineView, NSObject item)
public override nfloat GetRowHeight(NSOutlineView outlineView, NSObject item)
{
return 22;
}
Expand Down

0 comments on commit 2434aaa

Please sign in to comment.