ExploreTrendingAnalytics
Nostr Archives
ExploreTrendingAnalytics
Frederik Handberg9d ago
I got the document scroll to work when navigating the cursor to always keep it visible. A few days ago I worked on the logic for various options in settings. This includes appearance. There are 3 options: - Solid (dark or light) - Blurry (translucent background with a blur effect) - Glass (Liquid Glass effect) In this video I used the 'Glass' option. I have not worked on the UI for settings yet. I think that will be the last part I work on as it's the fastest to complete. #dev #AppKit #Swift #SwiftUI #macOS πŸ“ 7320aa7c…
πŸ’¬ 1 replies

Replies (5)

Frederik Handberg9d ago
When changing block type (e.g. from text to heading block), the block will become deselected. The block should still be selected so the user can continue typing after having changes block type. The problem is that the block changes its ID once the type has been changed. That's probably the reason why it deselects the block... This will be my next task to implement a fix for πŸ’»
0000 sats
Frederik Handberg9d ago
Fixed βœ… Next task is to fix the sidebar overlay closing when using the color selector overlay. It happens when moving the cursor to the color selector overlay, because then the cursor is not hovering the sidebar overlay, which then causes it to close.
0000 sats
Frederik Handberg9d ago
I tried using `.onContinuousHover`, but didn't work when just clicking outside the color selector overlay without moving the cursor. You must move the cursor before `.onContinuousHover` fires its `active` case. So this caused the sidebar overlay to just close... Therefore I opted for an AppKit solution instead using `mouseLocationOutsideOfEventStream`. That worked! https://developer.apple.com/documentation/appkit/nswindow…
0000 sats
Frederik Handberg9d ago
Time to fix the next bug! I have another problem with state values being shared between different window instances - it's not the first time I'm experiencing this kind of bug. Now I notice that the formatting sidebar is applying styling to other windows... I imagine it should be fairly easy to fix by just passing the `windowId` to the notification.
0000 sats
Frederik Handberg9d ago
I just needed to pass the `windowId` to all the formatting notifications. Now it works correctly across multiple window instances. Besides fixing the bug, I implemented a new feature that allows pasting text without formatting by calling `NSTextView.pasteAsPlainText` using shortcut `Cmd+Shift+V`. **Next bug to fix:** When I paste some text with formatting (using normal `Cmd+V`), the text is black with a small font-size. Then once I move my cursor over the text view, the text suddenly gets the correct styling - so it seems like the text view is re-rendering.
0000 sats