diff options
Diffstat (limited to 'gui.go')
-rw-r--r-- | gui.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -27,6 +27,14 @@ func (l *Limox) rosterView(e system.FrameEvent) { Spacing: layout.SpaceStart, } + widgets := make([]layout.Widget, 0) + for _, v := range l.Roster { + widgets = append(widgets, func(gtx layout.Context) layout.Dimensions { + jid := material.H6(l.Theme, v.Jid) + return jid.Layout(gtx) + }) + } + flex.Layout(gtx, layout.Rigid( func(gtx layout.Context) layout.Dimensions { |