Commit Graph

1146 Commits

Author SHA1 Message Date
Duncan Babbage f6552e110d Replace raw with repaired links. Fixes #3103 2021-09-30 16:52:00 +13:00
Duncan Babbage cc855f3832 link and URL vars for Article. Storage as rawLink
link and externalLink fall back to providing the raw stored value if URLs cannot be created even with repair.
2021-09-30 16:51:59 +13:00
Maurice Parker 37cb93ed1a
Merge pull request #3301 from stuartbreckenridge/theme-tweaks
Theme tweaks
2021-09-23 20:33:54 -05:00
Stuart Breckenridge 25f9896832 Localized strings for errors 2021-09-24 09:28:32 +08:00
Maurice Parker 4a3934fd28 Add ellipsis to Add context menu 2021-09-23 11:57:47 -05:00
Maurice Parker 859aa5127c Correct usage of ellipsis in main menu items. 2021-09-23 11:46:58 -05:00
Maurice Parker 812eed67c3 Rename button to "Open Themes Folder" 2021-09-23 10:02:34 -05:00
Stuart Breckenridge bd6095517b is missing instead of not found 2021-09-23 20:19:41 +08:00
Stuart Breckenridge e9b84d9219 Theme Import/Opening Changes
Mac:
- Better error messages
- The alert displayed contains an additional button to open the theme's folder (when clicked it will not dismiss the alert).
2021-09-23 20:12:35 +08:00
Stuart Breckenridge 82a62712ce
Better error messages for decoding issues 2021-09-21 10:43:12 +08:00
Stuart Breckenridge c29afd2677 try? changed to try with error handling 2021-09-21 09:22:45 +08:00
Stuart Breckenridge 78e0595708 Various ThemeDownloader Updates
- `try` added where applicable to ArticleTheme inits
- `ArticleThemePlist` has fixed spelling of theme identifier and conforms to Equatable
- `ArticleTheme` now uses `ArticleThemePlist`
-  `ArticleThemeDownloader` is now a class
- `ArticleThemeDownloader` will now download themes to Application Support/NetNewsWire/Downloads on macOS and iOS.
- `ArticleThemeDownloader` will remove downloaded themes from the Download folder when the application is closed.
- macOS app delegate now observes for theme download fails
- Error display code moved from SceneDelegate to SceneCoordinator so that it can use existing presentError on rootVC.
2021-09-21 09:10:56 +08:00
Stuart Breckenridge a1b01384d3 refactors downloader code for macOS & iOS
More consistent code across platforms.
2021-09-20 19:34:25 +08:00
Stuart Breckenridge afd952fbc2 refactors iOS theme downloads 2021-09-20 09:36:09 +08:00
Stuart Breckenridge 7994b34551 adds mac theme downloading 2021-09-19 21:18:23 +08:00
Maurice Parker b43d8b6b28 Change reload so that the text size style can be used in more places. 2021-09-17 15:59:43 -05:00
Maurice Parker de956f9473 Change to use JavaScript to detect scroll events as it will also capture scrollbar events 2021-09-13 21:03:27 -05:00
Maurice Parker 2c801a388c Restore the article scroll position when restarting NetNewsWire 2021-09-13 20:42:58 -05:00
Maurice Parker 87700325cf Changed to use preferredURL incase we run into any malformed links 2021-09-12 21:34:47 -05:00
Maurice Parker fa4b2531f8
Merge pull request #3102 from robmathers/copy-url-menu-options
Add Copy Article URL & Copy External URL Menu Items. Fixes #1285.
2021-09-12 21:17:50 -05:00
Maurice Parker 3a09ff2db7 Change so that we are using the ArticleTheme definition of the suffix 2021-09-12 13:30:15 -05:00
Maurice Parker abd66ea1bb Maintain scroll position when changing themes 2021-09-11 20:53:57 -05:00
Maurice Parker baad458138 Add Open Themes button 2021-09-11 20:32:15 -05:00
Maurice Parker b4d9423ff2 Add alert to verify overlaying an existing theme 2021-09-09 06:03:28 -05:00
Maurice C Parker c031aa5cbe Add popup button for selecting article themes on Catalina 2021-09-09 05:47:49 -05:00
Maurice Parker 6c09bf585c Use separate text widths for different OS versions 2021-09-09 02:08:47 -05:00
Maurice C Parker 35995fad39 Fix theme dialog formatting on Catalina 2021-09-09 01:53:40 -05:00
Maurice Parker ef44a9b6e6 Fix theme install button text 2021-09-09 01:37:55 -05:00
Maurice Parker 39c9cc440c Add optional article theme toolbar item 2021-09-08 19:58:40 -05:00
Maurice Parker e68e7420b8 Update the theme popup when the themes change 2021-09-08 17:36:52 -05:00
Maurice Parker 9db72e50e8 Add article theme pop up to General Prefs 2021-09-08 16:38:05 -05:00
Maurice Parker 596202fc33 Reload the article if the theme changes 2021-09-08 15:55:42 -05:00
Maurice Parker 281e41dd2d Add missing punctuation on alert 2021-09-08 05:49:02 -05:00
Maurice Parker e66344694e Copy the theme if the user requests it to be installed 2021-09-08 05:47:57 -05:00
Maurice Parker b568f03edc Unify the stylesheets into a single one to make building themes easier 2021-09-08 04:58:26 -05:00
Maurice Parker cf171394cf Change case on theme 2021-09-08 00:33:43 -05:00
Maurice Parker 86d63542de Change install text 2021-09-08 00:33:05 -05:00
Maurice Parker 98b9080b1f Implement initial alert dialog when importing a theme 2021-09-08 00:28:13 -05:00
Maurice Parker 491896e334 Change theme file extension from nnwstyle to nnwtheme 2021-09-07 17:06:41 -05:00
Maurice Parker 512e83d786 Refactor Styles to now be Themes 2021-09-07 16:58:06 -05:00
Maurice Parker cfd2db58c5 Remove references to nnwstyle.icns so that the system will generate a document icon for us. 2021-09-07 14:31:33 -05:00
Maurice Parker a06a10e661 Merge branch 'mac-release' 2021-09-06 20:42:13 -05:00
Maurice Parker 45c47f3752 Add nnwstyle as an imported type 2021-09-06 20:29:40 -05:00
Maurice Parker a6f5c67f9d Timeout the run loop to get a final return value after two seconds. Fixes #3276 2021-09-06 14:52:41 -05:00
Maurice Parker 530051386f Fix regression that prevented universal links from working 2021-09-01 20:38:50 -05:00
Maurice Parker 285e9a40fa
Merge pull request #3262 from stuartbreckenridge/ios-browser-behaviour
Adds option to open article links in NetNewsWire or in the default browser.
2021-08-26 17:48:30 -05:00
Stuart Breckenridge d451e3fa4a
Update Credits.rtf 2021-08-26 19:22:26 +08:00
Maurice Parker 0f0cf34ef8 Add nnwstyle bundle definitions 2021-08-25 20:22:58 -05:00
Maurice Parker ba279d2a6e Make the Styles folder configurable so that it can be in different places on macOS and iOS. 2021-08-24 20:20:20 -05:00
Daniel Jalkut 2e652351ec Implement the WKUIDelegate method that is reached when JavaScript in a web view invokes window.open(). This ensures that attempts to open links from code, such as from the YouTube embedded video player, work as expected. Fixes #3088. 2021-07-27 17:34:48 -04:00