Exploring Fyne: System Tray

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ย. 2024

ความคิดเห็น • 24

  • @able2663
    @able2663 ปีที่แล้ว +1

    Cool!!

  • @womp5445
    @womp5445 2 ปีที่แล้ว +3

    this is real good

  • @j8ge
    @j8ge 7 หลายเดือนก่อน

    elegant

  • @Celdrith
    @Celdrith 2 ปีที่แล้ว +2

    Very good work, thanks!!

    • @Fyneio
      @Fyneio  2 ปีที่แล้ว +1

      Glad you liked it!

  • @cindrmon
    @cindrmon 2 ปีที่แล้ว +3

    oh wow! this really feels like flutter but with go! this really has nice potential rivalling flutter for cross-platform apps! i do wanna ask, is fyne really similar to flutter in a way? also, has there been like a community around the fyne toolkit? like a discord server or a matrix channel or something?

    • @Fyneio
      @Fyneio  2 ปีที่แล้ว +3

      Fyne has a great community across Slack, Discord and GitHub - see the contact info at fyne.io/support/.
      In many ways Fyne and Flutter are similar but we take an engineering approach to writing code whereas Flutter is more of a design based toolkit. This means that we get maintainable code and good unit testing / TDD at the cost of not having live-reload custom UI debugging.

  • @zakariachahboun
    @zakariachahboun 2 ปีที่แล้ว +1

    👏👏

  • @tudorhulban2817
    @tudorhulban2817 2 ปีที่แล้ว +2

    does it support modal windows as in Lazarus / Delphi?

    • @icinemagr4621
      @icinemagr4621 6 หลายเดือนก่อน

      forget lazarus and delphi and lean go
      delphi and lazaurus are just dead

  • @sorrowseal
    @sorrowseal 2 ปีที่แล้ว

    Is it possible to add none clickable label at the top, for example to show running state of a service?

    • @andydotxyz
      @andydotxyz 2 ปีที่แล้ว

      I think you can do this with a menu item that is disabled…

    • @sorrowseal
      @sorrowseal 2 ปีที่แล้ว

      Thanks! Based on the example in this video, I've use something like this and it works. Is there away to update the text to reflect a dynamic state like the clock widget example? I've tried different ideas and none seemed to work, even the Menu.Refresh() didn't help.
      func MyNewMenuItem(label string) *fyne.MenuItem {
      return &fyne.MenuItem{Label: label, Disabled: true}
      }

    • @Fyneio
      @Fyneio  2 ปีที่แล้ว

      @@sorrowseal yup Menu.Refresh is your friend. Perhaps you did not set the updated label into the menu item correctly before refreshing. I’d recommend one of the support channels (Slack, Discord etc) linked from our website to get more assistance

  • @xuxiaofan1101
    @xuxiaofan1101 2 ปีที่แล้ว

    How do you click the tray icon to bring up the window?

    • @Fyneio
      @Fyneio  2 ปีที่แล้ว

      The tray only brings up a menu at this stage. Some OS don’t expect different left/right click options in this system tray. We often add a “Show app” menu item to add this feature.

  • @willisim4456
    @willisim4456 2 ปีที่แล้ว

    - 1. How can I hide Dock icon and only remain the tray icon?
    - 2. How can I add more than one menu to the tray icon?

    • @Fyneio
      @Fyneio  2 ปีที่แล้ว +1

      1. We don't have support for apps that are not visible in the dock (yet), but there is an issue open for it. 2. In a `fyne.Menu` you can make submenus, just set a new menu as the `ChildMenu` of a `fyne.MenuItem`.

    • @willisim4456
      @willisim4456 2 ปีที่แล้ว

      ​@@Fyneio Got it, thank you for your reply.

    • @willisim4456
      @willisim4456 2 ปีที่แล้ว

      @@Fyneio Hello, I was able to add many menus to the tray icon, now I have another question: how can I add submenus to the menu in the trayicon? see screenshot: drive.google.com/file/d/1DHRTWA4x3jIS5l3sxRc66yhIwezIEm-W/view

    • @Fyneio
      @Fyneio  2 ปีที่แล้ว

      @@willisim4456 The answer is in the previous reply. Please use our support channels for discussion, TH-cam video is not a great place to help with code questions fyne.io/support/

    • @willisim4456
      @willisim4456 2 ปีที่แล้ว +1

      @@Fyneio OK, thank you.

  • @icinemagr4621
    @icinemagr4621 6 หลายเดือนก่อน

    what about if i dont want any menu to popup just when i click on systray icon to display the window?
    is it possible to do this with fyne or not?

    • @andydotxyz
      @andydotxyz 4 หลายเดือนก่อน

      The system tray library will let you do that. However the Fyne systray menu abstraction doesn’t because that’s not the expected behaviour on some systems