Discussion
Loading...

#Tag

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Ambraven :verifinking:​
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp 2 weeks ago

I'm still struggling a bit with slint, but it's so much easier to work with that iced, egui or other rust only frameworks...

I guess I should give dioxus or tauri a chance next... But so far Slint is a breeze. And I know how to make an android app from slint, so that's one base covered.

#rust #slint

  • Copy link
  • Flag this post
  • Block
Ambraven :verifinking:​
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp 2 weeks ago

After some playing around a bit with it, I think I actually like slint?

It seems to fix some of the complaints I have with qml, and the hability to run the ui, change the code and immediately see the result is a huge plus on any ui framework.

Yeah, that means the UI part isn't written in rust, but déclarative language are actually just better suited to code UI anyway. I still dislike UI coding but it's way less painful this way.

( I lowkey wanted to rant about the licences but there is a GPLv3 licence available, and yes it's less convenient than a AGPLv3 or god forbid a BSD/MTI type licence, I'm not gonna trash a licence option which garanties code availability. I probably won't be able to use it at work for commercial project though... )

#slint #rust

Michał Fita
Michał Fita
@michalfita@mastodon.social replied  ·  activity timestamp 2 weeks ago

@Ambraven Like with #Qt, you can pay #Slint for commercial license.

In reality you need one only for embedded products. Desktop applications can enjoy free license (not GPL thou).

  • Copy link
  • Flag this comment
  • Block
Ambraven :verifinking:​
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp 2 weeks ago

After some playing around a bit with it, I think I actually like slint?

It seems to fix some of the complaints I have with qml, and the hability to run the ui, change the code and immediately see the result is a huge plus on any ui framework.

Yeah, that means the UI part isn't written in rust, but déclarative language are actually just better suited to code UI anyway. I still dislike UI coding but it's way less painful this way.

( I lowkey wanted to rant about the licences but there is a GPLv3 licence available, and yes it's less convenient than a AGPLv3 or god forbid a BSD/MTI type licence, I'm not gonna trash a licence option which garanties code availability. I probably won't be able to use it at work for commercial project though... )

#slint #rust

  • Copy link
  • Flag this post
  • Block
Ambraven :verifinking:​
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp last month

It was kind of a pain but I still happy to have learned how to do it.

Ambraven :verifinking:​
Ambraven :verifinking:​
@Ambraven@social.mochi.academy replied  ·  activity timestamp last month

WIL:

  • setting up android sdk without android-studio is a pain.
    • I manage to do it with the cmline android tools
    • Still can't make the emulator to work for some reason
    • you need build-tools, ndk, platform-tools, the platforms themselves. I think the system-images is only needed for the emulator
  • you have to sign your apps to be able to make a release build
    • use keytool to make a keystore. Don't use the mdp you always use for everything
    • on related note I need to figure out how to use the keystore without putting the mdp in Cargo.toml
  • the size of the main window needs to be flexible
  • googledrive is the easiest way I found to transfer and install my app on my phone (it didn't want to install it from my phone file system)

#androiddev #rust #slint

  • Copy link
  • Flag this comment
  • Block
Jan :rust: :ferris:
Jan :rust: :ferris:
@janriemer@floss.social  ·  activity timestamp last month

@Ciantic Ok, I think you want to look into @slint

https://slint.dev/

From their website:
"The #Slint runtime fits in less than 300KiB RAM, features a reactive property system, and is built with #Rust."

They support the Winit backend, so Wayland...✅
https://docs.slint.dev/latest/docs/slint/guide/backends-and-renderers/backend_winit/

...and all kinds of platforms:
https://docs.slint.dev/latest/docs/slint/guide/platforms/desktop/#tab-panel-46

Have a look at Material Toolkit:
https://material.slint.dev/

Pricing model: royalty-free, if not an embedded system:
https://slint.dev/pricing

#RustLang #UI #GUI

  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.41 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct