51 Commits

Author SHA1 Message Date
Maurice Parker
42e6e1397d Signal that the mouse exited the link when an article gets reloaded. Fixes #2877 2021-03-15 20:14:30 -05:00
Maurice Parker
78b9444274 Remove extra unused parameter in delegate signature 2021-03-15 20:10:42 -05:00
Stuart Breckenridge
a59df3e6fc
Moves frame tweaking to end of liveResize 2021-03-08 10:28:51 +08:00
Stuart Breckenridge
27b9326d07
fixes #2823 2021-03-08 10:06:30 +08:00
Stuart Breckenridge
2e12f5a078
removes code comment 2021-03-07 21:34:52 +08:00
Stuart Breckenridge
86981a0c5b
#2597
Fixes #2597: Toggles a small window height change to get webview to behave on macOS 11.
2021-03-07 16:47:39 +08:00
Stuart Breckenridge
7a653db1dd
typo 2021-03-07 15:51:43 +08:00
Stuart Breckenridge
8dc6e4e332
Contraint Changes
Fixes #2850
• #2634: resizing vertically downards (expanding) is smooth
2021-03-07 14:21:30 +08:00
Maurice Parker
2ca06eeae7 Remove containing box for web view. Fixes #2848 2021-03-05 12:45:15 -06:00
Collin Donnell
035759947a Fix #2833: Titlebar is overlapped by toolbar in fullscreen
Fix issue where detail web view would be overlapped by the toolbar in full screen by setting web view constraints to use the `safeAreaLayoutGuide` in macOS 11+.
2021-02-27 19:02:13 -06:00
Maurice Parker
6ef29e3927 Update the text size using JavaScript so that the web page doesn't reload. Fixes #2641 2020-12-08 19:00:56 -06:00
Maurice Parker
948998382d Make article view text adjustable via the app preferences. Fixes #42 2020-11-03 17:08:56 -06:00
Maurice Parker
0338a3bda4 Remove deprecation warning 2020-11-02 19:43:29 -06:00
Maurice Parker
3aad0b5075 Remove no longer needed system events. Fixes #2537 2020-10-30 09:44:24 -05:00
Maurice Parker
95a8f6d72d Merge branch 'swiftui' 2020-07-10 15:28:14 -05:00
Nate Weaver
5acce87995 Mac: Make shift-space scroll up even when the detail view doesn't have focus
Issue #969.
2020-07-10 13:57:34 -05:00
Stuart Breckenridge
a57f98e4e7 NetNewsWire-Mac AppDefaults is now a singleton 2020-07-02 11:17:38 +08:00
Nate Weaver
5cd8dc9d5d Also let the Command key invert the background pref in web views 2020-05-20 20:08:13 -05:00
Nate Weaver
1e1fc06e7b Clean up shift-key checking and add it to more places 2020-05-20 19:59:21 -05:00
Maurice Parker
6a384d99e6 Darken and lighten the accent color for the article view. 2020-03-20 08:13:39 -05:00
Maurice Parker
770206df60 Merge branch 'ios-release' 2020-03-17 17:19:31 -05:00
Maurice Parker
36841602a5 Change article rendering to use loadHTMLString instead of JavaScript. Issue #1923 2020-03-17 17:18:24 -05:00
Maurice Parker
94c6ca428f Merge branch 'mac-release' 2020-03-01 16:32:31 -08:00
Maurice Parker
85bd20ca80 Stop media playback when the main window is closed. Issue #1646 2020-02-27 12:15:41 -08:00
Maurice Parker
2ae021960b Move account files to the documents directory and out of the shared container. Issue #1784 2020-02-12 16:21:48 -08:00
Nate Weaver
447cc44b8e Put <title> and <base> in the <head> instead of <body>
This also means renderHTML() is no longer needed.
2020-01-30 06:15:14 -06:00
Maurice Parker
dd5633b5ae Change to use the correct URL when reloading an image. 2020-01-27 16:27:13 -07:00
Maurice Parker
3a99e6430f Make the article icon code specify the desired article so that it can't pull the wrong one by mistake. Issue #1707 2020-01-27 12:58:32 -07:00
Maurice Parker
81e71051ef Change to reload the page.html file instead of using its string value. 2020-01-26 20:45:49 -07:00
Maurice Parker
58b24f3349 Rename callback: to completion: 2019-12-14 18:01:34 -07:00
Maurice Parker
56d43f8f2d Do a full reload of the article when rearranging the UI to accommodate for split screen color changes. 2019-11-20 18:16:54 -06:00
Maurice Parker
188c1f8d8e Reload article image on image load notifications. 2019-11-18 19:44:31 -06:00
Maurice Parker
701070f2dd Make Article icons/avatars match Timeline icons/avatars. Issue #1273 2019-11-12 09:22:23 -06:00
Daniel Jalkut
2903e4507b Remove references to WebKit preferences that are not pertinent in 10.15. 2019-10-26 14:23:44 -04:00
Brent Simmons
74b1d56cbf Merge branch 'mac-release' 2019-10-18 17:38:22 -07:00
Brent Simmons
a11e900a93 Get the y scroll position in the detail view using window.pageYOffset instead of document.body.scrollTop. It appears the latter may be broken — at any rate, it just returns 0 on Catalina. (On Mojave, use the same method as before, so as not to risk a regression.) 2019-10-18 17:37:56 -07:00
Maurice Parker
9d54a1de74 Enable always on Reader View for feeds 2019-09-21 15:03:42 -05:00
Maurice Parker
b49aeca577 Moved page.html location information to ArticleRenderer 2019-09-21 12:36:35 -05:00
Maurice Parker
0c00150849 Externalize javascript code into separate main.js file 2019-09-21 04:34:11 -05:00
Maurice Parker
710abf30c7 Make stylesheet external to page.html 2019-09-20 19:28:13 -05:00
Maurice Parker
9c6d47eaa1 Merge branch 'pr/1033' 2019-09-20 17:51:27 -05:00
Maurice Parker
d3a5bdf6d3 Merge branch 'mac-release' 2019-09-19 11:59:01 -05:00
Nate Weaver
4a0bbeacc2 Disable Web Inspector for App Store builds
- Hide the "Enable Web Inspector" menu item.
- #if-out notifications/defaults/etc.
- Make toggleWebInspectorEnabled(_) a no-op.
2019-09-19 10:38:17 -05:00
Ben Ubois
0b6683d073 Render with evaluateJavaScript.
Replaced loadHTMLString based rendering for improved performance.
2019-09-18 22:03:23 -07:00
Maurice Parker
8cd6f107e5 Add basic Article Content extraction 2019-09-18 18:15:55 -05:00
Nate Weaver
0c89bc43c1 Use a bridging header for the Web Inspector API instead of KVC 2019-09-17 06:55:55 -05:00
Nate Weaver
4f405009f5 Use a selector instead of a block for the notification observation 2019-09-17 05:04:05 -05:00
Nate Weaver
e39fa31bf7 Add a menu item to the Debug menu to enable the Web Inspector
Just enables the "Inspect Element" item in a WKWebView's contextual menu at the moment.
2019-09-17 05:04:05 -05:00
Jim Correia
e7e77d362c Fix for bug #901 — first web view load flashes white in dark mode
The fix used for iOS (keep a queue of preloaded web views) isn't appropriate
for macOS since the first view is used immediately. That approach would
solve the flash of white when first searching, but not the flash of white
when launching the application.

Instead, use a modification of the original solution used for iOS:

    - wrap the web view in a box with an appropriate background color
    - hide the web view at creation
    - show the web view after* the first load

This doesn't suffer the latency problem that the same solution on iOS had
because the first load is always local, "No Selection" HTML.

[*] Showing the view immediately after the first load still causes the flash
    to white. Waiting 0.05 seconds avoids this. That's a fairly terrible hack,
    but I don't have a better solution at present.
2019-08-31 22:14:56 -07:00
Brent Simmons
6c8481d805 Work around WKWebView latency that happens when specifying baseURL. Instead, make it nil, and add a base href tag to the actual HTML. 2019-04-14 12:54:17 -07:00