Getting started with Rust 🦀 2021: 7b. Building a GUI app in Rust [Part B]

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ • 26

  • @a5y
    @a5y Рік тому +1

    Thanks for taking time to put this together. Much appreciated.

  • @Yas-gs8cm
    @Yas-gs8cm 2 роки тому +1

    dude, this is the only tutorial out there for EGUI is approachable!
    Good job really... Covering almost everything, not too fast, not too slow and expressive... gj really

  • @creativcoder
    @creativcoder  3 роки тому +11

    As an added note: egui also has built-in http request and persistance APIs if you want that.

    • @lancecodes
      @lancecodes 2 роки тому +6

      Would love an example video of this!

    • @princeofexcess
      @princeofexcess Рік тому

      Hey. Do you know if there is a way to make a whole app have opacity of 50%? If not is there another crate that can accomplish this easily?

  • @fizykone
    @fizykone 3 роки тому +5

    Thank you for preparing these videos. They are really helpful.

  • @huangbo7297
    @huangbo7297 2 роки тому +2

    sick. so good.

  • @tak68tak
    @tak68tak 2 роки тому +2

    Awesome!

  • @spinthma
    @spinthma 2 роки тому

    Super life intro thanks a lot!

  • @damien8756
    @damien8756 2 роки тому +1

    Hi, for this implementation with threads, there seems to be 2 behaviours.
    1. if no api_key exist on start up - thread closes after fetch news
    2. if api_key exist on start up - thread will maintain and go into an infinite loop with blocking at app_rx.recv()?
    For preload_articles() function, i seem to be getting infinite warn logs. Is that expected cuz I do not see that in the video.
    anyway, thanks for making this series!

    • @creativcoder
      @creativcoder  2 роки тому

      1. If no api key exists, it will prompt you to enter the api key.
      2. Yes
      The most recent commit in the repository has warning logs removed. Try that

  • @herrbanane
    @herrbanane 2 роки тому

    Awesome tutorial. One question: How do you prevent the Scrollable widget from overflowing underneath the TopBottomPanel for the footer? Because it just has an absolute position.

    • @herrbanane
      @herrbanane 2 роки тому

      You just fixed my problem in your new video, what a coincidence. 😅

    • @creativcoder
      @creativcoder  2 роки тому +1

      Haha, that's amazing. Glad the video was on point!

  • @yevgeniygrechka6431
    @yevgeniygrechka6431 2 роки тому

    This was a great tutorial; do you know what is the best way to play an audio file (e.g. mp3) with egui?

  • @alihusham1560
    @alihusham1560 2 роки тому

    Now you have two title bars? How to remove the default title bar?

    • @creativcoder
      @creativcoder  2 роки тому

      As per the most recent release of egui 0.19, you need to set docs.rs/eframe/latest/eframe/struct.Frame.html#method.set_decorations to false to get rid of the outer window.

  • @santiago4773
    @santiago4773 3 роки тому +1

    Could you compile it to web assembly?

    • @creativcoder
      @creativcoder  3 роки тому +4

      Yess! That's exactly what we're doing in the next video!

  • @nonezez
    @nonezez 3 роки тому

    How to create a custom minimize button? I couldn't find it in the egui docs.

    • @creativcoder
      @creativcoder  3 роки тому +2

      For a custom minimize button, at the moment I don't think egui exposes an API for window level minimize. But there's docs.rs/winit/0.25.0/winit/window/struct.Window.html#method.set_minimized and egui uses winit github.com/emilk/egui/tree/master/egui-winit. So it might be possible in future.

  • @vas_._sfer6157
    @vas_._sfer6157 2 роки тому

    Nice video. Could it compile to android? And how make styled widgets container with background color

    • @creativcoder
      @creativcoder  2 роки тому

      It should be possible, through the "macroquad" project. Currently experimenting with that

    • @creativcoder
      @creativcoder  2 роки тому

      You can access the "frame" method of widgets and use that to modify visual attributes

    • @vas_._sfer6157
      @vas_._sfer6157 2 роки тому

      @@creativcoder Thanks. Egui is perspective project, but i think this need a live reload feature.

    • @MrSpoomples
      @MrSpoomples 2 роки тому

      @@vas_._sfer6157 It's not quite live reload, but I have been using cargo watch to recompile my project when I make changes. It works really well for really young projects, but I will probably stop using that when compile times start getting to be longer than webpack bundle times.