diff options
author | xengineering <me@xengineering.eu> | 2023-07-09 16:26:52 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-07-09 16:26:52 +0200 |
commit | 4e90179c2c72f6c73f1db302b24bfa0cf75aada7 (patch) | |
tree | 90a7d18c3831bb054f5e739738574383bc73cd5f /gui.go | |
parent | ffd41bba908fecc617970cf101d9b63b1db28d40 (diff) | |
download | limox-4e90179c2c72f6c73f1db302b24bfa0cf75aada7.tar limox-4e90179c2c72f6c73f1db302b24bfa0cf75aada7.tar.zst limox-4e90179c2c72f6c73f1db302b24bfa0cf75aada7.zip |
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.
Diffstat (limited to 'gui.go')
-rw-r--r-- | gui.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |