Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Fix ButtonMadness and MicroSamples/pdf samples
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque authored Aug 12, 2020
2 parents 2bdf887 + 1df3e6e commit 252447e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
6 changes: 3 additions & 3 deletions ButtonMadness/TestWindowController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,17 @@ public override void AwakeFromNib ()
nibBasedSegControl.SetMenu (buttonMenu, 0);

// add icons to each segment (applied to both nib-based and code-based)
NSImage segmentIcon1 = NSWorkspace.SharedWorkspace.IconForFileType(HFSTypeCode.ComputerIcon);
NSImage segmentIcon1 = NSWorkspace.SharedWorkspace.IconForFileType (HfsTypeCode.ComputerIcon);
segmentIcon1.Size = new CGSize(16, 16);
nibBasedSegControl.SetImage (segmentIcon1, 0);
codeBasedSegmentControl.SetImage (segmentIcon1, 0);

NSImage segmentIcon2 = NSWorkspace.SharedWorkspace.IconForFileType (HFSTypeCode.DesktopIcon);
NSImage segmentIcon2 = NSWorkspace.SharedWorkspace.IconForFileType (HfsTypeCode.DesktopIcon);
segmentIcon2.Size = new CGSize (16, 16);
nibBasedSegControl.SetImage (segmentIcon2, 1);
codeBasedSegmentControl.SetImage (segmentIcon2, 1);

NSImage segmentIcon3 = NSWorkspace.SharedWorkspace.IconForFileType (HFSTypeCode.FinderIcon);
NSImage segmentIcon3 = NSWorkspace.SharedWorkspace.IconForFileType (HfsTypeCode.FinderIcon);
segmentIcon3.Size = new CGSize (16, 16);
nibBasedSegControl.SetImage (segmentIcon3, 2);
codeBasedSegmentControl.SetImage (segmentIcon3, 2);
Expand Down
14 changes: 0 additions & 14 deletions MicroSamples/pdf/pdf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,6 @@
<Reference Include="System.Core" />
<Reference Include="Xamarin.Mac" />
</ItemGroup>
<ItemGroup>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json" />
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\AppIcon-128.png" />
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\AppIcon-128%402x.png" />
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\AppIcon-16.png" />
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\AppIcon-16%402x.png" />
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\AppIcon-256.png" />
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\AppIcon-256%402x.png" />
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\AppIcon-32.png" />
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\AppIcon-32%402x.png" />
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\AppIcon-512.png" />
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\AppIcon-512%402x.png" />
<ImageAsset Include="Assets.xcassets\Contents.json" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\" />
</ItemGroup>
Expand Down

0 comments on commit 252447e

Please sign in to comment.