Format code
This commit is contained in:
14
main.go
14
main.go
@@ -3,9 +3,12 @@ package main
|
|||||||
import (
|
import (
|
||||||
//core - required
|
//core - required
|
||||||
"context"
|
"context"
|
||||||
|
_ "embed"
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
_ "image/jpeg"
|
||||||
|
_ "image/png"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"math/rand/v2"
|
"math/rand/v2"
|
||||||
@@ -13,9 +16,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
_ "embed"
|
|
||||||
_ "image/png"
|
|
||||||
_ "image/jpeg"
|
|
||||||
|
|
||||||
// gui - required
|
// gui - required
|
||||||
"fyne.io/fyne/v2"
|
"fyne.io/fyne/v2"
|
||||||
@@ -33,12 +33,12 @@ import (
|
|||||||
"github.com/shreve/musicwand/pkg/mpris"
|
"github.com/shreve/musicwand/pkg/mpris"
|
||||||
|
|
||||||
// xmpp - required
|
// xmpp - required
|
||||||
|
oasisSdk "github.com/sunglocto/oasis-sdk"
|
||||||
"mellium.im/xmpp/bookmarks"
|
"mellium.im/xmpp/bookmarks"
|
||||||
"mellium.im/xmpp/jid"
|
"mellium.im/xmpp/jid"
|
||||||
"mellium.im/xmpp/muc"
|
"mellium.im/xmpp/muc"
|
||||||
"mellium.im/xmpp/stanza"
|
|
||||||
"mellium.im/xmpp/pubsub"
|
"mellium.im/xmpp/pubsub"
|
||||||
oasisSdk "github.com/sunglocto/oasis-sdk"
|
"mellium.im/xmpp/stanza"
|
||||||
// TODO: integrated theme switcher
|
// TODO: integrated theme switcher
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -1580,8 +1580,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AppTabs.OnUnselected = func(ti *container.TabItem) {
|
AppTabs.OnUnselected = func(ti *container.TabItem) {
|
||||||
fmt.Println("hiding")
|
fmt.Println("hiding")
|
||||||
selectedScroller, ok := AppTabs.Selected().Content.(*widget.List)
|
selectedScroller, ok := AppTabs.Selected().Content.(*widget.List)
|
||||||
@@ -1624,7 +1622,7 @@ func main() {
|
|||||||
nameLabel.Truncation = fyne.TextTruncateEllipsis
|
nameLabel.Truncation = fyne.TextTruncateEllipsis
|
||||||
memberLabel := widget.NewLabel(fmt.Sprintf("%d members ", len(tab.Members)))
|
memberLabel := widget.NewLabel(fmt.Sprintf("%d members ", len(tab.Members)))
|
||||||
memberLabel.Truncation = fyne.TextTruncateEllipsis
|
memberLabel.Truncation = fyne.TextTruncateEllipsis
|
||||||
box := container.NewVBox(nameLabel, )
|
box := container.NewVBox(nameLabel)
|
||||||
chatSidebar.Objects = []fyne.CanvasObject{}
|
chatSidebar.Objects = []fyne.CanvasObject{}
|
||||||
|
|
||||||
for name, p := range tab.Members {
|
for name, p := range tab.Members {
|
||||||
|
|||||||
Reference in New Issue
Block a user