Commit Graph

25 Commits

Author SHA1 Message Date
Maurice Parker
e43e770f4a Fix automatic theme reloading 2023-04-01 19:55:32 -05:00
Stuart Breckenridge
a2be4cd349 Fixes 3789 by checking lastPathComponent 2023-01-05 07:43:30 +08:00
Maurice Parker
b7b9344e3d Change how we handle errors when working with Themes 2022-11-08 01:36:28 -06:00
Maurice Parker
ad164d59c9 Switching to case-sensitive compare since that is how we sort everything else. 2022-11-07 01:39:22 -06:00
Ethan Wong
3ba14f8596 Always use localized compare when sorting list items presented to the user 2022-11-06 00:29:33 +08:00
Maurice Parker
be75bd28d0 Refactor the ArticleThemeManager code to simplify it and try to avoid any issues with app warm up on the iPhone 2022-10-03 13:23:11 -05:00
Stuart Breckenridge
0dd4689bf0 Logging changes
- Adds `Logging` protocol
- Moves to Swift-style `OSLog` usage

os_log to Logger

os_log audit

Replacment of os.log with Logging
2022-09-04 21:31:03 +08:00
Maurice Parker
8ad5969452 Prevent app themes from attempting to be deleted 2022-02-07 16:41:00 -08:00
Maurice Parker
7d2ec79986 Make sure that the theme names are always up to date before setting the current theme 2022-02-07 16:28:35 -08:00
Maurice Parker
063da4ac02 Change to no longer copy app distributed themes to the Themes folder. Fixes #3447 2022-02-07 16:28:20 -08:00
Maurice Parker
71b0a8d476 Rename the InstalledStyleSheets file to InstalledThemes 2021-09-23 10:00:53 -05: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
Maurice Parker
35b913f4a0 Add the ability to delete a theme on iOS 2021-09-12 16:40:59 -05:00
Maurice Parker
9851629ec9 Implement a way to distribute themes with NetNewsWire 2021-09-12 11:53:34 -05:00
Maurice Parker
020c1f6141 Use a file presenter so that we don't have to switch back to NNW to observe theme edits. 2021-09-12 09:59:03 -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 Parker
622c3b0240 Sort the theme names 2021-09-08 20:02:38 -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
a645ac9458 Change how Notification names were defined to match our current convention 2021-09-08 14:19:56 -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
98b9080b1f Implement initial alert dialog when importing a theme 2021-09-08 00:28:13 -05:00
Maurice Parker
512e83d786 Refactor Styles to now be Themes 2021-09-07 16:58:06 -05:00