Skip to content

Commit a57fb19

Browse files
committed
Updated icons for modern appearance.
1 parent 0408378 commit a57fb19

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

FeedCurator/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</dict>
5757
</array>
5858
<key>CFBundleVersion</key>
59-
<string>882</string>
59+
<string>897</string>
6060
<key>LSApplicationCategoryType</key>
6161
<string>public.app-category.social-networking</string>
6262
<key>LSMinimumSystemVersion</key>

FeedCurator/ViewController+OutlineView.swift

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,20 @@ extension ViewController: NSOutlineViewDataSource {
4040

4141
extension ViewController: NSOutlineViewDelegate {
4242

43-
private static let folderImage: NSImage? = {
44-
return NSImage(named: "NSFolder")
45-
}()
46-
47-
private static let faviconImage: NSImage? = {
48-
let path = "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns"
49-
return NSImage(contentsOfFile: path)
50-
}()
51-
5243
func outlineView(_ outlineView: NSOutlineView, viewFor tableColumn: NSTableColumn?, item: Any) -> NSView? {
5344

5445
switch tableColumn?.identifier.rawValue {
5546
case "nameColumn":
5647
if let cell = outlineView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: "nameCell"), owner: nil) as? NSTableCellView {
5748
let entry = item as! OPMLEntry
5849
if entry.isFolder {
59-
cell.imageView?.image = ViewController.folderImage
50+
cell.imageView?.image = NSImage(systemSymbolName: "folder", accessibilityDescription: nil)
6051
cell.textField?.isEditable = true
6152
} else {
62-
cell.imageView?.image = ViewController.faviconImage
53+
cell.imageView?.image = NSImage(systemSymbolName: "globe", accessibilityDescription: nil)?.withSymbolConfiguration(.init(pointSize: 14, weight: .light))
6354
cell.textField?.isEditable = false
6455
}
56+
cell.imageView?.contentTintColor = NSColor.controlAccentColor
6557
cell.textField?.stringValue = entry.title ?? ""
6658
return cell
6759
}

0 commit comments

Comments
 (0)