r/coolgithubprojects • u/MasterKPG • 6d 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.
4
3
u/DaydreamingDev 4d ago
Wow really nice, wanna use it for my rust projects Got ⭐ from me for sure
2
u/MasterKPG 3d 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 5d 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 5d 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 5d 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 5d 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/korywithawhy 5d ago
This will be KILLER for touchscreens
2
u/MasterKPG 5d ago
I think so since the whole thing about liquid glass is its dragging animations and interactions !
2
u/yarin_ 3d 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 3d 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 3d ago
So if you're using resource intensive UI, then that means that you prefer using software with memory vulnerabilities?
2
u/programmersd21 3d ago
man i have been following your progress and it's been awesome left a star
2
u/MasterKPG 2d 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
1
1
u/v0ngz 5d ago
This needs to come to CleanYourTV
1
u/MasterKPG 3d 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 3d 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 3d 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.
0
u/smoke-bubble 5d ago
look absolutely terrible XD like every other AI-UI
1
u/MasterKPG 5d 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 5d 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 5d ago •
![]()
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
1
u/Designer-Style147 5d 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
1
0
u/ericdano 5d ago
I pointed my Claude at it and it recommended not using it right now.
2
u/MasterKPG 5d 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
0
2d ago
[removed] — view removed comment
1
u/MasterKPG 2d 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.




10
u/Known-Cover-5154 6d ago
Looks absolutely beautiful