Commit Graph

134 Commits

Author SHA1 Message Date
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 abd66ea1bb Maintain scroll position when changing themes 2021-09-11 20:53:57 -05:00
Maurice Parker 596202fc33 Reload the article if the theme changes 2021-09-08 15:55:42 -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 512e83d786 Refactor Styles to now be Themes 2021-09-07 16:58:06 -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
Chris Campbell 364f3a7639
Prevent infinite loop in DetailWebView.setFrameSize()
DetailWebView.setFrameSize() calls bigSurOffsetFix(), which changes the window's frame, which ultimately calls setFrameSize() again (which calls bigSurOffsetFix(), etc). In practice, this isn't causing an infinite loop (I think NSWindow.setFrame(_:display:) is smart enough to prevent reentrancy) but it's still dangerous to have such a glaring logic error in the code.
2021-04-30 00:52:15 -04:00
Chris Campbell bf77d77669
Expand workaround for macOS 11 WebView origin offset bug. Fixes #2916
Move the code that twiddles the window frame from DetailWebView.viewDidEndLiveResize() into a new bigSurOffsetFix() API so it can also be called by setFrameSize() when the frame size is changed outside of a live resize.
2021-04-30 00:02:10 -04:00
Jed Fox 4750e9b93a
Add dir=auto to page.html 2021-03-29 17:20:09 -04:00
Maurice Parker ab5421f533 Merge branch 'mac-release' into main 2021-03-27 17:21:49 -05:00
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 e2f21c15c2
formatting 2021-03-08 14:12:32 +08:00
Stuart Breckenridge f630cb16db
comments 2021-03-08 10:30:58 +08: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
Collin Donnell 593569175c 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 16:32:57 -08:00
Stuart Breckenridge 1e578828e9
: class chnaged to : AnyObject for protocols 2021-02-06 07:06:45 +08:00
Maurice Parker 43a01c5501 Change to use standard Apple colors for darkmode. Fixes #2660 2020-12-11 15:29:31 -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 c558731de8 Reduce size of article left and right padding 2020-11-04 12:30:29 -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 dc35037740 Remove CSS rule that was interfering with Newsfoot styling 2020-09-29 07:35:05 -05:00
Maurice Parker 1e7a185134 Use rgba instead of rgb for lightmode 2020-08-20 21:13:18 -05:00
Maurice Parker 6893c8ebc8 Use the lighter shade of NNW blue for darkmode article view (like iOS) 2020-08-20 21:02:28 -05:00
Maurice Parker f7fb859ea9 Make article source gray. Issue #2368 2020-08-19 12:48:20 -05:00
Maurice Parker bbd2dfad45 Change article accent color to be NNW blue. Issue #2367 2020-08-19 12:31:03 -05:00
Maurice Parker 25ec13972c Change margin padding back to 64px. Issue #2360 2020-08-18 17:20:44 -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 ee92cf69d2 Merge branch 'extension-point' 2020-04-24 13:34:13 -05:00
Nate Weaver 37ae46ea4c Merge more styles and fix styling of tables with explicit thead/tbody/tfoot
Also use :matches() to simplify some rules.

# Conflicts:
#	Mac/MainWindow/Detail/styleSheet.css
#	iOS/Resources/styleSheet.css
2020-04-23 23:21:22 -05:00
Maurice Parker b7a37e2a25 Make mouseover/mouseout work with anchors that nest 2020-04-20 12:14:43 -05:00
Nate Weaver 2a6d9994ea Move shared CSS into its own file 2020-04-19 18:38:33 -05:00
Maurice Parker a8d3872490 Merge branch 'master' into accent-color-experimental 2020-03-22 10:39:46 -05:00
Maurice Parker 2f3482d260 Remove border on nested tables. 2020-03-21 17:14:39 -05:00
Maurice Parker cc7887857a Fix block quote css bug. 2020-03-20 08:34:25 -05:00