r/coolgithubprojects • • 5d ago

Liquid glass in rust

I was playing around in claude code and it gave me a pretty good and quite nice looking liquid glass UI framework, which looks close to apple's liquid glass, not only with the refraction and chromatic aberrations but with animations and everything else, although it's not done and needs more work.

Feel free to clone the repo or download the code and use it as you like !

Let me know what you think and if you would like to see any particular features from Apple's liquid glass, shoot me a dm, i would be happy to add them.

Crate Github repo

379 Upvotes

45 comments sorted by

10

u/Known-Cover-5154 5d ago

Looks absolutely beautiful 

1

u/MasterKPG 4d ago

Thank you !

2

u/SawToothKernel 4d ago

Beautiful, but very difficult to read. It's a very confused UI.

1

u/Q-Ball7 4d ago

Devil's advocate: mobile UI already requires significant amounts of memorization for efficient use (far more than it does on a desktop, where you have space to display all/more complicated commands), and Liquid Glass only makes the initial discovery more difficult (which you have likely already done; iPhones have existed for nearly 20 years now).

If you've memorized where the element is, it then matters less what it looks like. (This was the lesson from the "flat" UI days back when we decided buttons didn't need to look like buttons.)

4

u/DetailKey6716 2d ago

this is the first accurate liquid glass I've actually seen.

3

u/MasterKPG 2d ago

Thanks i appreciate that :D

3

u/DaydreamingDev 3d ago

Wow really nice, wanna use it for my rust projects Got ⭐ from me for sure

2

u/MasterKPG 2d ago

Thank you ! although i would wait a bit since im still working on a stable version in my free time and will open contributions soon, but if you do end up using it i would love to check out what you made !

5

u/glad-k 4d ago

No please no, I just want an option to disable liquidglass everywhere it's so painful that everything is pushing this trough your throat

2

u/MasterKPG 4d ago

Im with you on that, they should have an option to disable it this is just experimental trying to see if i can get something close to apple !

4

u/glad-k 4d ago

No worries about your project mate, I'm not even an apple user, I just don't like liquid glass UX (nor ui tbh) and I'm disappointed some brands push this into my face even tho I have an android.

2

u/MasterKPG 4d ago

I see and i agree with you, im not gonna sit here and act like liquid glass is better, for most apps that require snappiness and immediate feedback i hate when its liquid glass or a UI/UX that is inherently slow, sometimes the software should prioritize effectiveness rather than trendy stuff and “beauty”.

2

u/glad-k 4d ago

100% make is good to use and then think about beauty

2

u/korywithawhy 4d ago

This will be KILLER for touchscreens

2

u/MasterKPG 4d ago

I think so since the whole thing about liquid glass is its dragging animations and interactions !

2

u/yarin_ 2d ago

It’s very very beautiful, but why should one use Rust and then just throw down the drain optimized and efficient no-redesign interfaces like gpui derivatives?
Don’t get me wrong, I love it, but looks very resource intensive by nature

2

u/MasterKPG 2d ago

Thanks! I agree that when using Rust your goal is optimization, but, first this is gpu intensive and the cpu stays plain rust so software runs as fast (at least software that isn't gpu intensive too, then they start competing for compute time). Second there is no rule on Rust being strictly for technical software that requires responsive and flat serious UI, especially now when rust is getting more popular with normal applications, this is where this can become useful in my opinion, and that's why i built it !
Thanks again for your feedback and i appreciate it so much !

2

u/Dev-in-the-Bm 2d ago

So if you're using resource intensive UI, then that means that you prefer using software with memory vulnerabilities?

2

u/yarin_ 2d ago

Nope, I just really like gpui-fast by Longbridge

2

u/programmersd21 2d ago

man i have been following your progress and it's been awesome left a star

2

u/MasterKPG 1d ago

Thanks i appreciate that ! I’m trying to release a stable production ready version while balancing studies so it’s going to take some time 😂

7

u/myndbyndr 4d ago

Oh god please no

1

u/pinku1 4d ago

well done! looks really nice

1

u/MasterKPG 4d ago

Thank you !

1

u/v0ngz 4d ago

This needs to come to CleanYourTV

1

u/MasterKPG 2d ago

Sadly in order for it to be in CleanYourTV it should support android but it doesn't yet, it's in the roadmap for later.

1

u/redd1trk 2d ago

When will they finally rewrite Android in Rust? I don't understand how Android is still so laggy, even Android 16 on a Dimensity 7300. It's just unbearable that Google can't optimize it.

2

u/MasterKPG 2d ago

I'm not really a mobile dev but from what i understand, Kotlin is fast enough and the phone maker's skins of android are what makes it slow and the apps themselves i think, so using Rust won't make a difference.

1

u/zeuros 1d ago

How heavy is it on cpu ? is it accelerated ? easy to reuse & compatible with rust UI kits ?

1

u/MasterKPG 1d ago

Currently it’s still not optimized but it’s already fast enough, you can check stats in github i’ll be updating them, for compatibility im still working on a stable version and then i’ll look into compatibility with egui and then support for web and mobile development, for integration i tried to follow the standard protocols of UI frameworks, documentation explains everything so it’s fairly straightforward.

0

u/smoke-bubble 4d ago

look absolutely terrible XD like every other AI-UI

1

u/MasterKPG 4d ago

I mean this is just a showcase example software for the components made and see how different parameters make the glass look, the goal here is to get as close as possible to Apple’s refraction and chromatic aberrations equations and to do live rendering of the background behind glass components not make an actual usable software

-2

u/smoke-bubble 4d ago

oh, so it's just playing with graphics? XD

Because I only hear bad things about the stupid glass design and they finally added an option to virtually disable it which I did immediately. This effect was so annoying.

2

u/MasterKPG 4d ago • Heartwarming

Exactly but for liquid glass it’s true that a lot of people didn’t like it lol but i give it to Apple their glass looks good and interacts well with backgrounds that’s just what i tried to achieve here not any particular Ui design or anything.

0

u/smoke-bubble 4d ago

okay! Now, you have my love! XD

1

u/MasterKPG 4d ago

I appreciate that thank you so much :D

1

u/Designer-Style147 4d ago

ufff me sirviria para meterle a apps de android y para linux, mas que todo a extensiones de gnome y aunque es muy temprano espero que cuando este estable! buen trabajo op

1

u/Designer-Style147 4d ago

optimizarian para pc de bajos de recursos y celulares?

1

u/Bright_Warning_8406 20h ago

Really cool thanks mate !

0

u/ericdano 4d ago

I pointed my Claude at it and it recommended not using it right now.

2

u/MasterKPG 4d ago

Yes because it’s still in early development and nothing serious or close to a production ready framework and it says it’s in early stages in the readme !

1

u/Pwnstein 4d ago

this stuff makes me horny. love it.

1

u/MasterKPG 4d ago

Thank you lol

1

u/andobrah 4d ago

Lmfao same. Absolutely love it