Hacker News new | ask | show | jobs
by jasonjmcghee 99 days ago
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.

1 comments

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.
None of the UI elements in the screenshot follow apple liquid glass styles / guidelines afaict, whether or not glassEffect() is being used.
Fair point. I'll review the guidelines more carefully and update the styling. Thanks for pushing on this.