From 4e90179c2c72f6c73f1db302b24bfa0cf75aada7 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 9 Jul 2023 16:26:52 +0200 Subject: Introduce separate disconnect button This prepares the roster view which should contain the disconnect button. The now added button will be moved to this view as soon as it is created. --- gui.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gui.go') diff --git a/gui.go b/gui.go index 8fcfed6..d3f6b2d 100644 --- a/gui.go +++ b/gui.go @@ -49,6 +49,13 @@ func (l *Limox) draw(e system.FrameEvent) { return btn.Layout(gtx) }, ), + layout.Rigid( + func(gtx layout.Context) layout.Dimensions { + btn := material.Button(l.Theme, &l.DisconnectButton, + "Disconnect") + return btn.Layout(gtx) + }, + ), ) e.Frame(gtx.Ops) -- cgit v1.2.3-70-g09d2