From 04f659f704de5541bbd5f35d724a1862b9908050 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Wed, 23 Jul 2025 21:58:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Liquid=20Glass=20Redesign=20for?= =?UTF-8?q?=20NetNewsWire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ’„ Add `MainFeedCollectionViewController` πŸ’„ Add and hook up UICollectionView in Storyboard 🚧 Collection view loads temp cells 🚧 UICollectionView - Adds capsule shape for iPad selection - Add filter button, newItem button, settings button - Configures the collection view based on platform - implementsDidSelectItem at - Clears cell background on iPad - Adds cell textColor for iPad - Storyboard changes 🚧 Adds unread count and favicon support 🚧 Smartfeed icons now display 🚧 iPhone cells are consistent in light/dark mode πŸ’„ Sidebar modernised Known bug: Sidebar text doesn’t adapt to dark/light mode changes on iPad πŸ’„ Modern Sidebars Fixes some accessibilty issues and adds swipe actions. 🩹 Become firstResponder 🩹 Workaround #4691 πŸ’‘ Remove print statement πŸ’„ Fixes to storyboard - adjusts constraints on timeline header view - launch screens now adopt look of liquid glass Restore coordinator behaviour ⚑️ Tweaks to MainFeedCollectionViewController - On iPhone, returning to the feeds view deselect the current feed with an animation. - On iPhone, prefers large titles defaults to `false` - Capsule background with smaller corner radius for iPhone added for selected status. 🩹 Fixes folder height πŸ’„ Fix unread count vertical alignment πŸ’„ Restores header & use UICellConfigurationState πŸ’„ Sidebar tweaks πŸ’„ Folders now highlight on as drop target πŸ’„ Sidebar fixes - Moves more code to cell configuation state - Allows sidebar to move to larger sizes 🩹 Fixes #4694 folder expansion using keyboard πŸ’„ Adds new cell types for the Timeline ♻️ Remove dead code and re-orders to viewWillApp 🩹 Reordering of code from viewWA to viewDA πŸ’„ Removes unused code, tweaks layout πŸ’„ Multiple tweaks to sidebar and timeline πŸ’„ Add missing constraint ♿️ Puts timeline metadata in a stackview 🎨 Adds stackview function πŸ’„ πŸš‘οΈ Moves to modern UISliders Timeline customiser now uses modern UISliders as they have tickmark functionality. `TickMarkSlider` marked as deprecated. πŸ’„ Make All Unread cell icon tint correctly πŸ’„ Extend edges under opaque bars on timeline πŸ’„ Image View Controller uses modern button style 🚚 Renames `MainTimelinePseudoFeedCell` πŸ’„ Improve feed selection animations 🩹 Use shouldSelectItem to handle selection logic 🩹 Fix fill settings for stack view πŸ’„ Comment out usage of MainTimelineTitleView πŸ”§ Remove iOS cells from macOS target πŸ’„ Give columns some flexibility πŸ’„ Fix chevron size and alignment πŸ’„ Don’t prefer large navigation bar titles They create a delay in animation on iPhone. 🩹 Fixes nav bar subtitle performance 🎨 Minor refactor - Switch logic in cell state - Prefer traitCollection.userInterfaceIdiom βž• Add updated mac code for the About view πŸ’„ NSGlassVisualEffectView for About --- Mac/About/AboutWindowController.swift | 78 ++ Mac/About/AboutWindowController.xib | 116 ++ Mac/About/LinkLabel.swift | 16 + Mac/AppAssets.swift | 10 + Mac/AppDelegate.swift | 8 +- Mac/Base.lproj/Main.storyboard | 7 +- ...melineViewController+ContextualMenus.swift | 4 +- .../markAboveAsRead.symbolset/Contents.json | 12 + .../markAsReadAbove.svg | 159 +++ .../markBelowAsRead.symbolset/Contents.json | 12 + .../markBelowAsRead.svg | 159 +++ Mac/Resources/Credits.rtf | 78 +- iOS/AppAssets.swift | 9 +- iOS/Article/ArticleViewController.swift | 2 +- iOS/Article/ImageViewController.swift | 2 +- iOS/Base.lproj/LaunchScreenPad.storyboard | 69 +- iOS/Base.lproj/LaunchScreenPhone.storyboard | 81 +- iOS/Base.lproj/Main.storyboard | 443 +++++- iOS/IconView.swift | 4 +- ...MainFeedCollectionHeaderReusableView.swift | 128 ++ .../MainFeedCollectionViewCell.swift | 114 ++ .../MainFeedCollectionViewFolderCell.swift | 135 ++ ...ainFeedCollectionViewController+Drag.swift | 40 + ...ainFeedCollectionViewController+Drop.swift | 174 +++ .../MainFeedCollectionViewController.swift | 1202 +++++++++++++++++ iOS/MainTimeline/MainTimelineTitleView.xib | 8 +- .../MainTimelineViewController.swift | 118 +- .../Modern Cells/MainTimelineFeedCell.swift | 139 ++ .../MainTimelineIconFeedCell.swift | 164 +++ iOS/SceneCoordinator.swift | 56 +- iOS/SceneDelegate.swift | 1 - iOS/Settings/Settings.storyboard | 102 +- .../TimelineCustomizerViewController.swift | 25 +- iOS/UIKit Extensions/TickMarkSlider.swift | 1 + .../UICollectionView-Extensions.swift | 31 + 35 files changed, 3408 insertions(+), 299 deletions(-) create mode 100644 Mac/About/AboutWindowController.swift create mode 100644 Mac/About/AboutWindowController.xib create mode 100644 Mac/About/LinkLabel.swift create mode 100644 Mac/Resources/Assets.xcassets/markAboveAsRead.symbolset/Contents.json create mode 100644 Mac/Resources/Assets.xcassets/markAboveAsRead.symbolset/markAsReadAbove.svg create mode 100644 Mac/Resources/Assets.xcassets/markBelowAsRead.symbolset/Contents.json create mode 100644 Mac/Resources/Assets.xcassets/markBelowAsRead.symbolset/markBelowAsRead.svg create mode 100644 iOS/MainFeed/Collection View Cells/MainFeedCollectionHeaderReusableView.swift create mode 100644 iOS/MainFeed/Collection View Cells/MainFeedCollectionViewCell.swift create mode 100644 iOS/MainFeed/Collection View Cells/MainFeedCollectionViewFolderCell.swift create mode 100644 iOS/MainFeed/MainFeedCollectionViewController+Drag.swift create mode 100644 iOS/MainFeed/MainFeedCollectionViewController+Drop.swift create mode 100644 iOS/MainFeed/MainFeedCollectionViewController.swift create mode 100644 iOS/MainTimeline/Modern Cells/MainTimelineFeedCell.swift create mode 100644 iOS/MainTimeline/Modern Cells/MainTimelineIconFeedCell.swift create mode 100644 iOS/UIKit Extensions/UICollectionView-Extensions.swift diff --git a/Mac/About/AboutWindowController.swift b/Mac/About/AboutWindowController.swift new file mode 100644 index 000000000..64a4a61cc --- /dev/null +++ b/Mac/About/AboutWindowController.swift @@ -0,0 +1,78 @@ +// +// AboutWindowController.swift +// NetNewsWire +// +// Created by Stuart Breckenridge on 26/06/2025. +// Copyright Β© 2025 Ranchero Software. All rights reserved. +// + +import Cocoa + +class AboutWindowController: NSWindowController { + + @IBOutlet weak var appIconImageView: NSImageView! + @IBOutlet weak var appTitleLabel: NSTextField! + @IBOutlet weak var versionLabel: NSTextField! + @IBOutlet weak var copyrightLabel: NSTextField! + @IBOutlet weak var websiteLabel: LinkLabel! + @IBOutlet weak var creditsTextView: NSTextView! + + override func windowDidLoad() { + super.windowDidLoad() + configureWindow() + updateUI() + } + + func configureWindow() { + window?.isOpaque = false + window?.backgroundColor = .clear + window?.titlebarAppearsTransparent = true + window?.titleVisibility = .hidden + window?.styleMask.insert(.fullSizeContentView) + if let contentView = window?.contentView { + let visualEffectView = NSGlassEffectView(frame: contentView.bounds) + visualEffectView.tintColor = .clear + visualEffectView.autoresizingMask = [.width, .height] + contentView.addSubview(visualEffectView, positioned: .below, relativeTo: nil) + } + } + + private func updateUI() { + + // App Icon + appIconImageView.image = NSApp.applicationIconImage + + // Version + let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown" + let build = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "Unknown" + let versionString = "Version \(version) (Build \(build))" + versionLabel.stringValue = versionString + + // Copyright + let copyright = Bundle.main.infoDictionary?["NSHumanReadableCopyright"] as? String ?? "Copyright Β© 2002-2025 Brent Simmons. All rights reserved." + copyrightLabel.stringValue = copyright + + // Credits + if let creditsURL = Bundle.main.url(forResource: "Credits", withExtension: "rtf"), + let creditsData = try? Data(contentsOf: creditsURL), + let attributedString = try? NSAttributedString(data: creditsData, options: [.documentType: NSAttributedString.DocumentType.rtf], documentAttributes: nil) { + creditsTextView.textStorage?.setAttributedString(attributedString) + } else { + creditsTextView.string = "Credits not available." + } + + let fullRange = NSRange(location: 0, length: creditsTextView.string.utf16.count) + let leadingParagraphStyle = NSMutableParagraphStyle() + leadingParagraphStyle.alignment = .left + creditsTextView.textStorage?.addAttribute(.paragraphStyle, value: leadingParagraphStyle, range: fullRange) + + // URL + let url = URL(string: "https://inessential.com")! + let attributedString = NSMutableAttributedString(string: "inessential.com") + attributedString.addAttribute(.link, value: url, range: NSRange(location: 0, length: attributedString.length)) + attributedString.addAttribute(.foregroundColor, value: NSColor.systemBlue, range: NSRange(location: 0, length: attributedString.length)) + attributedString.addAttribute(.underlineStyle, value: NSUnderlineStyle.single.rawValue, range: NSRange(location: 0, length: attributedString.length)) + websiteLabel.attributedStringValue = attributedString + } + +} diff --git a/Mac/About/AboutWindowController.xib b/Mac/About/AboutWindowController.xib new file mode 100644 index 000000000..52857ec84 --- /dev/null +++ b/Mac/About/AboutWindowController.xib @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Mac/About/LinkLabel.swift b/Mac/About/LinkLabel.swift new file mode 100644 index 000000000..4f298175b --- /dev/null +++ b/Mac/About/LinkLabel.swift @@ -0,0 +1,16 @@ +// +// LinkLabel.swift +// NetNewsWire +// +// Created by Stuart Breckenridge on 26/06/2025. +// Copyright Β© 2025 Ranchero Software. All rights reserved. +// + + +class LinkLabel: NSTextField { + + /// piΓ¨ces de rΓ©sistance -- keeping it a mac-assed mac app. + override func resetCursorRects() { + addCursorRect(bounds, cursor: .pointingHand) + } +} diff --git a/Mac/AppAssets.swift b/Mac/AppAssets.swift index cefbe0423..eb7f24dbb 100644 --- a/Mac/AppAssets.swift +++ b/Mac/AppAssets.swift @@ -161,6 +161,16 @@ struct AppAssets { let image = RSImage(named: "markAllAsRead") return image! }() + + static var markBelowAsReadImage: RSImage = { + let image = RSImage(named: "markBelowAsRead") + return image! + }() + + static var markAboveAsReadImage: RSImage = { + let image = RSImage(named: "markAboveAsRead") + return image! + }() static var nextUnreadImage: RSImage = { diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index adf91c8a5..1ff0799a5 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -277,7 +277,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, CrashReporter.check(crashReporter: self.crashReporter) } #endif - } func application(_ application: NSApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([NSUserActivityRestoring]) -> Void) -> Bool { @@ -675,6 +674,13 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, createAndShowMainWindowIfNecessary() mainWindowController!.gotoStarred(sender) } + + @IBAction func showCustomAboutPanel(_ sender: Any?) { + let aboutWC = AboutWindowController(windowNibName: "AboutWindowController") + aboutWC.showWindow(nil) + aboutWC.window?.center() + aboutWC.window?.makeKeyAndOrderFront(nil) + } @IBAction func sortByOldestArticleOnTop(_ sender: Any?) { diff --git a/Mac/Base.lproj/Main.storyboard b/Mac/Base.lproj/Main.storyboard index c2906ddec..536c5fe1c 100644 --- a/Mac/Base.lproj/Main.storyboard +++ b/Mac/Base.lproj/Main.storyboard @@ -1,8 +1,7 @@ - + - - + @@ -18,7 +17,7 @@ - + diff --git a/Mac/MainWindow/Timeline/TimelineViewController+ContextualMenus.swift b/Mac/MainWindow/Timeline/TimelineViewController+ContextualMenus.swift index 32ce32ac0..843a32f79 100644 --- a/Mac/MainWindow/Timeline/TimelineViewController+ContextualMenus.swift +++ b/Mac/MainWindow/Timeline/TimelineViewController+ContextualMenus.swift @@ -241,11 +241,11 @@ private extension TimelineViewController { } func markAboveReadMenuItem(_ articles: [Article]) -> NSMenuItem { - return menuItem(NSLocalizedString("Mark Above as Read", comment: "Command"), #selector(markAboveArticlesReadFromContextualMenu(_:)), articles, image: nil) + return menuItem(NSLocalizedString("Mark Above as Read", comment: "Command"), #selector(markAboveArticlesReadFromContextualMenu(_:)), articles, image: AppAssets.markAboveAsReadImage) } func markBelowReadMenuItem(_ articles: [Article]) -> NSMenuItem { - return menuItem(NSLocalizedString("Mark Below as Read", comment: "Command"), #selector(markBelowArticlesReadFromContextualMenu(_:)), articles, image: nil) + return menuItem(NSLocalizedString("Mark Below as Read", comment: "Command"), #selector(markBelowArticlesReadFromContextualMenu(_:)), articles, image: AppAssets.markBelowAsReadImage) } func selectFeedInSidebarMenuItem(_ feed: WebFeed) -> NSMenuItem { diff --git a/Mac/Resources/Assets.xcassets/markAboveAsRead.symbolset/Contents.json b/Mac/Resources/Assets.xcassets/markAboveAsRead.symbolset/Contents.json new file mode 100644 index 000000000..a564ef15f --- /dev/null +++ b/Mac/Resources/Assets.xcassets/markAboveAsRead.symbolset/Contents.json @@ -0,0 +1,12 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + }, + "symbols" : [ + { + "filename" : "markAsReadAbove.svg", + "idiom" : "universal" + } + ] +} diff --git a/Mac/Resources/Assets.xcassets/markAboveAsRead.symbolset/markAsReadAbove.svg b/Mac/Resources/Assets.xcassets/markAboveAsRead.symbolset/markAsReadAbove.svg new file mode 100644 index 000000000..33ae08783 --- /dev/null +++ b/Mac/Resources/Assets.xcassets/markAboveAsRead.symbolset/markAsReadAbove.svg @@ -0,0 +1,159 @@ + + + markAsReadAbove + + + + + + + Weight/Scale Variations + + + Ultralight + + + Thin + + + Light + + + Regular + + + Medium + + + Semibold + + + Bold + + + Heavy + + + Black + + + + + + + + + + + + + Design Variations + + + Symbols are supported in up to nine weights and three scales. + + + For optimal layout with text and other symbols, vertically align + + + symbols with the adjacent text. + + + + + + + + Margins + + + Leading and trailing margins on the left and right side of each symbol + + + can be adjusted by modifying the width of the blue rectangles. + + + Modifications are automatically applied proportionally to all + + + scales and weights. + + + + + + Exporting + + + Symbols should be outlined when exporting to ensure the + + + design is preserved when submitting to Xcode. + + + Template v.1.0 + + + Generated from circle + + + Typeset at 100 points + + + Small + + + Medium + + + Large + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Mac/Resources/Assets.xcassets/markBelowAsRead.symbolset/Contents.json b/Mac/Resources/Assets.xcassets/markBelowAsRead.symbolset/Contents.json new file mode 100644 index 000000000..2a23fbc06 --- /dev/null +++ b/Mac/Resources/Assets.xcassets/markBelowAsRead.symbolset/Contents.json @@ -0,0 +1,12 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + }, + "symbols" : [ + { + "filename" : "markBelowAsRead.svg", + "idiom" : "universal" + } + ] +} diff --git a/Mac/Resources/Assets.xcassets/markBelowAsRead.symbolset/markBelowAsRead.svg b/Mac/Resources/Assets.xcassets/markBelowAsRead.symbolset/markBelowAsRead.svg new file mode 100644 index 000000000..6edb2d188 --- /dev/null +++ b/Mac/Resources/Assets.xcassets/markBelowAsRead.symbolset/markBelowAsRead.svg @@ -0,0 +1,159 @@ + + + markBelowAsRead + + + + + + + Weight/Scale Variations + + + Ultralight + + + Thin + + + Light + + + Regular + + + Medium + + + Semibold + + + Bold + + + Heavy + + + Black + + + + + + + + + + + + + Design Variations + + + Symbols are supported in up to nine weights and three scales. + + + For optimal layout with text and other symbols, vertically align + + + symbols with the adjacent text. + + + + + + + + Margins + + + Leading and trailing margins on the left and right side of each symbol + + + can be adjusted by modifying the width of the blue rectangles. + + + Modifications are automatically applied proportionally to all + + + scales and weights. + + + + + + Exporting + + + Symbols should be outlined when exporting to ensure the + + + design is preserved when submitting to Xcode. + + + Template v.1.0 + + + Generated from circle + + + Typeset at 100 points + + + Small + + + Medium + + + Large + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Mac/Resources/Credits.rtf b/Mac/Resources/Credits.rtf index ce67ed372..1291f7c3a 100644 --- a/Mac/Resources/Credits.rtf +++ b/Mac/Resources/Credits.rtf @@ -1,52 +1,64 @@ -{\rtf1\ansi\ansicpg1252\cocoartf2761 -\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 LucidaGrande-Bold;\f1\fnil\fcharset0 LucidaGrande;} +{\rtf1\ansi\ansicpg1252\cocoartf2859 +\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 SFPro-Bold;\f1\fnil\fcharset0 SFPro-Regular;} {\colortbl;\red255\green255\blue255;\red0\green0\blue0;} {\*\expandedcolortbl;;\cssrgb\c0\c0\c0\cname textColor;} \vieww14060\viewh15660\viewkind0 -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\sl360\slmult1\pardirnatural\partightenfactor0 -{\field{\*\fldinst{HYPERLINK "https://ranchero.com/netnewswire/"}}{\fldrslt -\f0\b\fs22 \cf2 NetNewsWire}} -\f0\b\fs22 \cf2 \ -By Brent Simmons\ -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\sl360\slmult1\pardirnatural\partightenfactor0 -{\field{\*\fldinst{HYPERLINK "http://inessential.com/"}}{\fldrslt \cf2 inessential.com}} +\deftab720 +\pard\pardeftab720\sa60\partightenfactor0 + +\f0\b\fs22 \cf2 Credits \f1\b0 \ +\pard\pardeftab720\sl144\slmult1\sa60\partightenfactor0 +\cf2 \ +\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0 +\cf2 Contributing Developers \ +{\field{\*\fldinst{HYPERLINK "https://github.com/vincode-io"}}{\fldrslt Maurice Parker}}, {\field{\*\fldinst{HYPERLINK "https://stuartbreckenridge.net/"}}{\fldrslt Stuart Breckenridge}}\ +\ +App Icon\ +{\field{\*\fldinst{HYPERLINK "https://twitter.com/BradEllis"}}{\fldrslt Brad Ellis}}\ +\ +Feedly Syncing\ +{\field{\*\fldinst{HYPERLINK "https://twitter.com/kielgillard"}}{\fldrslt Kiel Gillard}}\ +\ +NewsBlur Syncing\ +{\field{\*\fldinst{HYPERLINK "https://twitter.com/quanganhdo"}}{\fldrslt Anh Do}}\ +\ +Under-the-Hood Magic and CSS Stylin's\ +{\field{\*\fldinst{HYPERLINK "https://github.com/wevah"}}{\fldrslt Nate Weaver}}\ +\ +Newsfoot (JS footnote displayer)\ +{\field{\*\fldinst{HYPERLINK "https://github.com/brehaut/"}}{\fldrslt Andrew Brehaut}}\ +\ +Help Book\ +{\field{\*\fldinst{HYPERLINK "https://nostodnayr.net/"}}{\fldrslt Ryan Dotson}}\ +\ +And featuring contributions from\ +{\field{\*\fldinst{HYPERLINK "https://github.com/danielpunkass"}}{\fldrslt Daniel Jalkut}}, {\field{\*\fldinst{HYPERLINK "https://rhonabwy.com/"}}{\fldrslt Joe Heck}}, {\field{\*\fldinst{HYPERLINK "https://github.com/olofhellman"}}{\fldrslt Olof Hellman}}, {\field{\*\fldinst{HYPERLINK "https://blog.rizwan.dev/"}}{\fldrslt Rizwan Mohamed Ibrahim}}, {\field{\*\fldinst{HYPERLINK "https://twitter.com/philviso"}}{\fldrslt Phil Viso}}, and {\field{\*\fldinst{HYPERLINK "https://github.com/Ranchero-Software/NetNewsWire/graphs/contributors"}}{\fldrslt many more}}!\ \pard\pardeftab720\li360\sa60\partightenfactor0 \cf2 \ \pard\pardeftab720\sa60\partightenfactor0 -\f0\b \cf2 Credits: -\f1\b0 \ -\pard\pardeftab720\li360\sa60\partightenfactor0 -\cf2 Contributing developers: {\field{\*\fldinst{HYPERLINK "https://github.com/vincode-io"}}{\fldrslt Maurice Parker}}, {\field{\*\fldinst{HYPERLINK "https://stuartbreckenridge.net/"}}{\fldrslt Stuart Breckenridge}}\ -App icon: {\field{\*\fldinst{HYPERLINK "https://twitter.com/BradEllis"}}{\fldrslt Brad Ellis}}\ -Feedly syncing: {\field{\*\fldinst{HYPERLINK "https://twitter.com/kielgillard"}}{\fldrslt Kiel Gillard}}\ -NewsBlur syncing: {\field{\*\fldinst{HYPERLINK "https://twitter.com/quanganhdo"}}{\fldrslt Anh Do}}\ -Under-the-hood magic and CSS stylin\'92s: {\field{\*\fldinst{HYPERLINK "https://github.com/wevah"}}{\fldrslt Nate Weaver}}\ -Newsfoot (JS footnote displayer): {\field{\*\fldinst{HYPERLINK "https://github.com/brehaut/"}}{\fldrslt Andrew Brehaut}}\ -Help book: {\field{\*\fldinst{HYPERLINK "https://nostodnayr.net/"}}{\fldrslt Ryan Dotson}}\ -And featuring contributions from {\field{\*\fldinst{HYPERLINK "https://github.com/danielpunkass"}}{\fldrslt Daniel Jalkut}}, {\field{\*\fldinst{HYPERLINK "https://rhonabwy.com/"}}{\fldrslt Joe Heck}}, {\field{\*\fldinst{HYPERLINK "https://github.com/olofhellman"}}{\fldrslt Olof Hellman}}, {\field{\*\fldinst{HYPERLINK "https://blog.rizwan.dev/"}}{\fldrslt Rizwan Mohamed Ibrahim}}, {\field{\*\fldinst{HYPERLINK "https://twitter.com/philviso"}}{\fldrslt Phil Viso}}, and {\field{\*\fldinst{HYPERLINK "https://github.com/Ranchero-Software/NetNewsWire/graphs/contributors"}}{\fldrslt many more}}!\ -\ -\pard\pardeftab720\sa60\partightenfactor0 +\f0\b \cf2 Acknowledgments\ -\f0\b \cf2 Acknowledgments: \f1\b0 \ -\pard\pardeftab720\li360\sa60\partightenfactor0 +\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0 {\field{\*\fldinst{HYPERLINK "https://github.com/ccgus/fmdb"}}{\fldrslt \cf2 FMDB}} (greatest SQLite wrapper ever in history) is by {\field{\*\fldinst{HYPERLINK "http://flyingmeat.com/"}}{\fldrslt Flying Meat Software}}.\ -\pard\pardeftab720\li360\sa60\partightenfactor0 -{\field{\*\fldinst{HYPERLINK "https://sparkle-project.org/"}}{\fldrslt \cf2 Sparkle}} is by Sparkle Project.\ \ +{\field{\*\fldinst{HYPERLINK "https://sparkle-project.org/"}}{\fldrslt Sparkle}} is by Sparkle Project.\ +\pard\pardeftab720\li360\sa60\partightenfactor0 +\cf2 \ \pard\pardeftab720\sa60\partightenfactor0 -\f0\b \cf2 Thanks:\ -\pard\pardeftab720\li360\sa60\partightenfactor0 - -\f1\b0 \cf2 Thanks to Sheila and my family; thanks to my friends in Seattle and around the globe; thanks to the ever-patient and ever-awesome NetNewsWire beta testers. Thanks to {\field{\*\fldinst{HYPERLINK "https://github.com/"}}{\fldrslt GitHub}} and {\field{\*\fldinst{HYPERLINK "https://slack.com/"}}{\fldrslt Slack}} for making open source collaboration easy and fun.\ +\f0\b \cf2 Thanks\ \ + +\f1\b0 Thanks to Sheila and my family; thanks to my friends in Seattle and around the globe; thanks to the ever-patient and ever-awesome NetNewsWire beta testers. Thanks to {\field{\*\fldinst{HYPERLINK "https://github.com/"}}{\fldrslt GitHub}} and {\field{\*\fldinst{HYPERLINK "https://slack.com/"}}{\fldrslt Slack}} for making open source collaboration easy and fun.\ +\pard\pardeftab720\li360\sa60\partightenfactor0 +\cf2 \ \pard\pardeftab720\sa60\partightenfactor0 -\f0\b \cf2 Dedication:\ -\pard\pardeftab720\li360\sa60\partightenfactor0 +\f0\b \cf2 Dedication\ +\ -\f1\b0 \cf2 NetNewsWire 6 is dedicated to everyone working to save democracy around the world.\ +\f1\b0 NetNewsWire 6 is dedicated to everyone working to save democracy around the world.\ } \ No newline at end of file diff --git a/iOS/AppAssets.swift b/iOS/AppAssets.swift index 9ccc8ec72..601f72727 100644 --- a/iOS/AppAssets.swift +++ b/iOS/AppAssets.swift @@ -144,11 +144,11 @@ struct AppAssets { }() static var mainFolderImage: IconImage = { - return IconImage(UIImage(systemName: "folder.fill")!, isSymbol: true, isBackgroundSuppressed: true, preferredColor: AppAssets.secondaryAccentColor.cgColor) + return IconImage(UIImage(systemName: "folder")!, isSymbol: true, isBackgroundSuppressed: true, preferredColor: AppAssets.secondaryAccentColor.cgColor) }() static var mainFolderImageNonIcon: UIImage = { - return UIImage(systemName: "folder.fill")!.withRenderingMode(.alwaysOriginal).withTintColor(.secondaryLabel) + return UIImage(systemName: "folder")!.withRenderingMode(.alwaysOriginal).withTintColor(.secondaryLabel) }() static var moreImage: UIImage = { @@ -238,6 +238,11 @@ struct AppAssets { return UIImage(systemName: "trash")! }() + static var unreadCellIndicatorImage: IconImage { + let image = UIImage(systemName: "circle.fill")! + return IconImage(image, isSymbol: true, isBackgroundSuppressed: true, preferredColor: AppAssets.secondaryAccentColor.cgColor) + } + static var unreadFeedImage: IconImage { let image = UIImage(systemName: "largecircle.fill.circle")! return IconImage(image, isSymbol: true, isBackgroundSuppressed: true, preferredColor: AppAssets.secondaryAccentColor.cgColor) diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift index c49facc64..875443183 100644 --- a/iOS/Article/ArticleViewController.swift +++ b/iOS/Article/ArticleViewController.swift @@ -193,7 +193,7 @@ class ArticleViewController: UIViewController { override func willTransition(to newCollection: UITraitCollection, with coordinator: any UIViewControllerTransitionCoordinator) { // We only want to show bars when rotating to horizontalSizeClass == .regular // (i.e., big) iPhones to resolve crash #4483. - if UIDevice.current.userInterfaceIdiom == .phone && newCollection.horizontalSizeClass == .regular { + if traitCollection.userInterfaceIdiom == .phone && newCollection.horizontalSizeClass == .regular { currentWebViewController?.showBars() } } diff --git a/iOS/Article/ImageViewController.swift b/iOS/Article/ImageViewController.swift index fd1f17d79..941f68409 100644 --- a/iOS/Article/ImageViewController.swift +++ b/iOS/Article/ImageViewController.swift @@ -79,7 +79,7 @@ class ImageViewController: UIViewController { private func layoutTitleLabel(){ let width = view.frame.width - let multiplier = UIDevice.current.userInterfaceIdiom == .pad ? CGFloat(0.1) : CGFloat(0.04) + let multiplier = traitCollection.userInterfaceIdiom == .pad ? CGFloat(0.1) : CGFloat(0.04) titleLeading.constant += width * multiplier titleTrailing.constant -= width * multiplier titleLabel.layoutIfNeeded() diff --git a/iOS/Base.lproj/LaunchScreenPad.storyboard b/iOS/Base.lproj/LaunchScreenPad.storyboard index 06c951431..b11498457 100644 --- a/iOS/Base.lproj/LaunchScreenPad.storyboard +++ b/iOS/Base.lproj/LaunchScreenPad.storyboard @@ -1,9 +1,10 @@ - + - + + @@ -14,8 +15,8 @@ - + @@ -29,36 +30,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -70,7 +42,7 @@ - + @@ -83,11 +55,10 @@ - + - @@ -101,19 +72,37 @@ - + + - + + + + + + + + + + + + + + + - - + + + + + diff --git a/iOS/Base.lproj/LaunchScreenPhone.storyboard b/iOS/Base.lproj/LaunchScreenPhone.storyboard index 61a86ee99..41ef8fc7d 100644 --- a/iOS/Base.lproj/LaunchScreenPhone.storyboard +++ b/iOS/Base.lproj/LaunchScreenPhone.storyboard @@ -1,9 +1,10 @@ - + - + + @@ -14,51 +15,23 @@ - + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -70,24 +43,23 @@ - + - + - + - @@ -96,24 +68,45 @@ - + - + + + + + + + + + + + + + + + + - - + + + + + + + + diff --git a/iOS/Base.lproj/Main.storyboard b/iOS/Base.lproj/Main.storyboard index 0fcd14b0e..7d1888b23 100644 --- a/iOS/Base.lproj/Main.storyboard +++ b/iOS/Base.lproj/Main.storyboard @@ -1,12 +1,15 @@ - - + + + - + + + @@ -15,11 +18,11 @@ - + @@ -112,19 +115,159 @@ - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -145,15 +288,15 @@ - - + + - + @@ -162,7 +305,7 @@ - + @@ -174,14 +317,14 @@ - + - + - + @@ -229,14 +372,236 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -245,33 +610,34 @@ - + - +