logoalt Hacker News

jasonjmcgheetoday at 2:58 PM1 replyview on HN

It's only a few lines of code to use the built-in liquid glass.

As far as I can tell, this doesn't use it.

https://developer.apple.com/documentation/SwiftUI/Applying-L...

https://developer.apple.com/documentation/technologyoverview...

Also, for the vibe that this is going for, very surprised the title bar was left in.

---

Code has lots of claims that something is done and it isn't.


Replies

yuu1ch13today at 3:21 PM

Hi, thanks for the feedback! To clarify, I do use the built-in .glassEffect() modifier on SwiftUI components (sidebar, tab bar, command palette, browser toolbar). The terminal surface itself is the hard part. It's backed by ghostty's Metal renderer which draws its own opaque background, so simply slapping .glassEffect() on it doesn't work. I've been working on improving transparency there but it's not as simple as a few lines of code when you're wrapping a GPU-rendered terminal engine. The titlebar is intentional for now, but I'm considering options there.

show 1 reply