Skip to content

Commit

Permalink
Build RichText segments without markdown parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Galih Fajar committed Oct 17, 2023
1 parent f7dd576 commit 581eb61
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion internal/transport/bridge/send.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package bridge

import (
"net/url"
"path/filepath"

"fyne.io/fyne/v2"
Expand Down Expand Up @@ -97,7 +98,17 @@ func (d *SendData) OnSelected(i int) {
qrcode.ScaleMode = canvas.ImageScalePixels
qrcode.SetMinSize(fyne.NewSize(100, 100))

qrCodeInfo := widget.NewRichTextFromMarkdown("A list of supported apps can be found [here](https://github.com/Jacalz/rymdport/wiki/Supported-clients).")
supportedClientsUrl, _ := url.Parse("htps://github.com/Jacalz/rymdport/wiki/Supported-clients")
qrCodeInfo := widget.NewRichText(&widget.TextSegment{
Style: widget.RichTextStyleInline,
Text: "A list of supported apps can be found ",
}, &widget.HyperlinkSegment{
Text: "here",
URL: supportedClientsUrl,
}, &widget.TextSegment{
Style: widget.RichTextStyleInline,
Text: ".",
})
qrCard := &widget.Card{Image: qrcode, Content: container.NewCenter(qrCodeInfo)}

removeLabel := &widget.Label{Text: "This item can be removed.\nThe transfer has completed."}
Expand Down

0 comments on commit 581eb61

Please sign in to comment.